myclockappui.h

来自「Symbian 平台上活动对象的一个实例。」· C头文件 代码 · 共 82 行

H
82
字号
/*
============================================================================
 Name		: MyClockAppUi.h
 Author	  : 
 Copyright   : Your copyright notice
 Description : Declares UI class for application.
============================================================================
*/

#ifndef MYCLOCKAPPUI_H
#define MYCLOCKAPPUI_H

// INCLUDES
#include <aknappui.h>

// FORWARD DECLARATIONS

#include "CountdownTimer.h"
class CTimerModel;

class CMyClockContainer;


// CLASS DECLARATION

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

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

		/**
		* Destructor.
		*/	  
		~CMyClockAppUi();
    public: // Functions from CCountdownTimer::MObserver
        void OnTimerL(const TTime& aTime);
		
	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 SetCbaL(TInt aResourceId);
		/**
		* 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
		CMyClockContainer* iAppContainer; 
        CTimerModel* iModel;

        CCountdownTimer* iTimer;
	};

#endif // MYCLOCKAPPUI_H


⌨️ 快捷键说明

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