operation management class More...
#include <OperationManager.h>
Classes | |
| struct | OperationInfo |
| operation information More... | |
Public Member Functions | |
| void | addOperation (Operation *operation) |
| add managed operation More... | |
| void | removeOperation (Operation *operation) |
| remove managed operation More... | |
| unsigned int | getNumberOfOperations () |
| gets the number of managed operation More... | |
| Operation * | getOperation (const unsigned int index) |
| gets the managed operation More... | |
| int | getNumberOfFinishedOperations () |
| gets the number of finished operations More... | |
| Operation * | getFinishedOperation (int i) |
| gets the finished operation. More... | |
| int | getNumberOfCanceledOperations () |
| gets the number of canceled operations More... | |
| Operation * | getCanceledOperation (int i) |
| gets the canceled operation More... | |
| const char * | getUpdateDataFilePath (Operation *operation) |
| the file path to save the update status More... | |
| const char * | getPreviousDataFilePath (Operation *operation) |
| gets the file path to save the previous status More... | |
| void | moveToFinished (Operation *operation) |
| moves the operation to the finished queue. More... | |
| void | movetoCanseled (Operation *operation) |
| move the operation to the canceled queue. More... | |
| void | clearCanceledOperation () |
| clears canceled operations | |
| void | setState (const unsigned int index, int state) |
| sets the operation stateus More... | |
| int | getState (const unsigned int index) |
| gets the operation status More... | |
| void | setSaveCount (int count) |
| set the save count More... | |
| int | getSaveCount () |
| get the save count More... | |
| void | setSaveCountFlg (const bool bSave) |
| set the save count flag More... | |
| bool | getSaveCountFlg () |
| get the save count flag More... | |
| void | setSaveCancelFlg (const bool bCancel) |
| set the save cancel flag More... | |
| bool | getSaveCancelFlg () |
| get the save cancel flag More... | |
Static Public Member Functions | |
| static OperationManager & | getInstance () |
| get operation manager object (This is the only object.) More... | |
Protected Types | |
| enum | OperationState { TYPE_NONE = 5, TYPE_FINISH = 0, TYPE_CANCEL = 1 } |
| the operation state type of array | |
Protected Member Functions | |
| OperationManager () | |
| constructor | |
| virtual | ~OperationManager () |
| destructor | |
Protected Attributes | |
| std::string | m_updateFilePath |
| std::string | m_prevFilePath |
| std::vector< OperationInfo > | m_operations |
| int | m_saveCount |
| bool | m_saveFlg |
| bool | m_cancelFlg |
operation management class
Definition at line 28 of file OperationManager.h.
| void kome::operation::OperationManager::addOperation | ( | Operation * | operation | ) |
add managed operation
| [in] | operation | Operation object |
Definition at line 45 of file OperationManager.cpp.
| Operation * kome::operation::OperationManager::getCanceledOperation | ( | int | i | ) |
gets the canceled operation
| [in] | i | canceled operation index |
Definition at line 129 of file OperationManager.cpp.
| Operation * kome::operation::OperationManager::getFinishedOperation | ( | int | i | ) |
gets the finished operation.
| [in] | i | finished operation index |
Definition at line 103 of file OperationManager.cpp.
|
static |
get operation manager object (This is the only object.)
Definition at line 289 of file OperationManager.cpp.
| int kome::operation::OperationManager::getNumberOfCanceledOperations | ( | ) |
gets the number of canceled operations
Definition at line 118 of file OperationManager.cpp.
| int kome::operation::OperationManager::getNumberOfFinishedOperations | ( | ) |
gets the number of finished operations
Definition at line 92 of file OperationManager.cpp.
| unsigned int kome::operation::OperationManager::getNumberOfOperations | ( | ) |
gets the number of managed operation
Definition at line 79 of file OperationManager.cpp.
| Operation * kome::operation::OperationManager::getOperation | ( | const unsigned int | index | ) |
gets the managed operation
| [in] | index | managed operation index |
Definition at line 84 of file OperationManager.cpp.
| const char * kome::operation::OperationManager::getPreviousDataFilePath | ( | Operation * | operation | ) |
gets the file path to save the previous status
| [in] | operation | operation |
Definition at line 170 of file OperationManager.cpp.

|
inline |
|
inline |
|
inline |
| int kome::operation::OperationManager::getState | ( | const unsigned int | index | ) |
gets the operation status
| [in] | index |
Definition at line 281 of file OperationManager.cpp.
| const char * kome::operation::OperationManager::getUpdateDataFilePath | ( | Operation * | operation | ) |
the file path to save the update status
| [in] | operation | operation |
Definition at line 144 of file OperationManager.cpp.

| void kome::operation::OperationManager::movetoCanseled | ( | Operation * | operation | ) |
move the operation to the canceled queue.
| [in] | operation | operation to be moved. |
Definition at line 220 of file OperationManager.cpp.
| void kome::operation::OperationManager::moveToFinished | ( | Operation * | operation | ) |
moves the operation to the finished queue.
| [in] | operation | operation to be moved |
Definition at line 197 of file OperationManager.cpp.
| void kome::operation::OperationManager::removeOperation | ( | Operation * | operation | ) |
remove managed operation
| [in] | operation | operation object |
Definition at line 64 of file OperationManager.cpp.
|
inline |
set the save cancel flag
| bCancel | cancel flag |
Definition at line 231 of file OperationManager.h.
|
inline |
|
inline |
| void kome::operation::OperationManager::setState | ( | const unsigned int | index, |
| int | state | ||
| ) |
sets the operation stateus
| [in] | index | |
| [in] | state | operation status |
Definition at line 272 of file OperationManager.cpp.
|
protected |
cancel flg
Definition at line 78 of file OperationManager.h.
|
protected |
operation infomation array
Definition at line 69 of file OperationManager.h.
|
protected |
previous file path
Definition at line 47 of file OperationManager.h.
|
protected |
save count
Definition at line 72 of file OperationManager.h.
|
protected |
save count flg
Definition at line 75 of file OperationManager.h.
|
protected |
update file path
Definition at line 44 of file OperationManager.h.
1.8.6