LibreOffice Module framework (master) 1
Public Member Functions | Private Attributes | List of all members
framework::TransactionManager Class Reference

#include <transactionmanager.hxx>

Collaboration diagram for framework::TransactionManager:
[legend]

Public Member Functions

 TransactionManager ()
 
 ~TransactionManager ()
 
 TransactionManager (const TransactionManager &)=delete
 
TransactionManageroperator= (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...
 

Detailed Description

Definition at line 92 of file transactionmanager.hxx.

Constructor & Destructor Documentation

◆ TransactionManager() [1/2]

framework::TransactionManager::TransactionManager ( )

Definition at line 33 of file transactionmanager.cxx.

References m_aBarrier, and framework::Gate::open().

◆ ~TransactionManager()

framework::TransactionManager::~TransactionManager ( )

Definition at line 43 of file transactionmanager.cxx.

◆ TransactionManager() [2/2]

framework::TransactionManager::TransactionManager ( const TransactionManager )
delete

Member Function Documentation

◆ getWorkingMode()

EWorkingMode framework::TransactionManager::getWorkingMode ( ) const

Definition at line 137 of file transactionmanager.cxx.

References m_aAccessLock, and m_eWorkingMode.

Referenced by framework::Desktop::~Desktop().

◆ operator=()

TransactionManager & framework::TransactionManager::operator= ( const TransactionManager )
delete

◆ registerTransaction()

void framework::TransactionManager::registerTransaction ( EExceptionMode  eMode)

◆ setWorkingMode()

void framework::TransactionManager::setWorkingMode ( EWorkingMode  eMode)

◆ unregisterTransaction()

void framework::TransactionManager::unregisterTransaction ( )
Exceptions
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().

Member Data Documentation

◆ m_aAccessLock

std::mutex framework::TransactionManager::m_aAccessLock
mutableprivate

◆ m_aBarrier

Gate framework::TransactionManager::m_aBarrier
private

regulate access on internal member of this instance

Definition at line 115 of file transactionmanager.hxx.

Referenced by registerTransaction(), setWorkingMode(), TransactionManager(), and unregisterTransaction().

◆ m_eWorkingMode

EWorkingMode framework::TransactionManager::m_eWorkingMode
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().

◆ m_nTransactionCount

sal_Int32 framework::TransactionManager::m_nTransactionCount
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().


The documentation for this class was generated from the following files: