Nokia N97 SDK
Example Applications Guide

aknexpoplistview.h

00001 /*
00002 * ==============================================================================
00003 *  Name        : aknexpoplistview.h
00004 *  Part of     : Popup-list example
00005 *  Interface   :
00006 *  Description :
00007 *  Version     :
00008 *
00009 *  Copyright (c) 2004 - 2006 Nokia Corporation.
00010 *  This material, including documentation and any related
00011 *  computer programs, is protected by copyright controlled by
00012 *  Nokia Corporation.
00013 * ==============================================================================
00014 */
00015 
00016 #ifndef __AKNEXPOPLISTVIEW_H__
00017 #define __AKNEXPOPLISTVIEW_H__
00018 
00019 
00020 // INCLUDES
00021 #include <aknview.h>
00022 #include <AknIconUtils.h>
00023 
00024 // CONSTANTS
00025 const TUid KViewId = { 1 };
00026 const TInt KMaxIcons = 10;
00027 const TInt KMaxTitleLength = 32;
00028 const TInt KMessageLength = 64;
00029 const TInt KIndexArraySize = 5;
00030 const TInt KInitPos = 0;
00031 
00032 _LIT( KInitPosString,"0" );
00033 
00034 // path and name of mbm file
00035 _LIT( KPathAppMbm, "AknExPopList.mbm" );
00036 
00037 // FORWARD DECLARATIONS
00038 class CAknExPopListContainer;
00039 class CIconFileProvider;
00040 
00041 // CLASS DECLARATION
00042 /**
00043 *  CAknExPopListView view class.
00044 */
00045 class CAknExPopListView : public CAknView
00046     {
00047     public: // Constructors and destructor
00048 
00049 
00050         /**
00051         * ConstructL
00052         * 2nd phase constructor.
00053         */
00054         void ConstructL();
00055 
00056 
00057         /**
00058         * ~CAknExPopListView
00059         * Virtual Destructor.
00060         */
00061         virtual ~CAknExPopListView();
00062 
00063     public: // Functions from base classes
00064         
00065         
00066         /**
00067         * Id
00068         * From CAknView
00069         * @return Uid Uid value
00070         */
00071         TUid Id() const;
00072 
00073         /**
00074         * HandleCommandL
00075         * From CAknView, HandleCommandL.
00076         * Takes care of command handling.
00077         * @param aCommand Command to be handled.
00078         */
00079         void HandleCommandL( TInt aCommand );
00080 
00081         /**
00082         * HandleViewRectChange
00083         * From CAknView, handles client rectangle is changed.
00084         */
00085         void HandleViewRectChange();
00086 
00087 
00088     private:
00089 
00090         /**
00091         * DoActivateL
00092         * From AknView, Creates the container class object.
00093         * @param aPrevViewId Previeous view id.
00094         * @param aCustomMessageId messge id.
00095         * @param aCustomMessage message.
00096         */
00097         void DoActivateL( const TVwsViewId& aPrevViewId,
00098                           TUid aCustomMessageId,
00099                           const TDesC8& aCustomMessage);
00100 
00101         /**
00102         * DoDeactivate
00103         * From AknView, Deletes the container class object.
00104         */
00105         void DoDeactivate();
00106 
00107 
00108     private: // New funcitons
00109 
00110         /**
00111         * AutoTestL
00112         * Show all kinds of popup-windows except list_single_number_pane,
00113         * list_single_heading_pane and list_single_number_heading_pane
00114         * automatically.
00115         */
00116         void AutoTestL();
00117 
00118         /**
00119         * ShowSingleItemPopupListL
00120         * Show "List pane for single item" popup list.
00121         */
00122         void ShowSingleItemPopupListL();
00123 
00124         /**
00125         * ShowSingleItemPopupListWithHeadingAndGraphicsL
00126         * Show "List pane for single item with heading and graphic" popup list.
00127         */
00128         void ShowSingleItemPopupListWithGraphicsL();
00129 
00130         /**
00131         * ShowDoubleItemPopupListWithGraphicsL
00132         * Show "List pane for Double item with large image" popup list.
00133         */
00134         void ShowDoubleItemPopupListWithGraphicsL();
00135 
00136     private: // Data
00137 
00138         /**
00139         * iContainer
00140         * Owned by CAknExPopListView object.
00141         */
00142         CAknExPopListContainer*     iContainer;
00143         
00144         /**
00145         * iFSSession, a handle to a file server session.
00146         */
00147         RFs iFsSession;
00148               
00149               
00150             CIconFileProvider* iIconProvider;
00151     };
00152 
00153 #endif  // __AKNEXPOPLISTVIEW_H__
00154 
00155 // End of File

© Nokia 2009

Back to top