svexopenappappui.h

来自「演示如何使用的symbian v9服务器应用框架」· C头文件 代码 · 共 83 行

H
83
字号
// Copyright (c) 2006 Murray Read, All rights reserved

#ifndef __SVEXOPENAPP_APPUI_H__
#define __SVEXOPENAPP_APPUI_H__

#include <aknappui.h>

// Forward reference
class CSvexOpenAppAppView;
class CSvexInfoBase;
class CSvexOpenAppMimeView;
class CSvexServiceInfo;

/*! 
  @class CSvexOpenAppAppUi
  
  @discussion An instance of class CSvexOpenAppAppUi is the UserInterface part of the AVKON
  application framework for the SvexOpenApp example application
  */
class CSvexOpenAppAppUi : public CAknAppUi
    {
public:
/*!
  @function ConstructL
  
  @discussion Perform the second phase construction of a CSvexOpenAppAppUi object
  this needs to be public due to the way the framework constructs the AppUi 
  */
    void ConstructL();

/*!
  @function CSvexOpenAppAppUi
  
  @discussion Perform the first phase of two phase construction.
  This needs to be public due to the way the framework constructs the AppUi 
  */
    CSvexOpenAppAppUi();


/*!
  @function ~CSvexOpenAppAppUi
  
  @discussion Destroy the object and release all memory objects
  */
    ~CSvexOpenAppAppUi();

public: // handler function for the session
	void ShowAllL();
	void ShowAppL(TUid aAppUid);
	void ShowAppAndExitL(TUid aAppUid);
	void ShowMimeL();
	void RemoveView(CCoeControl*& aView);

public: // from CAknAppUi
/*!
  @function HandleCommandL
  
  @discussion Handle user menu selections
  @param aCommand the enumerated code for the option selected
  */
    void HandleCommandL(TInt aCommand);

public:
	void ShowAppAndExitNowL(TUid aAppUid);

private: // delayed ShowAppAndExitL support
	static TInt ShowAppAndExitCallBackL(TAny* aThis);
	CAsyncCallBack* iCallBack;
	TUid iAppUid;

private:
	// The apps view, iAppView, and mime view, iMimeView, are the
	// two top level views in OpenApp.
    CSvexOpenAppAppView* iAppView;
    // The lightweight CSvexInfoBase class is used for services/apps info
    CSvexInfoBase* iInfo;
    CSvexOpenAppMimeView* iMimeView;
    };


#endif // __SVEXOPENAPP_APPUI_H__

⌨️ 快捷键说明

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