📄 dbmsexamplecontainer.h
字号:
/*
* ============================================================================
* Name : DBMSexampleContainer.h
* Part of : DBMSexample
* Created : 02/28/2003 by Forum Nokia
* Description:
* Declares container control for application.
* Version :
* Copyright: Nokia Corporation, 2003
* ============================================================================
*/
#ifndef DBMSEXAMPLECONTAINER_H
#define DBMSEXAMPLECONTAINER_H
// INCLUDES
#include <coecntrl.h>
// FORWARD DECLARATIONS
class CEikLabel; // for example labels
class CAknDoubleStyleListBox;
class CDesC16Array;
class CDBMSengine;
class MDBMSobserver;
// CLASS DECLARATION
class CEikButtonGroupContainer;
/**
* CDBMSexampleContainer container control class.
*
*/
class CDBMSexampleContainer : public CCoeControl, MCoeControlObserver
{
public: // Constructors and destructor
/**
* EPOC default constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL(const TRect& aRect);
/**
* Destructor.
*/
~CDBMSexampleContainer();
public: // Functions from base classes
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
public: // New functions
TBool DisplayTheListboxL(CDesC16Array& aList);
void DisplayFormL( TInt aResourceId, TInt aType,
MDBMSobserver* aObserver );
TBool IsListBoxConstructed();
void ClearContentsInListBox();
CDBMSengine* GetEngine();
TBool CDBMSexampleContainer::DisplayRecordsL();
private: // Functions from base classes
/**
* From CoeControl,SizeChanged.
*/
void SizeChanged();
/**
* From CoeControl,CountComponentControls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl.
*/
CCoeControl* ComponentControl(TInt aIndex) const;
/**
* From CCoeControl,Draw.
*/
void Draw(const TRect& aRect) const;
/**
* event handling section
* e.g Listbox events
*/
void HandleControlEventL(CCoeControl* aControl,TCoeEvent aEventType);
private: //data
CAknDoubleStyleListBox* iListBox;
CEikLabel* iLabel;
CDBMSengine* iEngine;
CEikButtonGroupContainer* iCba;
};
#endif
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -