|
Nokia N97 SDK Example Applications Guide |
00001 00002 /* 00003 * ============================================================================== 00004 * Name : MyViewView2.h 00005 * Part of : MyView 00006 * Interface : 00007 * Description : Declares second view of the application 00008 * Version : 00009 * 00010 * Copyright (c) 2002 - 2007 Nokia Corporation. 00011 * This material, including documentation and any related 00012 * computer programs, is protected by copyright controlled by 00013 * Nokia Corporation. 00014 * ============================================================================== 00015 */ 00016 00017 00018 #ifndef MYVIEWVIEW2_H 00019 #define MYVIEWVIEW2_H 00020 00021 // INCLUDES 00022 #include <aknview.h> 00023 00024 00025 // CONSTANTS 00026 // UID of view 00027 const TUid KView2Id = {2}; 00028 00029 // FORWARD DECLARATIONS 00030 class CMyViewContainer2; 00031 00032 // CLASS DECLARATION 00033 00034 /** 00035 * CMyViewView2 view class. 00036 * 00037 */ 00038 class CMyViewView2 : public CAknView 00039 { 00040 public: // Constructors and destructor 00041 00042 /** 00043 * EPOC default constructor. 00044 */ 00045 void ConstructL(); 00046 00047 /** 00048 * Destructor. 00049 */ 00050 ~CMyViewView2(); 00051 00052 public: // Functions from base classes 00053 00054 /** 00055 * Return Uid 00056 */ 00057 TUid Id() const; 00058 00059 /** 00060 * Handle Commands 00061 */ 00062 void HandleCommandL(TInt aCommand); 00063 00064 /** 00065 * Handle size change 00066 */ 00067 void HandleClientRectChange(); 00068 00069 00070 private: 00071 00072 /** 00073 * From AknView, activates view 00074 */ 00075 void DoActivateL(const TVwsViewId& aPrevViewId,TUid aCustomMessageId, 00076 const TDesC8& aCustomMessage); 00077 00078 /** 00079 * From AknView, deactivates view 00080 */ 00081 void DoDeactivate(); 00082 00083 00084 00085 private: // Data 00086 CMyViewContainer2* iContainer; 00087 }; 00088 00089 #endif 00090 00091 // End of File
|
© Nokia 2009 |