00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- 00002 *-------------------------------------------------------------------- 00003 * 00004 * ToiStorageService.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 TOISTORAGESERVICE_IDL 00016 #define TOISTORAGESERVICE_IDL 00017 00018 #include "TToiInvalidArgumentException.idl" 00019 #include "TToiNotEnoughResourcesException.idl" 00020 #include "TToiUnhandledValueException.idl" 00021 #include "ToiApplicationService.idl" 00022 #include "ToiOperationManager.idl" 00023 #include "TToiInvalidPreconditionException.idl" 00024 #include "TToiOperationNotSupportedException.idl" 00025 #include "ToiStorageDevice.idl" 00026 #include "TToiFileException.idl" 00027 #include "ToiStorageFile.idl" 00028 #include "ToiEventTarget.idl" 00029 00030 00042 //@ [Service(Name=StorageService)] 00043 //@ [EventTarget(EventObserver=IToiStorageObserver)] 00046 interface ToiStorageService : ToiEventTarget { 00047 00050 00054 const long ON_DEVICE_CONNECTED = 2600; 00055 00059 const long ON_DEVICE_DISCONNECTED = 2601; 00060 00064 const long ON_DEVICE_SPINNING_CHANGED = 2602; 00065 00069 const long ON_DEVICE_PARTITIONS_CHANGED = 2603; 00070 00074 const long ON_DEVICE_PARTITION_MOUNT_CHANGED = 2604; 00075 00079 const long ON_DEVICE_PARTITION_FULL = 2605; 00080 00084 const long ON_DEVICE_TEMPERATURE_THRESHOLD_REACHED = 2606; 00085 00087 00089 typedef sequence < ToiStorageDevice::TToiStorageDeviceId > TToiStorageDeviceIdSequence; 00090 00098 //@ [ReturnAddress(Type=IToiOperationManager)] 00099 00100 00101 //@ [OutParam(Name=address,Position=1,IsBinary=0, Bound=0)] 00102 ToiOperationManager getStorageOperationManager(); 00103 00110 //@ [OutParam(Name=identifiers,Position=1,IsBinary=0, Bound=0)] 00111 TToiStorageDeviceIdSequence getStorageDeviceIds(); 00112 00122 //@ [ReturnAddress(Type=IToiStorageDevice)] 00123 00124 00125 //@ [OutParam(Name=address,Position=2,IsBinary=0, Bound=0)] 00126 ToiStorageDevice getStorageDevice(in ToiStorageDevice::TToiStorageDeviceId id) 00127 raises (TToiInvalidArgumentException); 00128 00157 //@ [ReturnAddress(Type=IToiStorageFile)] 00158 //@ [IgnoredApplicationId(Position=1)] 00159 00160 00161 //@ [OutParam(Name=address,Position=4,IsBinary=0, Bound=0)] 00162 ToiStorageFile createFile(in string fileName, 00163 in ToiStorageFile::TToiStorageFileType fileType) 00164 raises (TToiInvalidArgumentException, TToiFileException); 00165 00166 }; 00167 00168 #endif