LibreOffice Module ucb (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
http_dav_ucp::SerfLockStore Class Reference

#include <SerfLockStore.hxx>

Collaboration diagram for http_dav_ucp::SerfLockStore:
[legend]

Public Member Functions

 SerfLockStore ()
 
 ~SerfLockStore ()
 
bool finishing () const
 
OUString getLockToken (const OUString &rLock)
 
void addLock (const OUString &rLock, const OUString &sToken, rtl::Reference< SerfSession > const &xSession, sal_Int32 nLastChanceToSendRefreshRequest)
 
void updateLock (const OUString &rLock, sal_Int32 nLastChanceToSendRefreshRequest)
 
void removeLock (const OUString &rLock)
 
void refreshLocks ()
 

Private Member Functions

void startTicker ()
 
void stopTicker ()
 

Private Attributes

osl::Mutex m_aMutex
 
TickerThreadm_pTickerThread
 
bool m_bFinishing
 
LockInfoMap m_aLockInfoMap
 

Detailed Description

Definition at line 54 of file SerfLockStore.hxx.

Constructor & Destructor Documentation

SerfLockStore::SerfLockStore ( )

Definition at line 79 of file SerfLockStore.cxx.

SerfLockStore::~SerfLockStore ( )

Definition at line 86 of file SerfLockStore.cxx.

References m_aLockInfoMap, m_bFinishing, SAL_WARN_IF, and stopTicker().

Member Function Documentation

void SerfLockStore::addLock ( const OUString &  rLock,
const OUString &  sToken,
rtl::Reference< SerfSession > const &  xSession,
sal_Int32  nLastChanceToSendRefreshRequest 
)
bool SerfLockStore::finishing ( ) const

Definition at line 101 of file SerfLockStore.cxx.

References m_bFinishing.

OUString SerfLockStore::getLockToken ( const OUString &  rLock)

Definition at line 131 of file SerfLockStore.cxx.

References m_aLockInfoMap, m_aMutex, and SAL_WARN.

void SerfLockStore::refreshLocks ( )
void SerfLockStore::removeLock ( const OUString &  rLock)

Definition at line 174 of file SerfLockStore.cxx.

References m_aLockInfoMap, m_aMutex, and stopTicker().

Referenced by http_dav_ucp::SerfSession::UNLOCK().

void SerfLockStore::startTicker ( )
private

Definition at line 106 of file SerfLockStore.cxx.

References m_aMutex, and m_pTickerThread.

Referenced by addLock().

void SerfLockStore::stopTicker ( )
private

Definition at line 118 of file SerfLockStore.cxx.

References http_dav_ucp::TickerThread::finish(), m_aMutex, and m_pTickerThread.

Referenced by removeLock(), and ~SerfLockStore().

void SerfLockStore::updateLock ( const OUString &  rLock,
sal_Int32  nLastChanceToSendRefreshRequest 
)

Definition at line 157 of file SerfLockStore.cxx.

References m_aLockInfoMap, m_aMutex, and SAL_WARN_IF.

Member Data Documentation

LockInfoMap http_dav_ucp::SerfLockStore::m_aLockInfoMap
private
osl::Mutex http_dav_ucp::SerfLockStore::m_aMutex
private
bool http_dav_ucp::SerfLockStore::m_bFinishing
private

Definition at line 58 of file SerfLockStore.hxx.

Referenced by finishing(), and ~SerfLockStore().

TickerThread* http_dav_ucp::SerfLockStore::m_pTickerThread
private

Definition at line 57 of file SerfLockStore.hxx.

Referenced by startTicker(), and stopTicker().


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