⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 oandxappui.h

📁 在symbian os 上运行
💻 H
字号:
// Copyright (c) 2004, Symbian Software Ltd. All rights reserved.

#ifndef __OANDX_APPUI_H__
#define __OANDX_APPUI_H__

#include <aknappui.h>
#include <eikmenup.h>
#include <eikmenub.h>
#include <aknnavi.h>
#include <aknnavide.h>

class COandXAppView;

class MOandXGameControl
    {
public:
    virtual TBool HitSquareL(TInt aIndex)=0;
    virtual TInt SquareStatus(TInt aIndex)=0;
    };

class COandXAppUi : public CAknAppUi, public MOandXGameControl
    {
public:
    COandXAppUi();
    ~COandXAppUi();
    void ConstructL();

private: // Implementation
    void SetWinLineL(TInt aTile0, TInt aTile1, TInt aTile2);

public: // From CAknAppUi
    void HandleCommandL(TInt aCommand);

public: // From MEikMenuObserver
    void DynInitMenuPaneL(TInt aResourceId, CEikMenuPane* aMenuPane);

public: // New functions
    TBool IsCrossTurn();
    TInt GameWonBy();

public: // From CEikAppUi, for permanent data
    TStreamId StoreL(CStreamStore& aStore) const;
    void RestoreL(const CStreamStore& aStore, TStreamId aStreamId);
    void ExternalizeL(RWriteStream& aStream) const;
    void InternalizeL(RReadStream& aStream);

private:
    void SetNavigationPaneL(TBool aBool);
    void SwitchTurnL();

private: // From MOandXGameControl
    TBool HitSquareL(TInt aIndex);
    TInt SquareStatus(TInt aIndex);

private:
    COandXAppView* iAppView; // AppUi owns the application view
    TInt iGameStatus;
    TBool iCrossTurn;
    RArray<TInt> iTileState;
    RArray<TInt> iWinLines;
    CAknNavigationControlContainer* iNaviPane; // Not owned by the AppUi
    CAknNavigationDecorator* iNaviDecorator;   // Owned by the AppUi
    };


#endif // __OANDX_APPUI_H__

⌨️ 快捷键说明

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