#include <InterruptableAsyncWorker.h>
Public Member Functions | |
| InterruptableAsyncWorker (boost::function< T()> async_func) | |
| T | run () |
| bool | cancelled () |
| void | progress (uint32_t _progress) |
| void | forceFinished () |
Private Member Functions | |
| void | invoke_cb (T result) |
| void | _updateDialog () |
Private Attributes | |
| boost::function< T()> | m_async_func |
| boost::shared_ptr< AsyncWorker < T > > | m_worker_ptr |
| AP_Dialog_GenericProgress * | m_pProgressDlg |
| uint32_t | m_progress |
| bool | m_cancelled |
| bool | m_finished |
| boost::shared_ptr< Synchronizer > | m_progressSynchronizerPtr |
| T | m_result |
| InterruptableAsyncWorker< T >::InterruptableAsyncWorker | ( | boost::function< T()> | async_func | ) | [inline] |
| void InterruptableAsyncWorker< T >::_updateDialog | ( | ) | [inline, private] |
| bool InterruptableAsyncWorker< T >::cancelled | ( | ) | [inline] |
References InterruptableAsyncWorker< T >::m_cancelled.
| void InterruptableAsyncWorker< T >::forceFinished | ( | ) | [inline] |
| void InterruptableAsyncWorker< T >::invoke_cb | ( | T | result | ) | [inline, private] |
| void InterruptableAsyncWorker< T >::progress | ( | uint32_t | _progress | ) | [inline] |
| T InterruptableAsyncWorker< T >::run | ( | ) | [inline] |
References AP_Dialog_GenericProgress::getAnswer(), XAP_App::getApp(), XAP_App::getDialogFactory(), ServiceAccountHandler::getDialogGenericProgressId(), XAP_App::getLastFocussedFrame(), InterruptableAsyncWorker< T >::m_async_func, InterruptableAsyncWorker< T >::m_cancelled, InterruptableAsyncWorker< T >::m_pProgressDlg, InterruptableAsyncWorker< T >::m_progressSynchronizerPtr, InterruptableAsyncWorker< T >::m_result, InterruptableAsyncWorker< T >::m_worker_ptr, XAP_DialogFactory::releaseDialog(), XAP_DialogFactory::requestDialog(), AP_Dialog_GenericProgress::runModal(), AP_Dialog_GenericProgress::setInformation(), AP_Dialog_GenericProgress::setTitle(), and UT_DEBUGMSG.
boost::function<T ()> InterruptableAsyncWorker< T >::m_async_func [private] |
Referenced by InterruptableAsyncWorker< T >::run().
bool InterruptableAsyncWorker< T >::m_cancelled [private] |
Referenced by InterruptableAsyncWorker< T >::cancelled(), and InterruptableAsyncWorker< T >::run().
bool InterruptableAsyncWorker< T >::m_finished [private] |
AP_Dialog_GenericProgress* InterruptableAsyncWorker< T >::m_pProgressDlg [private] |
Referenced by InterruptableAsyncWorker< T >::_updateDialog(), and InterruptableAsyncWorker< T >::run().
uint32_t InterruptableAsyncWorker< T >::m_progress [private] |
boost::shared_ptr<Synchronizer> InterruptableAsyncWorker< T >::m_progressSynchronizerPtr [private] |
T InterruptableAsyncWorker< T >::m_result [private] |
Referenced by InterruptableAsyncWorker< T >::invoke_cb(), and InterruptableAsyncWorker< T >::run().
boost::shared_ptr< AsyncWorker<T> > InterruptableAsyncWorker< T >::m_worker_ptr [private] |
Referenced by InterruptableAsyncWorker< T >::run().
1.7.1