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

📄 alarmappui.h

📁 Symbian s60 闹钟程序
💻 H
字号:
/*
* ============================================================================
*  Name     : CAlarmAppUi from AlarmAppui.h
*  Part of  : Alarm
*  Created  : 05.02.2006 by ToBeReplacedByAuthor
*  Description:
*     Declares UI class for application.
*  Version  :
*  Copyright: ToBeReplacedByCopyright
* ============================================================================
*/

#ifndef ALARMAPPUI_H
#define ALARMAPPUI_H

// INCLUDES
#include <aknappui.h>

#include "AlarmTimer.h"

// FORWARD DECLARATIONS
class CAlarmModel;
class CAlarmContainer;


// CLASS DECLARATION

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

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

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

    public: // Functions from CAlarmTimer::MObserver
        void OnTimerL(TInt aError);

    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);

        /**
        * 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: // New functions
        /**
        * Set the command button array of the application
        * @param aResourceId The id of the new CBA resource
        */
        void SetCbaL(TInt aResourceId);

    private: //Data
        /// The model
        CAlarmModel* iModel;

        /// The container
        CAlarmContainer* iAppContainer; 

        /// The timer
        CAlarmTimer* iAlarm;

    };

#endif

// End of File

⌨️ 快捷键说明

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