IPlatformService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *---------------------------------------------------------------------------
00003  *
00004  * interface/internal/IPlatformService.idl
00005  *
00006  * Copyright (c) 2003, 2010 Motorola, Inc. All rights reserved.
00007  *
00008  *---------------------------------------------------------------------------
00009  */
00010 
00011 #ifndef IPLATFORMSERVICE_IDL
00012 #define IPLATFORMSERVICE_IDL
00013 
00014 #include "IToiPlatformService.idl"
00015 #include "TToiInvalidArgumentException.idl"
00016 
00026 interface IPlatformService : IToiPlatformService
00027 {
00031   enum TStartupType
00032   {
00034     STARTUP_TYPE_POWER_ON,
00035 
00037     STARTUP_TYPE_REBOOT,
00038 
00042     STARTUP_TYPE_WAKE_UP,
00043 
00047     STARTUP_TYPE_PLATFORM_FAILURE,
00048 
00050     STARTUP_TYPE_PLATFORM_RESTART
00051   };
00052 
00069   void ReportComponent(in long serviceId, in string address)
00070     raises (TToiInvalidArgumentException);
00071 
00083   void UnloadDone(in long serviceId)
00084     raises (TToiInvalidArgumentException);
00085 
00092   oneway void ReportPing(in long serviceId);
00093 
00097   void ClearFlash();
00098 
00104   void IsInStandby(out boolean value);
00105 
00111   void GetStartupType(out TStartupType type);
00112 
00115   oneway void RestartPlatformNow();
00116 
00134   void RegisterFactoryResetHandler(in string address, out long handlerId)
00135     raises (TToiInvalidArgumentException);
00136 
00144   void UnregisterFactoryResetHandler(in long handlerId)
00145     raises (TToiInvalidArgumentException);
00146 
00154   oneway void FactoryResetHandlerDone(in long handlerId);
00155 };
00156 
00157 #endif