|
Nokia N97 SDK Example Applications Guide |
00001 00002 /* 00003 * ============================================================================== 00004 * Name : MyViewView.h 00005 * Part of : MyView 00006 * Interface : 00007 * Description : Declares first 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 #ifndef MYVIEWVIEW_H 00018 #define MYVIEWVIEW_H 00019 00020 // INCLUDES 00021 #include <aknview.h> 00022 #include <akntabgrp.h> // For handling tabs 00023 00024 00025 // CONSTANTS 00026 // UID of view 00027 const TUid KViewId = {1}; 00028 00029 // FORWARD DECLARATIONS 00030 class CMyViewContainer; 00031 00032 // CLASS DECLARATION 00033 00034 /** 00035 * CMyViewView view class. 00036 * 00037 */ 00038 class CMyViewView : public CAknView 00039 { 00040 public: // Constructors and destructor 00041 00042 /** 00043 * EPOC default constructor. 00044 */ 00045 void ConstructL(CAknTabGroup*); 00046 00047 /** 00048 * Destructor. 00049 */ 00050 ~CMyViewView(); 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 changes 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 CMyViewContainer* iContainer; 00087 CAknTabGroup* iTabGroup; 00088 00089 }; 00090 00091 #endif 00092 00093 // End of File
|
© Nokia 2009 |