tictactoeappui.h

来自「symbianOS第三版开发与实用教程部分源码和部分试验」· C头文件 代码 · 共 96 行

H
96
字号
/*
* ==============================================================================
*  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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?