ftpexampleappui.h

来自「Symbian智能手机操作系统源代码值的参考_网络ftp」· C头文件 代码 · 共 96 行

H
96
字号
/*
* ============================================================================
*  Name     : CFtpExampleAppUi from FtpExampleAppUi.h
*  Part of  : FtpExample
*  Created  : 03/11/2005 by Forum Nokia
*  Description:
*     Declares UI class for application.
*  Version  : 1.0
*  Copyright: Nokia Corporation
* ============================================================================
*/

#ifndef FTPEXAMPLEAPPUI_H
#define FTPEXAMPLEAPPUI_H

// INCLUDES
#include <eikapp.h>
#include <eikdoc.h>
#include <e32std.h>
#include <coeccntx.h>
#include <aknappui.h>
#include <ftpsess.h>

// FORWARD DECLARATIONS
class CFtpExampleContainer;
class CFtpExampleEngine;

// CLASS DECLARATION

/**
* Application UI class.
* Provides support for the following features:
* - EIKON control architecture
* 
*/
class CFtpExampleAppUi : public CAknAppUi
    {
public: // Constructors and destructor

    /**
    * Symbian OS default constructor.
    */      
    void ConstructL();

    /**
    * Destructor.
    */      
    ~CFtpExampleAppUi();
    
public: // New functions
					
	/**
	* Will show appropriate CBA buttons to user.
	* @param aExecuting Defines whether an FTP command is executing or not.
	*/
	void CommandExecutingL(const TBool& aExecuting);

	/**
	* Returns reference to engine, which handles FTP commands.
	* @return Reference to engine.
	*/
	CFtpExampleEngine& Model();
        
private: // Functions from base classes

    /** 
    * From MEikMenuObserver. May be overridden to handle 
    * displaying menus launched from the side bar.
    */
    void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

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

    /**
    * From CEikAppUi, handles key events.
    * @param aKeyEvent Event to handled.
    * @param aType Type of the key event. 
    * @return Response code (EKeyWasConsumed, EKeyWasNotConsumed). 
    */
    virtual TKeyResponse HandleKeyEventL(
        const TKeyEvent& aKeyEvent,TEventCode aType);
    
private: // Data members

	CFtpExampleContainer* iContainer;
	CFtpExampleEngine* iEngine;
    };

#endif

// End of File

⌨️ 快捷键说明

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