ToiStorageService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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
00043
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
00099
00100
00101
00102 ToiOperationManager getStorageOperationManager();
00103
00110
00111 TToiStorageDeviceIdSequence getStorageDeviceIds();
00112
00122
00123
00124
00125
00126 ToiStorageDevice getStorageDevice(in ToiStorageDevice::TToiStorageDeviceId id)
00127 raises (TToiInvalidArgumentException);
00128
00157
00158
00159
00160
00161
00162 ToiStorageFile createFile(in string fileName,
00163 in ToiStorageFile::TToiStorageFileType fileType)
00164 raises (TToiInvalidArgumentException, TToiFileException);
00165
00166 };
00167
00168 #endif