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