examples/SFExamples/games_on_symbian_os_code/oandx/inc/oandxappui.h

00001 // 
00002 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
00003 // All rights reserved.
00004 // This component and the accompanying materials are made available
00005 // under the terms of the License "Eclipse Public License v1.0"
00006 // which accompanies this distribution, and is available
00007 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
00008 // 
00009 // Initial Contributors:
00010 // Nokia Corporation - initial contribution.
00011 // 
00012 // Contributors:
00013 // 
00014 // Description:
00015 // 
00016 
00017 #ifndef OANDX_APPUI_H
00018 #define OANDX_APPUI_H
00019 
00020 #include <aknappui.h>
00021 #include <eikmenup.h>
00022 #include <eikmenub.h>
00023 
00024 class COandXAppView;
00025 class COandXController;
00026 class COandXEngine;
00027 
00028 class COandXAppUi : public CAknAppUi
00033         {
00034 public:
00035         COandXAppUi();
00036         virtual ~COandXAppUi();
00037 
00038         // New functions
00039         void ReportWhoseTurn();
00040         void ReportWinnerL(TInt aWinner);
00041 
00042         // From CEikAppUi, for persistent data
00043         TStreamId StoreL(CStreamStore& aStore) const;
00044         void RestoreL(const CStreamStore& aStore, TStreamId aStreamId);
00045         void ExternalizeL(RWriteStream& aStream) const;
00046         void InternalizeL(RReadStream& aStream);
00047 
00048 private:
00049         
00050         // From MEikMenuObserver
00051         void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);
00052 
00053         // From CEikAppUi
00054         void HandleCommandL(TInt aCommand);
00055         void ConstructL();
00056 
00057 public:
00058         // AppUi owns the controller, engine and application view.
00059         COandXController* iController;
00060         COandXEngine* iEngine;
00061 private:
00062         COandXAppView* iAppView;
00063         // Set if the app view was added to the control stack.
00064         TBool iStacked;
00065         };
00066 
00067 
00068 // Global accessor functions
00069 
00070 GLREF_C COandXAppUi* OandXAppUi();
00071 GLREF_C COandXController& Controller();
00072 GLREF_C COandXEngine& Engine();
00073 
00074 #endif // OANDX_APPUI_H
00075 

Generated by  doxygen 1.6.2