IToiStorageService.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ITOISTORAGESERVICE_IDL
00016 #define ITOISTORAGESERVICE_IDL
00017
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiNotEnoughResourcesException.idl"
00020 #include "TToiUnhandledValueException.idl"
00021 #include "IToiApplicationService.idl"
00022 #include "IToiOperationManager.idl"
00023 #include "TToiInvalidPreconditionException.idl"
00024 #include "TToiOperationNotSupportedException.idl"
00025 #include "IToiStorageDevice.idl"
00026 #include "TToiFileException.idl"
00027 #include "IToiStorageFile.idl"
00028
00029 #include "IToiApplicationService.idl"
00041
00042
00043
00044 interface IToiStorageService {
00045
00047 typedef sequence < IToiStorageDevice::TToiStorageDeviceId > TToiStorageDeviceIdSequence;
00048
00055
00056
00057
00058 void GetStorageOperationManager(out string address);
00059
00066 void GetStorageDeviceIds(out TToiStorageDeviceIdSequence identifiers);
00067
00076
00077
00078
00079 void GetStorageDevice(in IToiStorageDevice::TToiStorageDeviceId id,
00080 out string address)
00081 raises (TToiInvalidArgumentException);
00082
00096
00097
00098
00099 void Copy(in IToiOperationManager::TToiOperationId operationId,
00100 in string source,
00101 in string target)
00102 raises (TToiInvalidArgumentException);
00103
00117
00118
00119
00120 void Move(in IToiOperationManager::TToiOperationId operationId,
00121 in string source,
00122 in string target)
00123 raises (TToiInvalidArgumentException);
00124
00155
00156
00157
00158
00159 void CreateFile(in IToiApplicationService::TToiApplicationId applicationId,
00160 in string fileName,
00161 in IToiStorageFile::TToiStorageFileType fileType,
00162 out string address)
00163 raises (TToiInvalidArgumentException, TToiFileException);
00164
00165
00166
00179 void RegisterObserver(in IToiApplicationService::TToiApplicationId applicationId,
00180 in string address)
00181 raises (TToiInvalidArgumentException);
00182
00191 void ReleaseObserver(in string address)
00192 raises (TToiInvalidArgumentException);
00193
00194 };
00195
00196 #endif