ToiOperationManager.idl
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef TOIOPERATIONMANAGER_IDL
00016 #define TOIOPERATIONMANAGER_IDL
00017
00018 #include "TToiInvalidArgumentException.idl"
00019 #include "TToiNotEnoughResourcesException.idl"
00020 #include "TToiUnhandledValueException.idl"
00021 #include "ToiApplicationService.idl"
00022 #include "ToiEventTarget.idl"
00023
00024
00025 interface ToiOperationManagerProperty;
00026
00027 interface ToiOperationManagerOperationInfo;
00028
00041
00042
00043 interface ToiOperationManager : ToiEventTarget {
00044
00047
00051 const long ON_OPERATION_RESULT = 2000;
00052
00054
00056 typedef long TToiOperationId;
00057
00059 typedef long TToiOperationResult;
00060
00062 typedef long TToiOperationError;
00063
00069
00074 const TToiOperationError OP_ERROR_FAILED = -1;
00075
00080 const TToiOperationError OP_ERROR_CANCELLED = -2;
00081
00083
00088 typedef long TToiPropertyId;
00089
00094 typedef string TToiPropertyValue;
00095
00097 typedef sequence < ToiOperationManagerProperty > TToiPropertySequence;
00098
00101
00102 typedef long TToiOperationState;
00105
00111
00112 const TToiOperationState OPERATION_PENDING = 0;
00113
00119
00120 const TToiOperationState OPERATION_COMPLETED = 1;
00121
00127
00128 const TToiOperationState OPERATION_FAILED = 2;
00129
00131
00133
00139 const TToiOperationResult OP_RESULT_NONE = 0;
00140
00142
00159
00160
00161
00162
00163 TToiOperationId createOperation(in string userData)
00164 raises (TToiNotEnoughResourcesException);
00165
00177 void cancelOperation(in TToiOperationId operationId)
00178 raises (TToiInvalidArgumentException);
00179
00193 void releaseOperation(in TToiOperationId operationId)
00194 raises (TToiInvalidArgumentException);
00195
00217
00218 ToiOperationManagerOperationInfo getOperationInfo(in TToiOperationId operationId)
00219 raises (TToiInvalidArgumentException);
00220
00221 };
00222
00223 #endif