TicTacToeAppUi.h
上传用户:laixiong
上传日期:2007-03-11
资源大小:2994k
文件大小:2k
- /*
- * ==============================================================================
- * Name : TicTacToeAppUi.h
- * Part of : TicTacToe
- * Interface :
- * Description :
- * Version :
- *
- * Copyright (c) 2005 Nokia Corporation.
- * ==============================================================================
- */
- #ifndef __TICTACTOE_APPUI_H__
- #define __TICTACTOE_APPUI_H__
- // INCLUDES
- #include <aknappui.h>
- // FORWARD DECLARATIONS
- class CTicTacToeAppView;
- // CLASS DECLARATION
- /**
- * An instance of class CTicTacToeAppUi is the UserInterface part of the AVKON
- * application framework for the TicTacToe application.
- */
- class CTicTacToeAppUi : public CAknAppUi
- {
- public: // Constructors and destructor
- /**
- * Perform the second phase construction. This needs to be public due
- * to the way the framework constructs the AppUi.
- */
- void ConstructL();
- /**
- * Perform the first phase of two phase construction. This needs to be
- * public due to the way the framework constructs the AppUi.
- */
- CTicTacToeAppUi();
- /**
- * Destroy the object.
- */
- ~CTicTacToeAppUi();
- public: // from CAknAppUi
- /**
- * Handle user menu selections.
- * @param aCommand the enumerated code for the option selected
- */
- void HandleCommandL(TInt aCommand);
- private: // from CAknAppUi
- /**
- * Handle change in screen resolution.
- */
- void HandleScreenDeviceChangedL();
- private: // New functions
- /**
- * Change the currently selected graphics set.
- * @param aGraphicsSet New graphics set
- */
- void SetGraphicsL(TInt aGraphicsSet);
- /**
- * Load settings from the config file.
- */
- void LoadSettingsL();
- /**
- * Save settings to the config file.
- */
- void SaveSettingsL();
- private: // Data
- // The application view
- CTicTacToeAppView* iAppView;
- // The currently selected graphics set
- TInt iGraphicsSet;
- };
- #endif // __TICTACTOE_APPUI_H__
- // End of File