00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 *-------------------------------------------------------------------- 00003 * 00004 * ToiResourceService.idl 00005 * 00006 * This file was created by the Motorola IDL backend, 00007 * which is based on the OmniORB IDL parser. 00008 * Please do not modify. 00009 * 00010 * Copyright (c) 2009 Motorola Inc. All Rights Reserved. 00011 * 00012 *-------------------------------------------------------------------- 00013 */ 00014 00015 #ifndef TOIRESOURCESERVICE_IDL 00016 #define TOIRESOURCESERVICE_IDL 00017 00018 #include "ToiEventTarget.idl" 00019 00020 //@ [Struct(Interface=IToiResourceService,Name=TToiResourceInfo)] 00021 interface ToiResourceServiceResourceInfo; 00022 00023 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00024 *-------------------------------------------------------------------- 00025 * 00026 * ToiResourceService.idl 00027 * 00028 * Copyright (c) 2011 Motorola, Inc. All Rights Reserved. 00029 * 00030 *-------------------------------------------------------------------- 00031 */ 00040 //@ [EventTarget(EventObserver=IToiResourceObserver)] 00041 //@ [Service(Name=ResourceService)] 00044 interface ToiResourceService : ToiEventTarget { 00045 00048 00052 const long ON_FREE_RESOURCES_CHANGED = 1500; 00053 00055 00058 //@ [Enum] 00059 typedef long TToiResource; 00062 00063 /*** Tuner resource. */ 00068 //@ [Enumerator(Enum=TToiResource,Name=RESOURCE_TUNER)] 00069 const TToiResource RESOURCE_TUNER = 0; 00070 00076 //@ [Enumerator(Enum=TToiResource,Name=RESOURCE_NETWORK_INPUT)] 00077 const TToiResource RESOURCE_NETWORK_INPUT = 1; 00078 00080 00082 //@ [Enum] 00083 typedef long TToiAvailability; 00086 00087 /*The resource is currently used.*/ 00092 //@ [Enumerator(Enum=TToiAvailability,Name=AVAILABILITY_ALLOCATED)] 00093 const TToiAvailability AVAILABILITY_ALLOCATED = 0; 00094 00095 /*The resource is free.*/ 00100 //@ [Enumerator(Enum=TToiAvailability,Name=AVAILABILITY_FREE)] 00101 const TToiAvailability AVAILABILITY_FREE = 1; 00102 00104 00105 typedef sequence < ToiResourceServiceResourceInfo > TToiResourceInfoSequence; 00106 00113 //@ [OutParam(Name=resources,Position=1,IsBinary=0, Bound=0)] 00114 TToiResourceInfoSequence getResources(); 00115 00116 }; 00117 00118 #endif