examples/ForumNokia/SMSExample/GUI/inc/SMSExampleListBoxView.h

00001 /*
00002  * Copyright © 2008 Nokia Corporation.
00003  */
00004 
00005 #ifndef __SMSEXAMPLE_LISTBOXVIEW_H__
00006 #define __SMSEXAMPLE_LISTBOXVIEW_H__
00007 
00008 // INCLUDES
00009 #include <aknview.h>
00010 #include <badesca.h> // CDesC16ArrayFlat
00011 #include <msvstd.h> // TMsvId
00012 
00013 // FORWARD DECLARATIONS
00014 class CMarkableListContainer;
00015 class CSmsEngine;
00016 class CLogView;
00017 
00024 class CListboxView: public CAknView
00025     {
00026 
00027     public:
00028 
00035         static CListboxView* NewL(CSmsEngine* aEngine, CLogView* aView1);
00036 
00043         static CListboxView* NewLC(CSmsEngine* aEngine, CLogView* aView1);
00044 
00045 
00049         ~CListboxView();
00050 
00051     public:
00052 
00058         void SetListBoxMode(TInt aMode);
00059 
00064         void InitializeListBoxL();
00065 
00069         void SetFolderID(TMsvId aFolderID);
00070 
00074         void SetTargetFolderID(TMsvId aTargetFolderID);
00075 
00076     public: // from CAknView
00077 
00082         TUid Id() const;
00083 
00088         void HandleCommandL(TInt aCommand);
00089 
00096         void DoActivateL(const TVwsViewId& aPrevViewId,
00097                          TUid aCustomMessageId,
00098                          const TDesC8& aCustomMessage);
00099 
00104         void DoDeactivate();
00105 
00109         void HandleClientRectChange();
00110 
00111         void HandleResourceChangeL(TInt aType);
00112 
00113         void SizeChanged();
00114     private:
00115 
00120         void HandleBasedOnModeL();
00121 
00127         CListboxView(CSmsEngine* aEngine, CLogView* aView1);
00128 
00132         void ConstructL();
00133 
00134     private:
00135 
00136         // Container for this view
00137         CMarkableListContainer* iListBoxContainer;
00138 
00139         // SMS engine.
00140         CSmsEngine* iEngine;
00141 
00142         // Log
00143         CLogView* iLogView;
00144 
00145         // ListBox action modes. See SMSExample.hrh for modes.
00146         TInt iMode;
00147 
00148         // Source folder Id
00149         TMsvId iFolderID;
00150 
00151         // Target folder Id
00152         TMsvId iTargetFolderID;
00153 
00154         // iIdentifier identifier for this view.
00155         TUid iIdentifier;
00156     };
00157 
00158 
00159 #endif // __SMSEXAMPLE_LISTBOXVIEW_H__

Generated by  doxygen 1.6.2