IToiStorageService.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * IToiStorageService.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 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 //@ [Service(Name=StorageService)]
00042 //@ [EventTarget(EventObserver=IToiStorageObserver)]
00043 
00044 interface IToiStorageService {
00045 
00047   typedef sequence < IToiStorageDevice::TToiStorageDeviceId > TToiStorageDeviceIdSequence;
00048   
00055   //@ [ReturnAddress(Type=IToiOperationManager)]
00056   
00057   
00058   void GetStorageOperationManager(out string address);
00059   
00066   void GetStorageDeviceIds(out TToiStorageDeviceIdSequence identifiers);
00067   
00076   //@ [ReturnAddress(Type=IToiStorageDevice)]
00077   
00078   
00079   void GetStorageDevice(in IToiStorageDevice::TToiStorageDeviceId id, 
00080         out string address)
00081    raises (TToiInvalidArgumentException);
00082   
00096   //@ [Language=C++]
00097   
00098   
00099   void Copy(in IToiOperationManager::TToiOperationId operationId, 
00100         in string source, 
00101         in string target)
00102    raises (TToiInvalidArgumentException);
00103   
00117   //@ [Language=C++]
00118   
00119   
00120   void Move(in IToiOperationManager::TToiOperationId operationId, 
00121         in string source, 
00122         in string target)
00123    raises (TToiInvalidArgumentException);
00124   
00155   //@ [ReturnAddress(Type=IToiStorageFile)]
00156   //@ [IgnoredApplicationId(Position=1)]
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