📄 aknexlistflagtestcontainer.h
字号:
/* Copyright (c) 2005, Nokia. All rights reserved */
#ifndef __AKNEXLISTFLAGTESTCONTAINER_H__
#define __AKNEXLISTFLAGTESTCONTAINER_H__
// INCLUDES
#include <eiklbo.h>
#include "AknExListBaseContainer.h"
// CONSTANTS
// for initialization.
const TInt KAknExListInitTabId = 0;
const TInt KAknExListInitValueOfListFlags = 0;
const TInt KAknExListInitCount = 0;
// for key event.
#define AKNEXLIST_CHANGE_METHOD_KEY '0'
// FORWARD DECLARATIONS
class CEikListBox;
class CAknExListFlagTestView;
// CLASS DECLARATION
/**
* CAknExListFlagTestContainer container control class.
*/
class CAknExListFlagTestContainer :
public CAknExListBaseContainer,
public MEikListBoxObserver
{
private: // Enumerations
enum TAknExListComponentControls
{
EAknExListDefaultComponent
};
public: // Constructors and destructor
/**
* CAknExListFlagTestContainer
* Copy constructor.
* @param aView Pointer of CAknExListFlagTestView class.
*/
CAknExListFlagTestContainer( CAknExListFlagTestView* aView );
/**
* ConstructL
* Symbian constructor.
* @param aRect Frame rectangle for container.
*/
void ConstructL( const TRect& aRect );
/**
* ~CAknExListFlagTestContainer
* Destructor.
*/
virtual ~CAknExListFlagTestContainer();
public: // New functions
/**
* DisplayListBoxL
* Displays listbox or start screen.
* @param aTabId The ID of tab.
*/
void DisplayListBoxL( const TInt aTabId );
public: // From CoeControl
/**
* From CoeControl, OfferKeyEventL.
* Handles the key-events.
* @return If key-event is consumed, EKeyWasConsumed. Else
* EKeyWasNotConsumed.
* @param aKeyEvent Key event.
* @param aType Type of key event( EEventKey, EEventKeyUp or
* EEventKeyDown ).
*/
TKeyResponse OfferKeyEventL(
const TKeyEvent& aKeyEvent,
TEventCode aType );
/**
* From CoeControl, HandleResourceChange.
* Called by framework when the view layout is changed.
*/
virtual void HandleResourceChange(TInt aType);
public: // From MEikListBoxObserver
/**
* HandleListBoxEventL
* Handles listbox event.
* @param aListBox Pointer to ListBox object is not used.
* @param aEventType Type of listbox event.
*/
void HandleListBoxEventL(
CEikListBox* aListBox,
TListBoxEvent aEventType );
private: // New functions
/**
* ResourceIdSingle
* Returns resource ID for CAknSingleStyleListBox.
* @return Resource ID for CAknSingleStyleListBox
*/
TInt ResourceIdSingle();
/**
* ResourceIdSingleNumber
* Returns resource ID for CAknSingleNumberStyleListBox.
* @return Resource ID for CAknSingleNumberStyleListBox.
*/
TInt ResourceIdSingleNumber();
/**
* ResourceIdSingleHeading
* Returns resource ID for CAknSingleHeadingStyleListBox.
* @return Resource ID for CAknSingleHeadingStyleListBox.
*/
TInt ResourceIdSingleHeading();
/**
* ResourceIdSingleGraphic
* Returns resource ID for CAknSingleGraphicStyleListBox.
* @return Resource ID for CAknSingleGraphicStyleListBox.
*/
TInt ResourceIdSingleGraphic();
/**
* ResourceIdSingleGraphicHeading
* Returns resource ID for CAknSingleGraphicHeadingStyleListBox.
* @return Resource ID for CAknSingleGraphicHeadingStyleListBox.
*/
TInt ResourceIdSingleGraphicHeading();
/**
* ResourceIdSingleNumberHeading
* Returns resource ID for CAknSingleNumberHeadingStyleListBox.
* @return Resource ID for CAknSingleNumberHeadingStyleListBox.
*/
TInt ResourceIdSingleNumberHeading();
/**
* ResourceIdSingleLargeGraphic
* Returns resource ID for CAknSingleLargeStyleListBox.
* @return Resource ID for CAknSingleLargeStyleListBox.
*/
TInt ResourceIdSingleLargeGraphic();
/**
* ResourceIdBigSingle
* Returns resource ID for CAknDoubleStyleListBox as single big pane.
* @return Resource ID for CAknDoubleStyleListBox as single big pane.
*/
TInt ResourceIdBigSingle();
/**
* ResourceIdBigSingleNumber
* Returns resource ID for CAknDoubleNumberStyleListBox as single big
* number pane.
* @return Resource ID for CAknDoubleNumberStyleListBox as single big
* number pane.
*/
TInt ResourceIdBigSingleNumber();
/**
* ResourceIdBigSingleLargeGraphic
* Returns resource ID for CAknDoubleLargeStyleListBox as single big
* large graphic pane.
* @return Resource ID for CAknDoubleLargeStyleListBox as single big
* large graphic pane.
*/
TInt ResourceIdBigSingleLargeGraphic();
/**
* Returns resource ID for CAknDoubleStyleListBox.
* @return Resource ID for CAknDoubleStyleListBox.
*/
TInt ResourceIdDouble();
/**
* ResourceIdDoubleNumber
* Returns resource ID for CAknDoubleNumberStyleListBox.
* @return Resource ID for CAknDoubleNumberStyleListBox.
*/
TInt ResourceIdDoubleNumber();
/**
* ResourceIdDoubleLargeGraphic
* Returns resource ID for CAknDoubleLargeStyleListBox.
* @return Resource ID for CAknDoubleLargeStyleListBox.
*/
TInt ResourceIdDoubleLargeGraphic();
/**
* ResourceIdSetting
* Returns resource ID for CAknSettingStyleListBox.
* @return Resource ID for CAknSettingStyleListBox.
*/
TInt ResourceIdSetting();
/**
* ResourceIdSettingNumber
* Returns resource ID for CAknSettingNumberStyleListBox.
* @return Resource ID for CAknSettingNumberStyleListBox.
*/
TInt ResourceIdSettingNumber();
/**
* ResourceIdDoubleGraphic
* Returns resource ID for CAknDoubleGraphicStyleListBox.
* @return Resource ID for CAknDoubleGraphicStyleListBox.
*/
TInt ResourceIdDoubleGraphic();
/**
* IsNeedGarphic
* Sets flag for creating graphic.
* @param aFlagsOfGraphic Flag of graphic whether to need creating or
* not.
*/
void IsNeedGarphic( TBool& aFlagsOfGraphic );
/**
* ListFlags
* Returns flags of listbox to use ConstructL() of listbox.
* @return Flags of listbox.
*/
TInt ListFlags();
/**
* ListItemsL
* Returns list items as CDesCArray.
* @param ID of current tab.
* @return Pointer of list items as CDesCArray.
*/
CDesCArray* ListItemsL( TInt aTabId );
private: // From CAknExListBaseContainer
/**
* GraphicIconL
* Appends graphics data.
* @param Pointer of icon using graphics for listbox.
*/
void GraphicIconL( CArrayPtr<CGulIcon>* aIcons );
private: // From CoeControl
/**
* From CoeControl, SizeChanged.
* Called by framework when the view size is changed.
*/
void SizeChanged();
/**
* From CoeControl, CountComponentControls.
* Returns number of components.
* @return Number of controls.
*/
TInt CountComponentControls() const;
/**
* From CCoeControl, ComponentControl.
* Returns pointer to particular component.
* @return Pointer to Control's component control, identified by index.
* @param aIndex Index of the control.
*/
CCoeControl* ComponentControl( TInt aIndex ) const;
private: // Data
/**
* iListBox
* Owned by CAknExListFlagTestContainer object.
*/
CEikListBox* iListBox;
/**
* iView
* Does not own.
*/
CAknExListFlagTestView* iView;
/**
* iOutlineId
*/
TInt iOutlineId;
/**
* iInternalFlag
*/
TBool iInternalFlag;
/**
* iKeyEvent
*/
TBool iKeyEvent;
};
#endif // __AKNEXLISTFLAGTESTCONTAINER_H__
// End of File
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -