|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================== 00003 * Name : SIPExGameView.h 00004 * Part of : SIPEx 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 __SIPEXGAMEVIEW_H__ 00017 #define __SIPEXGAMEVIEW_H__ 00018 00019 // INCLUDES 00020 #include <aknview.h> 00021 00022 #include "SipEx.hrh" 00023 00024 // CONSTANTS 00025 // UID of view 00026 const TUid KGameViewId = { ESIPExView1Id }; 00027 00028 // FORWARD DECLARATIONS 00029 class CSIPExEngine; 00030 class CSIPExGameContainer; 00031 00032 // CLASS DECLARATION 00033 00034 /** 00035 * CSIPExGameView view class. 00036 * 00037 */ 00038 class CSIPExGameView : public CAknView 00039 { 00040 public: // Constructors and destructor 00041 00042 /** 00043 * First phase contruction 00044 */ 00045 static CSIPExGameView* NewLC( CSIPExEngine& aEngine ); 00046 00047 /** 00048 * Destructor. 00049 */ 00050 ~CSIPExGameView(); 00051 00052 private: 00053 00054 /** 00055 * C++ default constructor 00056 * @param aEngine The reference to the application engine. 00057 */ 00058 CSIPExGameView( CSIPExEngine& aEngine ); 00059 00060 /** 00061 * Second phase construction 00062 */ 00063 void ConstructL(); 00064 00065 public: // Functions from base classes 00066 00067 /** 00068 * Return Uid 00069 */ 00070 TUid Id() const; 00071 00072 /** 00073 * Handle Commands 00074 */ 00075 void HandleCommandL( TInt aCommand ); 00076 00077 /** 00078 * Handle Size changes 00079 */ 00080 void HandleViewRectChange(); 00081 00082 /** 00083 * Handle menu initialization event. 00084 * @param aResourceId Resource ID identifying the menu pane to initialise. 00085 * @param aMenuPane The in-memory representation of the menu pane. 00086 */ 00087 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); 00088 00089 private: 00090 00091 /** 00092 * From AknView, Activates view 00093 */ 00094 void DoActivateL( const TVwsViewId& aPrevViewId,TUid aCustomMessageId, 00095 const TDesC8& aCustomMessage ); 00096 00097 /** 00098 * From AknView, Deactivates view 00099 */ 00100 void DoDeactivate(); 00101 00102 public: 00103 00104 /** 00105 * Return pointer to container, ownership is not transferred 00106 */ 00107 CSIPExGameContainer* Container(); 00108 00109 00110 private: // Data 00111 CSIPExGameContainer* iContainer; 00112 00113 CSIPExEngine& iEngine; 00114 00115 }; 00116 00117 #endif // __SIPEXGAMEVIEW_H__ 00118 00119 // End of File
|
© Nokia 2006 |