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_PARTITION_FEATURES_CHANGED = 2606; 00085 00089 const long ON_DEVICE_TEMPERATURE_THRESHOLD_REACHED = 2607; 00090 00092 00094 typedef sequence < ToiStorageDevice::TToiStorageDeviceId > TToiStorageDeviceIdSequence; 00095 00103 //@ [ReturnAddress(Type=IToiOperationManager)] 00104 00105 00106 //@ [OutParam(Name=address,Position=1,IsBinary=0, Bound=0)] 00107 ToiOperationManager getStorageOperationManager(); 00108 00115 //@ [OutParam(Name=identifiers,Position=1,IsBinary=0, Bound=0)] 00116 TToiStorageDeviceIdSequence getStorageDeviceIds(); 00117 00127 //@ [ReturnAddress(Type=IToiStorageDevice)] 00128 00129 00130 //@ [OutParam(Name=address,Position=2,IsBinary=0, Bound=0)] 00131 ToiStorageDevice getStorageDevice(in ToiStorageDevice::TToiStorageDeviceId id) 00132 raises (TToiInvalidArgumentException); 00133 00162 //@ [ReturnAddress(Type=IToiStorageFile)] 00163 //@ [IgnoredApplicationId(Position=1)] 00164 00165 00166 //@ [OutParam(Name=address,Position=4,IsBinary=0, Bound=0)] 00167 ToiStorageFile createFile(in string fileName, 00168 in ToiStorageFile::TToiStorageFileType fileType) 00169 raises (TToiInvalidArgumentException, TToiFileException); 00170 00171 }; 00172 00173 #endif