📄 calendarapiexampleentriescontainer.h
字号:
/*
* ============================================================================
* Name : CCalendarAPIexampleEntriesContainer from CalendarAPIexampleEntriesContainer.h
* Part of : CalendarAPIexample
* Created : 02/22/2005 by Forum Nokia
* Version : 1.0
* Copyright: Nokia Corporation
* ============================================================================
*/
#ifndef CALENDARAPIEXAMPLEENTRIESCONTAINER_H
#define CALENDARAPIEXAMPLEENTRIESCONTAINER_H
// INCLUDE FILES
#include <coecntrl.h> //CCoeControl
#include <eiktxlbx.h> //CEikTextListBox
#include "CalendarAPIexampleEntriesView.h"
// CLASS DECLARATION
class CCalendarAPIexampleEntriesContainer : public CCoeControl,
public MEikListBoxObserver
{
public: // Constructors and destructor
/*!
* Two-phased constructor.
*/
static CCalendarAPIexampleEntriesContainer* NewL( const TRect& aRect,
CCalendarAPIexampleEntriesView& aView);
/*!
* Destructor.
*/
~CCalendarAPIexampleEntriesContainer();
private:
/*!
* Symbian OS Default constructor.
*/
CCalendarAPIexampleEntriesContainer(CCalendarAPIexampleEntriesView& aView);
void ConstructL(const TRect& aRect);
public: // New functions
/*!
* CurrentItemIndex()
*
* Returns the index of the entry currently selected on the listbox.
*/
TInt CurrentItemIndex() const;
/*!
* PopulateListBoxL()
*
* Requests all found entries from model and displays them in the listbox.
*/
void PopulateListBoxL();
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,OfferKeyEventL.
*/
TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType );
/*!
* From MEikListBoxObserver,HandleListBoxEventL.
*/
void HandleListBoxEventL(CEikListBox* aListBox,
TListBoxEvent aEventType);
private: // Data members
CEikTextListBox* iEntryListBox;
CCalendarAPIexampleEntriesView& iEntriesView;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -