|
Nokia N97 SDK Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : aknexnoteview.h 00004 * Part of : Note 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 __AKNEXNOTEVIEW_H__ 00017 #define __AKNEXNOTEVIEW_H__ 00018 00019 // INCLUDES 00020 #include <aknview.h> 00021 00022 00023 00024 // FORWARD DECLARATIONS 00025 class CAknExNoteContainer; 00026 00027 // CLASS DECLARATION 00028 00029 00030 /** 00031 * CAknExNoteView view class. 00032 */ 00033 class CAknExNoteView : public CAknView 00034 { 00035 public: // Constructors and destructor 00036 00037 /** 00038 * CAknExNoteView 00039 * C++ default constructor. 00040 */ 00041 CAknExNoteView(); 00042 00043 /** 00044 * ~CAknExNoteView 00045 * Virtual Destructor. 00046 */ 00047 virtual ~CAknExNoteView(); 00048 00049 /** 00050 * ConstructL 00051 * 2nd phase constructor. 00052 */ 00053 void ConstructL(); 00054 00055 public: // New functions 00056 00057 /** 00058 * DisplayNextOutlineL 00059 * Display next outline. 00060 */ 00061 void DisplayNextOutlineL(); 00062 00063 public: // From CAknView. 00064 00065 /** 00066 * Id 00067 * Returns the ID of view. 00068 * @return The ID of view. 00069 */ 00070 TUid Id() const; 00071 00072 00073 /** 00074 * HandleCommandL. 00075 * handles the commands. if the command is command which is require to 00076 * display outline-screen, the command is reported to container class. 00077 * @param aCommand Command to be handled. 00078 */ 00079 void HandleCommandL( TInt aCommand ); 00080 00081 /** 00082 * From CAknView, HandleViewRectChange. 00083 * Handles the size of the clientrect. 00084 */ 00085 void HandleViewRectChange(); 00086 00087 00088 private: // New functions 00089 00090 /** 00091 * IndicateTitlePaneTextL 00092 * Set title text to status-pane 00093 * @param aCommand Command to be handled. 00094 */ 00095 void IndicateTitlePaneTextL( TInt aCommand ); 00096 00097 00098 private: // From CAknView 00099 00100 /** 00101 * DoActivateL. 00102 * Creates the Container class object. 00103 * @param aPrevViewId aPrevViewId is not used. 00104 * @param aCustomMessageId aCustomMessageId is not used. 00105 * @param aCustomMessage aCustomMessage is not used. 00106 */ 00107 void DoActivateL( const TVwsViewId& aPrevViewId, 00108 TUid aCustomMessageId, 00109 const TDesC8& aCustomMessage ); 00110 00111 /** 00112 * DoDeactivate. 00113 * Deletes the Container class object. 00114 */ 00115 void DoDeactivate(); 00116 00117 00118 private: // Data 00119 00120 /** 00121 * iContainer 00122 * Owned by CAknExNoteView object. 00123 */ 00124 CAknExNoteContainer* iContainer; 00125 00126 /** Integer for Current outline **/ 00127 TInt iCurrentOutline; 00128 00129 }; 00130 00131 #endif //__AKNEXNOTEVIEW_H__ 00132 00133 // End of File
|
© Nokia 2009 |