00001
00002
00003
00004
00005 #ifndef __DBMSLISTBOXVIEW_H__
00006 #define __DBMSLISTBOXVIEW_H__
00007
00008 #include <coecntrl.h>
00009
00010
00011 class CEikLabel;
00012 class CEikTextListBox;
00013
00014
00026 class CDBMSListboxView : public CCoeControl
00027 {
00028
00029 public:
00030
00041 static CDBMSListboxView* NewL(const TRect& aRect);
00042
00048 ~CDBMSListboxView();
00049
00057 void SetCaptionL(const TDesC& aNewCaption);
00058
00067 void SetListItemsL(CDesCArrayFlat* aNewItems);
00068
00079 TInt GetSelectedItem(TDes& aResult) const;
00080
00081 public:
00082
00091 void Draw(const TRect& aRect) const;
00092
00098 void SizeChanged();
00099
00100
00106 TInt CountComponentControls() const;
00107
00115 CCoeControl* ComponentControl(TInt aIndex) const;
00116
00130 TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType);
00131
00132 private:
00133
00142 void ConstructL(const TRect& aRect);
00143
00149 CDBMSListboxView();
00150
00151 private:
00152
00153 CEikLabel* iLabel;
00154 CEikTextListBox* iListBox;
00155 };
00156
00157
00158 #endif // __DBMSLISTBOXVIEW_H__