appservicelist.h
来自「演示如何使用的symbian v9服务器应用框架」· C头文件 代码 · 共 66 行
H
66 行
// Copyright (c) 2006 Murray Read, All rights reserved
#ifndef APPSERVICELIST_H
#define APPSERVICELIST_H
#include <aknform.h>
#include <SvexListView.h>
#include <SvexService.h>
class CSvexInfo;
class CSvexAppInfo;
class CAppServiceInfoDialog;
// CAppServiceListControl and CAppServiceListDialog are an example
// of a dialog containing a list. Window owning CCoeControls may
// be good for the main views of an application, but dialogs are
// the only sensible way to implement sub-views in S60.
class CAppServiceListControl : public CSvexListView, public MAknServerAppExitObserver
{
public:
CAppServiceListControl(const CSvexInfo& aInfo, TUid aAppUid);
~CAppServiceListControl();
void ConstructFromResourceL(TResourceReader& aReader);
public: // from CSvexListView
CEikTextListBox* NewListBoxL() const;
TInt Count() const;
void GetText(TInt aIndex, TBuf<KMaxListText>& aText) const;
TSize MinimumSize();
void OpenL();
void ConstructControlL();
private: // from MAknServerAppExitObserver
void HandleServerAppExit(TInt aReason);
private:
const CSvexInfo& iInfo;
TUid iAppUid;
const CSvexAppInfo& iAppInfo;
CSvexServiceInfoClient* iServerApp;
CSvexServiceServiceInfo* iServicesInfo;
};
class CAppServiceListDialog : public CAknDialog
{
public:
CAppServiceListDialog(const CSvexInfo& aInfo, TUid aAppUid);
protected: // from CAknDialog
SEikControlInfo CreateCustomControlL(TInt aControlType);
void ProcessCommandL(TInt aCommandId);
TBool OkToExitL(TInt aButtonId);
private:
CAppServiceListControl* List();
private:
const CSvexInfo& iInfo;
TUid iAppUid;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?