📄 alarmcontainer.h
字号:
/*
* ============================================================================
* Name : CAlarmContainer from AlarmContainer.h
* Part of : Alarm
* Created : 05.02.2006 by ToBeReplacedByAuthor
* Description:
* Declares container control for application.
* Version :
* Copyright: ToBeReplacedByCopyright
* ============================================================================
*/
#ifndef ALARMCONTAINER_H
#define ALARMCONTAINER_H
// INCLUDES
#include <coecntrl.h>
// CONSTANTS
_LIT(KTimeFormat, "%D%M%Y%/0%1%/1%2%/2%3%/3 %H:%T:%S");
// FORWARD DECLARATIONS
class CEikLabel; // for example labels
class CAlarmModel;
// CLASS DECLARATION
/**
* CAlarmContainer container control class.
*
*/
class CAlarmContainer : public CCoeControl
{
public: // Constructors and destructor
/**
* Create a CCountdownAlarm object
* @param aObserver The timer event observer
* @result a pointer to the created instance of CCountdownAlarm
*/
static CAlarmContainer* NewL(const TRect& aRect, const CAlarmModel& aModel);
/**
* Destructor.
*/
~CAlarmContainer();
public: // New functions
void RefreshL();
public: // Functions from base classes
private: // Functions from base classes
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
private: //
/**
* The constructor
*/
CAlarmContainer(const CAlarmModel& aModel);
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
private: // constants
static const TInt KTimeStringLength;
private: //data
/// The model of the Alarm application
const CAlarmModel& iModel;
CEikLabel* iLabel; // example label
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -