countdowncontainer.h
来自「《基于symbian手机开发与应用》一书的源代码」· C头文件 代码 · 共 96 行
H
96 行
/*
* ============================================================================
* Name : CCountDownContainer from CountDownContainer.h
* Part of : CountDown
* Created : 2005-8-29 by
* Description:
* Declares container control for application.
* Version :
* Copyright:
* ============================================================================
*/
#ifndef COUNTDOWNCONTAINER_H
#define COUNTDOWNCONTAINER_H
// INCLUDES
#include <coecntrl.h>
#include <eiklbo.h>
// FORWARD DECLARATIONS
class CEikTextListBox;
class CCountDownAppUi;
// CLASS DECLARATION
/**
* CCountDownContainer container control class.
*
*/
class CCountDownContainer : public CCoeControl, MCoeControlObserver, public MEikListBoxObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect, CCountDownAppUi* aUi);
/**
* Destructor.
*/
~CCountDownContainer();
public: // New functions
void CreateFunctionListBoxL();
void CreateRecordListBoxL();
void OpenCurrentListItem();
void CmdLook();
void CmdAdd();
void CmdModify();
void CmdDelete();
public: // Functions from base classes
void HandleListBoxEventL(CEikListBox* aListBox,TListBoxEvent aEventType );
TKeyResponse OfferKeyEventL(const TKeyEvent &aKeyEvent, TEventCode aType);
private: // Functions from base classes
static TInt TimerPeriod(TAny * aPtr);
void UpdataTimer();
TInt GetInsertPos(TTime &aTime);
TBool CheckSameItem(TDesC &aName, TInt aIndex=-1);
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;
/**
* From ?base_class ?member_description
*/
// event handling section
// e.g Listbox events
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
private: //data
CEikTextListBox* iListBox;
CCountDownAppUi *iUi;
CPeriodic* iTimer;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?