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 ()
 
 SerfLockStore ()
 
 ~SerfLockStore ()
 
bool finishing () const
 
OUString const * getLockTokenForURI (OUString const &rURI, css::ucb::Lock const *pLock)
 
void addLock (const OUString &rURI, css::ucb::Lock const &rLock, const OUString &sToken, rtl::Reference< CurlSession > const &xSession, sal_Int32 nLastChanceToSendRefreshRequest)
 
void updateLock (const OUString &rURI, sal_Int32 nLastChanceToSendRefreshRequest)
 
void removeLock (const OUString &rURI)
 
void refreshLocks ()
 

Private Member Functions

void startTicker ()
 
void stopTicker ()
 
void startTicker ()
 
void stopTicker (osl::ClearableMutexGuard &rGuard)
 

Private Attributes

osl::Mutex m_aMutex
 
TickerThreadm_pTickerThread
 
bool m_bFinishing
 
LockInfoMap m_aLockInfoMap
 
rtl::Reference< TickerThreadm_pTickerThread
 

Detailed Description

Definition at line 53 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().

http_dav_ucp::SerfLockStore::SerfLockStore ( )
http_dav_ucp::SerfLockStore::~SerfLockStore ( )

Member Function Documentation

void SerfLockStore::addLock ( const OUString &  rLock,
const OUString &  sToken,
rtl::Reference< SerfSession > const &  xSession,
sal_Int32  nLastChanceToSendRefreshRequest 
)
void http_dav_ucp::SerfLockStore::addLock ( const OUString &  rURI,
css::ucb::Lock const &  rLock,
const OUString &  sToken,
rtl::Reference< CurlSession > const &  xSession,
sal_Int32  nLastChanceToSendRefreshRequest 
)
bool SerfLockStore::finishing ( ) const

Definition at line 101 of file SerfLockStore.cxx.

References m_bFinishing.

bool http_dav_ucp::SerfLockStore::finishing ( ) const
OUString SerfLockStore::getLockToken ( const OUString &  rLock)

Definition at line 131 of file SerfLockStore.cxx.

References m_aLockInfoMap, m_aMutex, and SAL_WARN.

OUString const * SerfLockStore::getLockTokenForURI ( OUString const &  rURI,
css::ucb::Lock const *  pLock 
)

Definition at line 145 of file curl/SerfLockStore.cxx.

References m_aMutex.

void SerfLockStore::refreshLocks ( )
void http_dav_ucp::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 http_dav_ucp::SerfLockStore::removeLock ( const OUString &  rURI)
void SerfLockStore::startTicker ( )
private

Definition at line 106 of file SerfLockStore.cxx.

References m_aMutex, and m_pTickerThread.

Referenced by addLock().

void http_dav_ucp::SerfLockStore::startTicker ( )
private
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::stopTicker ( osl::ClearableMutexGuard &  rGuard)
private
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.

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

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 57 of file SerfLockStore.hxx.

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

TickerThread* http_dav_ucp::SerfLockStore::m_pTickerThread
private

Definition at line 56 of file SerfLockStore.hxx.

Referenced by startTicker(), and stopTicker().

rtl::Reference< TickerThread > http_dav_ucp::SerfLockStore::m_pTickerThread
private

Definition at line 62 of file curl/SerfLockStore.hxx.


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