ToiOperationManager.idl

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
00002  *--------------------------------------------------------------------
00003  *
00004  * ToiOperationManager.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 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 //@ [Struct(Interface=IToiOperationManager,Name=TToiProperty)]
00025 interface ToiOperationManagerProperty;
00026 //@ [Struct(Interface=IToiOperationManager,Name=TToiOperationInfo)]
00027 interface ToiOperationManagerOperationInfo;
00028 
00041 //@ [EventTarget(EventObserver=IToiOperationObserver)]
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   //@ [Enum]
00102   typedef long TToiOperationState;
00105   
00111   //@ [Enumerator(Enum=TToiOperationState,Name=OPERATION_PENDING)]
00112   const TToiOperationState OPERATION_PENDING = 0;
00113   
00119   //@ [Enumerator(Enum=TToiOperationState,Name=OPERATION_COMPLETED)]
00120   const TToiOperationState OPERATION_COMPLETED = 1;
00121   
00127   //@ [Enumerator(Enum=TToiOperationState,Name=OPERATION_FAILED)]
00128   const TToiOperationState OPERATION_FAILED = 2;
00129   
00131 
00133   
00139   const TToiOperationResult OP_RESULT_NONE = 0;
00140   
00142   
00159   //@ [IgnoredApplicationId(Position=1)]
00160   
00161   
00162   //@ [OutParam(Name=operationId,Position=3,IsBinary=0, Bound=0)]
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   //@ [OutParam(Name=operationInfo,Position=2,IsBinary=0, Bound=0)]
00218   ToiOperationManagerOperationInfo getOperationInfo(in TToiOperationId operationId)
00219    raises (TToiInvalidArgumentException);
00220   
00221 };
00222 
00223 #endif