cmmslcontainer.h
来自「The MMS List example demonstrates how to」· C头文件 代码 · 共 91 行
H
91 行
/* Copyright (c) 2003, Nokia. All rights reserved */
#ifndef __CMMSLCONTAINER_H__
#define __CMMSLCONTAINER_H__
// INCLUDES
#include <coecntrl.h>
#include <eiklbx.h>
#include <stringloader.h>
#include <aknquerydialog.h>
#include "mmslist.hrh"
#include <mmslist.rsg>
// FORWARD DECLARATIONS
class MObsModel;
class CEikTextListBox;
// CLASS DECLARATION
/**
* CMmslContainer container control class.
*
*/
class CMmslContainer : public CCoeControl, MEikListBoxObserver
{
public: // Constructors and destructor
/**
* ConstructL
* Symbian 2nd phase constructor
* @param aRect Area of container
*/
void ConstructL( const TRect& aRect );
/**
* ~CMmslContainer
* Destructor is always virtual
*/
virtual ~CMmslContainer();
private: // Functions from base classes
/**
* From CCoeControl,SizeChanged
* Update size.
*/
void SizeChanged();
/**
* From CCoeControl, CountComponentControls
* @return Number of controls
*/
TInt CountComponentControls() const;
/**
* From CCoeControl,ComponentControl
* @param aIndex Number of component
* @return Pointer to listbox
*/
CCoeControl* ComponentControl( TInt aIndex ) const;
/**
* From CCoeControl,OfferKeyEventL
* Forward keyevents to listbox.
* @param aKeyEvent The keyevent that happened
* @param aType Type of keyevent
* @return TKeyResponse from listbox
*/
TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent,
TEventCode aType );
/**
* From MEikListBoxObserver,HandleListBoxEventL.
* Handles listbox events.
* @param aListBox, pointer to listbox - not in use
* @param aEventType, event which happened
*/
void HandleListBoxEventL( CEikListBox* aListBox,TListBoxEvent aEventType );
public:
/**
* The listbox contains some (ID, sender etc.) information
* of MMS messages.
* Owned by this object.
*/
CEikTextListBox* iListBox;
};
#endif // __CMMSLCONTAINER_H__
// End of File
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?