00001 /* 00002 * Copyright © 2008 Nokia Corporation. 00003 */ 00004 00005 #ifndef TZLOCALIZERAPPUI_H 00006 #define TZLOCALIZERAPPUI_H 00007 00008 // INCLUDES 00009 #include <eikapp.h> 00010 #include <eikdoc.h> 00011 #include <e32std.h> 00012 #include <coeccntx.h> 00013 #include <aknappui.h> 00014 #include <eikdialg.h> 00015 #include <TzLocalizationDataTypes.h> 00016 00017 // FORWARD DECLARATIONS 00018 class CTZLocalizerDialog; 00019 class CTZLocalizerEngine; 00020 00021 00022 // CLASS DECLARATION 00023 enum TCurrentlyShowing 00024 { 00025 EShowingNothing = 1, 00026 EShowingCity, 00027 EShowingCountry 00028 }; 00029 00030 00031 class CTZLocalizerAppUi : public CAknAppUi 00032 { 00033 public: // // Constructors and destructor 00034 00035 void ConstructL(); 00036 virtual ~CTZLocalizerAppUi(); 00037 00038 private: 00039 void DynInitMenuPaneL( TInt aResourceId,CEikMenuPane* aMenuPane ); 00040 00041 void FillListBoxL( CTzLocalizedCity* aLocalizedCity ); 00042 00043 void FillListBoxL( CDesC16ArrayFlat* aArray ); 00044 00045 void ClearListBoxL(); 00046 00047 void ShowInfoL( const TPtrC aText ); 00048 00049 TBool QueryTextL( const TPtrC aPrompt, TDes& aReturn ); 00050 00051 TBool AskPopupChoiseL( const TPtrC aPrompt, 00052 CDesC16ArrayFlat* aList, TDes& aReturn ); 00053 00054 void CreateNewCityL(); 00055 00056 void SearchCitiesL(); 00057 00058 void DeleteCityL(); 00059 00060 void HandleCommandL( TInt aCommand ); 00061 00062 virtual TKeyResponse HandleKeyEventL( 00063 const TKeyEvent& aKeyEvent,TEventCode aType); 00064 00065 void SearchCitiesInGroupsL(); 00066 void HandleResourceChangeL( TInt aType ); 00067 00068 private: //Data 00069 CTZLocalizerDialog* iAppDialog; 00070 CTZLocalizerEngine* iTzEngine; 00071 }; 00072 00073 #endif 00074 00075 // End of File
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.