examples/ForumNokia/DBMS/inc/DBMSEditorView.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 #ifndef __DBMSEDITORVIEW_H__
00006 #define __DBMSEDITORVIEW_H__
00007 
00008 
00009 #include <coecntrl.h>
00010 #include <aknsettingitemlist.h> 
00011 
00021 class CDBMSEditorView: public CCoeControl
00022     {
00023 
00024 public:
00025 
00036     static CDBMSEditorView* NewL(const TRect& aRect);
00037 
00042      ~CDBMSEditorView();
00043 
00044 public:  // For the use of CDBMSAppUi
00045 
00052     void GetAuthorL(TDes& aResult) const;
00053 
00060     void GetTitleL(TDes& aResult) const;
00061 
00068     void GetDescriptionL(TDes& aResult) const;
00069 
00070 private: // Construction
00071 
00080     void ConstructL(const TRect& aRect);
00081 
00087     CDBMSEditorView();
00088 
00089 
00093         void LoadListL();
00094         
00098     void StoreSettingsL();
00099     
00100 private: // from CCoeControl
00101 
00107     TInt CountComponentControls() const;
00108 
00116     CCoeControl* ComponentControl(TInt aIndex) const;
00117 
00126     void Draw(const TRect& aRect) const;
00127 
00141     TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent,
00142                                 TEventCode aType);
00143                                 
00148     virtual void HandleResourceChange(TInt aType);
00149 
00150     
00151 private:
00152 
00153         CAknSettingItemList* iItemList;
00154         CAknTextSettingItem* iAuthor;
00155         CAknTextSettingItem* iTitle;
00156         CAknTextSettingItem* iDescription;
00157 
00158     };
00159 
00160 #endif // __DBMSEDITORVIEW_H__

Generated by  doxygen 1.6.2