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

📄 appservicelist.h

📁 symbian下读取服务的程序
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -