17 #include <pia/common/common_RootObject.h> 19 #define USE_CANCEL_REQUEST 1 // n1769 108 void SignalSuccess(nn::Result result);
116 void SignalFailure(nn::Result result);
120 #if USE_CANCEL_REQUEST 137 #if USE_CANCEL_REQUEST 172 void Complete(nn::Result result);
183 return m_State == CallInProgress;
194 return m_State == CallSuccess ||
195 m_State == CallFailure ||
196 m_State == CallCancelled;
207 void SetState(State state);
217 State GetState()
const 230 void SetResult(nn::Result result);
245 #if USE_CANCEL_REQUEST 250 bool IsCancelRequested()
const 252 return m_bCancelRequested;
264 #if USE_CANCEL_REQUEST 265 bool m_bCancelRequested;
bool IsInProgress() const
Determines whether an asynchronous process is in progress.
Definition: common_CallContext.h:181
~CallContext(void)
Destroys the object.
CallContext(void)
Instantiates the object (constructor).
bool IsCompleted() const
Determines whether an asynchronous process has completed.
Definition: common_CallContext.h:192
Represents the calling context.
Definition: common_CallContext.h:43
void RegisterCompletionCallback(CompletionCallback pCallback, void *pUserArg=NULL)
Sets the callback function executed when asynchronous processing completes.
void Cancel(void)
Requests the cancellation of asynchronous processing.
void(* CompletionCallback)(nn::Result result, void *pUserArg)
This typedef defines the callback function that is executed when the asynchronous operation finishes...
Definition: common_CallContext.h:55
nn::Result GetResult() const
Gets the nn::Result value representing the execution result of the asynchronous process.
Definition: common_CallContext.h:239
This is the common base class used inside the Pia library.
Definition: common_RootObject.h:40