| Motorola Mobility Confidential Restricted. |
|
/extra/kbs/check_outs/co_206438/STABLE_geranium_lpm_cornsilk_1/dist/idl/js/toi/ToiPowerControl.idl 00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 *-------------------------------------------------------------------- 00003 * 00004 * ToiPowerControl.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 TOIPOWERCONTROL_IDL 00016 #define TOIPOWERCONTROL_IDL 00017 00018 #include "TToiInvalidArgumentException.idl" 00019 #include "TToiInvalidPreconditionException.idl" 00020 #include "TToiPermissionDeniedException.idl" 00021 #include "ToiEventTarget.idl" 00022 00023 //@ [Struct(Interface=IToiPowerControl,Name=TToiPowerControllerInfo)] 00024 interface ToiPowerControlPowerControllerInfo; 00025 00035 //@ [EventTarget(EventObserver=IToiPowerControlObserver)] 00036 00037 //@ [ReleaseInstance(Method=ReleaseInstance)] 00038 interface ToiPowerControl : ToiEventTarget { 00039 00042 00046 const long ON_POWER_PROFILE_REQUESTED = 4400; 00047 00051 const long ON_POWER_PROFILE_SELECTED = 4401; 00052 00056 const long ON_AUTO_POWER_DOWN_TIMER_EXPIRED = 4402; 00057 00059 00063 //@ [Enum] 00064 typedef long TToiPowerProfile; 00067 00073 //@ [Enumerator(Enum=TToiPowerProfile,Name=PROFILE_ACTIVE)] 00074 const TToiPowerProfile PROFILE_ACTIVE = 0; 00075 00082 //@ [Enumerator(Enum=TToiPowerProfile,Name=PROFILE_ACTIVE_STANDBY)] 00083 const TToiPowerProfile PROFILE_ACTIVE_STANDBY = 1; 00084 00091 //@ [Enumerator(Enum=TToiPowerProfile,Name=PROFILE_ACTIVE_STANDBY_LOW)] 00092 const TToiPowerProfile PROFILE_ACTIVE_STANDBY_LOW = 2; 00093 00100 //@ [Enumerator(Enum=TToiPowerProfile,Name=PROFILE_PASSIVE_STANDBY)] 00101 const TToiPowerProfile PROFILE_PASSIVE_STANDBY = 3; 00102 00104 00106 //@ [Enum] 00107 typedef long TToiPowerProfileChangeReason; 00110 00116 //@ [Enumerator(Enum=TToiPowerProfileChangeReason,Name=REASON_STANDARD)] 00117 const TToiPowerProfileChangeReason REASON_STANDARD = 0; 00118 00124 //@ [Enumerator(Enum=TToiPowerProfileChangeReason,Name=REASON_AUTO_POWER_DOWN)] 00125 const TToiPowerProfileChangeReason REASON_AUTO_POWER_DOWN = 1; 00126 00128 00130 //@ [Enum] 00131 typedef long TToiPowerProfileAccess; 00134 00140 //@ [Enumerator(Enum=TToiPowerProfileAccess,Name=ACCESS_REPORT_ONLY)] 00141 const TToiPowerProfileAccess ACCESS_REPORT_ONLY = 0; 00142 00149 //@ [Enumerator(Enum=TToiPowerProfileAccess,Name=ACCESS_REPORT_AND_REQUEST)] 00150 const TToiPowerProfileAccess ACCESS_REPORT_AND_REQUEST = 1; 00151 00153 00154 typedef sequence < ToiPowerControlPowerControllerInfo > TToiPowerControllerInfoSequence; 00155 00170 void reportPowerProfile(in TToiPowerProfile profile) 00171 raises (TToiInvalidPreconditionException); 00172 00184 void reportPowerProfileActionsComplete() 00185 raises (TToiInvalidPreconditionException); 00186 00202 void requestPowerProfile(in TToiPowerProfile profile, 00203 in TToiPowerProfileChangeReason reason) 00204 raises (TToiInvalidArgumentException, TToiPermissionDeniedException, TToiInvalidPreconditionException); 00205 00212 //@ [OutParam(Name=profile,Position=1,IsBinary=0, Bound=0)] 00213 TToiPowerProfile getCurrentPowerProfile(); 00214 00228 void setWakeupTimeout(in unsigned long timeSpan) 00229 raises (TToiInvalidPreconditionException); 00230 00235 //@ [ReleaseInstance] 00236 00237 00238 void releaseInstance(); 00239 00240 }; 00241 00242 #endif |