LibreOffice Module framework (master) 1
|
#include <transactionmanager.hxx>
Public Member Functions | |
TransactionManager () | |
~TransactionManager () | |
TransactionManager (const TransactionManager &)=delete | |
TransactionManager & | operator= (const TransactionManager &)=delete |
void | setWorkingMode (EWorkingMode eMode) |
EWorkingMode | getWorkingMode () const |
void | registerTransaction (EExceptionMode eMode) |
void | unregisterTransaction () |
Private Attributes | |
std::mutex | m_aAccessLock |
Gate | m_aBarrier |
regulate access on internal member of this instance More... | |
EWorkingMode | m_eWorkingMode |
used to block transactions requests during change or work mode More... | |
sal_Int32 | m_nTransactionCount |
current working mode of object which use this manager (used to reject calls at wrong time) More... | |
Definition at line 92 of file transactionmanager.hxx.
framework::TransactionManager::TransactionManager | ( | ) |
Definition at line 33 of file transactionmanager.cxx.
References m_aBarrier, and framework::Gate::open().
framework::TransactionManager::~TransactionManager | ( | ) |
Definition at line 43 of file transactionmanager.cxx.
|
delete |
EWorkingMode framework::TransactionManager::getWorkingMode | ( | ) | const |
Definition at line 137 of file transactionmanager.cxx.
References m_aAccessLock, and m_eWorkingMode.
Referenced by framework::Desktop::~Desktop().
|
delete |
void framework::TransactionManager::registerTransaction | ( | EExceptionMode | eMode | ) |
css::uno::RuntimeException | |
css::lang::DisposedException |
Definition at line 155 of file transactionmanager.cxx.
References framework::Gate::close(), framework::E_BEFORECLOSE, framework::E_CLOSE, framework::E_HARDEXCEPTIONS, framework::E_INIT, framework::E_WORK, eMode, m_aAccessLock, m_aBarrier, m_eWorkingMode, m_nTransactionCount, and SAL_WARN.
Referenced by framework::TransactionGuard::TransactionGuard().
void framework::TransactionManager::setWorkingMode | ( | EWorkingMode | eMode | ) |
Definition at line 69 of file transactionmanager.cxx.
References framework::E_BEFORECLOSE, framework::E_CLOSE, framework::E_INIT, framework::E_WORK, eMode, m_aAccessLock, m_aBarrier, m_eWorkingMode, and framework::Gate::wait().
Referenced by framework::Desktop::constructorInit(), and framework::Desktop::disposing().
void framework::TransactionManager::unregisterTransaction | ( | ) |
css::uno::RuntimeException | |
css::lang::DisposedException |
Definition at line 200 of file transactionmanager.cxx.
References m_aAccessLock, m_aBarrier, m_nTransactionCount, and framework::Gate::open().
Referenced by framework::TransactionGuard::~TransactionGuard().
|
mutableprivate |
Definition at line 114 of file transactionmanager.hxx.
Referenced by getWorkingMode(), registerTransaction(), setWorkingMode(), and unregisterTransaction().
|
private |
regulate access on internal member of this instance
Definition at line 115 of file transactionmanager.hxx.
Referenced by registerTransaction(), setWorkingMode(), TransactionManager(), and unregisterTransaction().
|
private |
used to block transactions requests during change or work mode
Definition at line 116 of file transactionmanager.hxx.
Referenced by getWorkingMode(), registerTransaction(), and setWorkingMode().
|
private |
current working mode of object which use this manager (used to reject calls at wrong time)
Definition at line 117 of file transactionmanager.hxx.
Referenced by registerTransaction(), and unregisterTransaction().