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

📄 ebo_services.h

📁 这是法国Kaleido公司提供了一个手机mmi设计平台
💻 H
字号:
/***************************************************************************
                          EBO_Services.h - eBon services
                             -------------------
    begin                : Fri Jul 15 2005
    copyright            : (C) 2000-2005 by DigitalAirways
    email                : info@digitalairways.com
 ***************************************************************************/

/*
 * Copyright (c) 2000-2005 DigitalAirways, sarl. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of
 * DigitalAirways, sarl. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with DigitalAirways.
 * A copy of this license is included in the licence.txt file included
 * in this software package.
*/


#ifndef __EBO_SERVICES__
#define __EBO_SERVICES__

#include "SmallArrayList.h"
#include "EB_GContext.h"

#define SERVICE_TAPI "TAPIManager"
#define SERVICE_SOUNDMIXER "SoundMixer"
#define SERVICE_TASKSLICER "TaskSlicer"
#define SERVICE_SIM "SIMReader"


class KREBDLIBS_API EBO_Service {
	private:
		char* id;
		char* type;
		char* module;
		char* arg1;
		char* arg2;
		char* arg3;
		char* arg4;
		void* handle ; // Handle to the service's instance
		// Some arguments may be added, depending on the concerned service...
		static SmallArrayList* serviceList ;
		static GContext* primaryContext ;
	public:
		static void addService(EBO_Service* service) ;
		static void cleanAll() ;
		static void* getNextHandle(char* serviceType, int *firstIndex=NULL);
	public:
		DEFINE_NEW(EBO_Service);
		DEFINE_DELETE(EBO_Service);
		static void init() ;
		EBO_Service(SmallArrayList* descr);
		~EBO_Service();
		void dump();
		void* getSymbolEntry(char* symbol);
		static void setPrimaryContext(GContext* newPrimaryContext) { primaryContext = newPrimaryContext; return; }
		static GContext* getPrimaryContext() { return primaryContext; }
	} ;


typedef void* (*serviceCreator) (char* arg1, char* arg2, char* arg3, char* arg4) ;
typedef void (*serviceDeletor) (void* instance) ;

#endif // ndef __EBO_SERVICES__


⌨️ 快捷键说明

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