|
S60 3rd Edition SDK for Symbian OS Example Applications Guide |
00001 /* 00002 * ============================================================================ 00003 * Name : LmUiRefAppView.h 00004 * Part of : Landmarks UI Reference Application 00005 * Interface : 00006 * Description : 00007 * Declares UI class for application. 00008 * Version : 00009 * 00010 * Copyright (c) 2005-2006 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 LMUIREFAPPVIEW 00018 #define LMUIREFAPPVIEW_H 00019 00020 // INCLUDES 00021 #include <eikapp.h> 00022 #include <eikdoc.h> 00023 #include <e32std.h> 00024 #include <coeccntx.h> 00025 #include <aknappui.h> 00026 #include <AknViewAppUi.h> 00027 #include <aknview.h> 00028 00029 // FORWARD DECLARATIONS 00030 00031 class CLmkLandmarkSelectorDlg; 00032 class CLmUiRefAppContainer; 00033 class CPosLandmark; 00034 class CPosLandmarkDatabase; 00035 // CLASS DECLARATION 00036 00037 /** 00038 * CLmUiRefAppview class. 00039 * 00040 */ 00041 class CLmUiRefAppView : public CAknView 00042 { 00043 public: // Constructors and destructor 00044 /** 00045 * C++ default constructor. 00046 * @param aKeyProcessor 00047 * @param aLmkSender 00048 * @return created CLmkByLmView object 00049 */ 00050 static CLmUiRefAppView* NewLC(); 00051 00052 /** 00053 * Destructor. 00054 */ 00055 ~CLmUiRefAppView(); 00056 00057 private: // constructor 00058 /** 00059 * C++ constructor 00060 * @return newly instantiated object 00061 */ 00062 CLmUiRefAppView(); 00063 00064 /** 00065 * By default Symbian 2nd phase constructor is private. 00066 */ 00067 void ConstructL(); 00068 00069 // New Functions added 00070 void NewLmCmdL(); 00071 void ExecuteLmEditorL(CPosLandmark* aLandmark, CPosLandmarkDatabase& aDb); 00072 00073 00074 public: // New Funcs 00075 CAknViewAppUi* ViewAppUi(); 00076 TPosLmItemId SelectedItem() const; 00077 TInt LaunchLandmarksDialogL(); 00078 TBool IsLmDbEmptyL(); 00079 00080 public: // From CAknView 00081 TUid Id() const; 00082 void HandleCommandL( TInt aCommand ); 00083 00084 private: //From CAknView 00085 void DoActivateL( const TVwsViewId& aPrevViewId, TUid aCustomMessageId, 00086 const TDesC8& aCustomMessage ); 00087 void DoDeactivate(); 00088 00089 protected: // From MEikMenuObserver 00090 void DynInitMenuPaneL( TInt aResourceId, CEikMenuPane* aMenuPane ); 00091 00092 private: // Data 00093 /// Own: A pointer to container 00094 CLmUiRefAppContainer* iContainer; 00095 00096 CLmUiRefAppUi* iLmUiRefAppUi; 00097 00098 TPosLmItemId iSelectedItem; 00099 00100 CLmkLandmarkSelectorDlg *iLmkSelectDlg; 00101 00102 // Added after Common UI change 00103 CPosLandmarkDatabase* ilDb; 00104 }; 00105 00106 #endif // CLMKBYLMVIEW_H 00107 00108 // End of File 00109
|
© Nokia 2006 |