00001 /* ==================================================================== 00002 * File: TestAppAppUi.h 00003 * Created: 28/06/06 by Forum Nokia 00004 * Author: 00005 * Copyright (c): , All rights reserved 00006 * ==================================================================== */ 00007 00008 #ifndef __TESTAPP_APPUI_H__ 00009 #define __TESTAPP_APPUI_H__ 00010 00011 #include <aknappui.h> 00012 00013 #ifdef __SERIES60_3X__ 00014 #include <aknserverapp.h> 00015 #else 00016 #include <apparc.h> 00017 #endif 00018 00019 // Forward declarations 00020 class CTestAppAppView; 00021 class CDocumentHandler; 00022 00023 00024 00032 class CTestAppAppUi : public CAknAppUi, public 00033 #ifdef __SERIES60_3X__ 00034 MAknServerAppExitObserver 00035 #else 00036 MApaEmbeddedDocObserver 00037 #endif 00038 { 00039 public: 00046 void ConstructL(); 00047 00054 CTestAppAppUi(); 00055 00056 00062 ~CTestAppAppUi(); 00063 00064 00065 public: // from CAknAppUi 00066 00067 void HandleCommandL(TInt aCommand); 00068 00069 void HandleResourceChangeL(TInt aType); 00070 00071 public: 00072 00073 //These callback functions are called when the handler application 00074 //is closed. The CDocumentHandlers SetExitObserver has to have 00075 //been called (iDocHandler->SetExitObserver(this);) in order 00076 //for these functions to be called. 00077 #ifdef __SERIES60_3X__ 00078 //from MAknServerAppExitObserver 00079 void HandleServerAppExit (TInt aReason); 00080 #else 00081 //from MApaEmbeddedDocObserver 00082 void NotifyExit(TExitMode aMode); 00083 #endif 00084 00085 private: 00091 void LaunchFileL(TBool aEmbedded); 00092 00097 TBool RefreshDocumentFileL(const TUid& aUid, const TDesC& aFileName ); 00098 00099 private: 00100 00101 CTestAppAppView* iAppView; 00102 00103 // a counter for switching the file 00104 TInt iCount; 00105 00106 // the document handler 00107 CDocumentHandler* iDocHandler; 00108 00109 }; 00110 00111 00112 #endif // __TESTAPP_APPUI_H__ 00113
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.