📄 myclockappui.h
字号:
/*
============================================================================
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -