ToiStorageDevice.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiStorageDevice.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 TOISTORAGEDEVICE_IDL
00016 #define TOISTORAGEDEVICE_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 //@ [Struct(Interface=IToiStorageDevice,Name=TToiStorageInfo)]
00026 interface ToiStorageDeviceStorageInfo;
00027 //@ [Struct(Interface=IToiStorageDevice,Name=TToiPartitionInfo)]
00028 interface ToiStorageDevicePartitionInfo;
00029 
00035 interface ToiStorageDevice {
00036 
00038   typedef unsigned long TToiStorageDeviceId;
00039   
00041   typedef unsigned long TToiPartitionId;
00042   
00044   typedef sequence < TToiPartitionId > TToiPartitionIdSequence;
00045   
00048   //@ [Enum]
00049   typedef long TToiFileSystemStatus;
00052   
00058   //@ [Enumerator(Enum=TToiFileSystemStatus,Name=FS_STATUS_OK)]
00059   const TToiFileSystemStatus FS_STATUS_OK = 0;
00060   
00068   //@ [Enumerator(Enum=TToiFileSystemStatus,Name=FS_STATUS_ERRORS_CORRECTED)]
00069   const TToiFileSystemStatus FS_STATUS_ERRORS_CORRECTED = 1;
00070   
00079   //@ [Enumerator(Enum=TToiFileSystemStatus,Name=FS_STATUS_ERRORS_LEFT_UNCORRECTED)]
00080   const TToiFileSystemStatus FS_STATUS_ERRORS_LEFT_UNCORRECTED = 2;
00081   
00091   //@ [Enumerator(Enum=TToiFileSystemStatus,Name=FS_STATUS_MAJOR_FAILURE)]
00092   const TToiFileSystemStatus FS_STATUS_MAJOR_FAILURE = 3;
00093   
00095 
00097   typedef TToiFileSystemStatus TFileSystemStatus;
00098   
00105   //@ [OutParam(Name=info,Position=1,IsBinary=0, Bound=0)]
00106   ToiStorageDeviceStorageInfo getStorageInfo();
00107   
00122   //@ [OutParam(Name=info,Position=2,IsBinary=0, Bound=0)]
00123   ToiStorageDevicePartitionInfo getPartitionInfo(in TToiPartitionId partitionId)
00124    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00125   
00143   void mountPartition(in ToiOperationManager::TToiOperationId operationId, 
00144         in TToiPartitionId partitionId, 
00145         in string mountPoint)
00146    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00147   
00163   void unmountPartition(in ToiOperationManager::TToiOperationId operationId, 
00164         in TToiPartitionId partitionId)
00165    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException);
00166   
00183   void reformat(in ToiOperationManager::TToiOperationId operationId)
00184    raises (TToiInvalidArgumentException, TToiInvalidPreconditionException, TToiOperationNotSupportedException);
00185   
00199   void scheduleReformatOnNextReboot(in TToiPartitionId partitionId)
00200    raises (TToiOperationNotSupportedException, TToiInvalidArgumentException);
00201   
00215   void scheduleFileSystemRepairOnNextReboot(in TToiPartitionId partitionId)
00216    raises (TToiOperationNotSupportedException, TToiInvalidArgumentException);
00217   
00227   void spinDown()
00228    raises (TToiInvalidPreconditionException);
00229   
00238   void spinUp()
00239    raises (TToiInvalidPreconditionException);
00240   
00241 };
00242 
00243 #endif