s60appengineslabappui.h

来自「S60培训教材代码」· C头文件 代码 · 共 101 行

H
101
字号
/*
* ============================================================================
*  Name     : CS60AppEnginesLabAppUi from S60AppEnginesLabAppUi.h
*  Part of  : S60AppEnginesLab
*  Created  : 09/02/2004 by 
*  Description:
*     Declares UI class for application.
*  Version  :
*  Copyright: 
* ============================================================================
*/

#ifndef S60APPENGINESLABAPPUI_H
#define S60APPENGINESLABAPPUI_H

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

#include <agmmodel.h>
#include <f32file.h>
#include <txtfmlyr.h>
#include <agmcallb.h> 
#include <eikmenup.h>

// FORWARD DECLARATIONS
class CS60AppEnginesLabContainer;


// CLASS DECLARATION

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

        /**
        * EPOC default constructor.
        */      
        void ConstructL();

        /**
        * Destructor.
        */      
        ~CS60AppEnginesLabAppUi();
        
    public: // New functions

    public: // Functions from base classes

    private:
        // From MEikMenuObserver
        void DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane);

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

		void OpenAgendaFileL();

		void AddEventEntryL();
		void AddApptEntryL();

		void DeleteEntryL();
		void DeleteAllEntriesL();

        /**
        * 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
        CS60AppEnginesLabContainer* iAppContainer; 
		RFs			iFs;
		CAgnModel*	iAgnModel;
		RAgendaServ* iAgnServ;
		CParaFormatLayer* iParaFmtLayer;
		CCharFormatLayer* iCharFmtLayer;
		TDateTime iStartTime; // start time for event/appt
		TDateTime iEndTime; // end time for event/appt
    };

#endif

// End of File

⌨️ 快捷键说明

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