⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 opencftpclientappui.h

📁 在SYMBIAN平台上用OPEN C实现的一个FTP客户程序
💻 H
字号:
/***************************************************************************/
/*                                                                         */
/* OpenCFTPClientAppUi.h - Part of Open C FTP Client                       */
/*                                                                         */
/* Copyright (C) 2007 Nokia Corporation                                    */
/*                                                                         */
/* Open C FTP Client is based on ftplib and qftp by Thomas Pfau.           */
/*                                                                         */
/* Copyright (C) 1996-2001 Thomas Pfau, pfau@eclipse.net                   */
/* 1407 Thomas Ave, North Brunswick, NJ, 08902                             */
/*                                                                         */
/* This program is free software; you can redistribute it and/or           */
/* modify it under the terms of the GNU Library General Public             */
/* License as published by the Free Software Foundation; either            */
/* version 2 of the License, or (at your option) any later version.        */
/*                                                                         */
/* This program is distributed in the hope that it will be useful,         */
/* but WITHOUT ANY WARRANTY; without even the implied warranty of          */
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU       */
/* Library General Public License for more details.                        */
/*                                                                         */
/* You should have received a copy of the GNU Library General Public       */
/* License along with this program; if not, write to the                   */
/* Free Software Foundation, Inc., 59 Temple Place - Suite 330,            */
/* Boston, MA 02111-1307, USA.                                             */
/*                                                                         */
/***************************************************************************/
 
/*
 * ============================================================================
 *  Name     : OpenCFTPClientAppUi from OpenCFTPClientAppUi.h
 *  Part of  : Open C FTP Client
 *  Created  : 03/12/2007 by Forum Nokia
 *  Version  : 1.0
 * ============================================================================
*/

#ifndef __OPENCFTPCLIENTAPPUI_H__
#define __OPENCFTPCLIENTAPPUI_H__

// INCLUDES
//#include <aknappui.h>
#include <aknviewappui.h>
#include "ListView.h"

const TUint maxLength = 100;
const TUint lineEndLength = 2;

// FORWARD DECLARATIONS
class COpenCFTPClientAppView;

// CLASS DECLARATION
/**
* COpenCFTPClientAppUi application UI class.
* Interacts with the user through the UI and request message processing
* from the handler class
*/
//class COpenCFTPClientAppUi : public CAknAppUi
class COpenCFTPClientAppUi : public CAknViewAppUi
    {
    public: // Constructors and destructor

        /**
        * ConstructL.
        * 2nd phase constructor.
        */
        void ConstructL();

        /**
        * COpenCFTPClientAppUi.
        * C++ default constructor. This needs to be public due to
        * the way the framework constructs the AppUi
        */
        COpenCFTPClientAppUi();

        /**
        * ~COpenCFTPClientAppUi.
        * Virtual Destructor.
        */
        virtual ~COpenCFTPClientAppUi();
        
    private:  // Functions from base classes

        /**
        * From CEikAppUi, HandleCommandL.
        * Takes care of command handling.
        * @param aCommand Command to be handled.
        */
        void HandleCommandL( TInt aCommand );

        void SaveConnectionSettings();
        void LoadConnectionSettings();
        void CreateSettingsFile();

        /**
        *  HandleStatusPaneSizeChange.
        *  Called by the framework when the application status pane
 		*  size is changed.
        */

		void HandleStatusPaneSizeChange();
		
    private: // Data
    
        TBuf<maxLength> address;
        TBuf<maxLength> username;
        TBuf<maxLength> password;
        TBuf<lineEndLength> lineEnd;
        TBuf<lineEndLength> lineChange;
        
        CListView* view;
        CListControl* container;
    };

#endif // __OPENCFTPCLIENTAPPUI_h__

// End of File

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -