LibreOffice Module vcl (master)  1
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
VCLSession Class Reference
Inheritance diagram for VCLSession:
[legend]
Collaboration diagram for VCLSession:
[legend]

Classes

struct  Listener
 

Public Member Functions

 VCLSession ()
 

Private Member Functions

virtual ~VCLSession () override
 
virtual void SAL_CALL addSessionManagerListener (const css::uno::Reference< XSessionManagerListener > &xListener) override
 
virtual void SAL_CALL removeSessionManagerListener (const css::uno::Reference< XSessionManagerListener > &xListener) override
 
virtual void SAL_CALL queryInteraction (const css::uno::Reference< XSessionManagerListener > &xListener) override
 
virtual void SAL_CALL interactionDone (const css::uno::Reference< XSessionManagerListener > &xListener) override
 
virtual void SAL_CALL saveDone (const css::uno::Reference< XSessionManagerListener > &xListener) override
 
virtual sal_Bool SAL_CALL cancelShutdown () override
 
void SAL_CALL disposing () override
 
void callSaveRequested (bool bShutdown)
 
void callShutdownCancelled ()
 
void callInteractionGranted (bool bGranted)
 
void callQuit ()
 

Static Private Member Functions

static void SalSessionEventProc (void *pData, SalSessionEvent *pEvent)
 

Private Attributes

std::vector< Listenerm_aListeners
 
std::unique_ptr< SalSessionm_xSession
 
bool m_bInteractionRequested
 
bool m_bInteractionGranted
 
bool m_bInteractionDone
 
bool m_bSaveDone
 
- Private Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 49 of file session.cxx.

Constructor & Destructor Documentation

virtual VCLSession::~VCLSession ( )
inlineoverrideprivatevirtual

Definition at line 77 of file session.cxx.

VCLSession::VCLSession ( )

Definition at line 97 of file session.cxx.

References m_aMutex, m_xSession, SAL_INFO, and SalSessionEventProc().

Member Function Documentation

void SAL_CALL VCLSession::addSessionManagerListener ( const css::uno::Reference< XSessionManagerListener > &  xListener)
overrideprivatevirtual

Definition at line 254 of file session.cxx.

References m_aListeners, cppu::BaseMutex::m_aMutex, and SAL_INFO.

void VCLSession::callInteractionGranted ( bool  bGranted)
private
void VCLSession::callQuit ( )
private
void VCLSession::callSaveRequested ( bool  bShutdown)
private
void VCLSession::callShutdownCancelled ( )
private
sal_Bool SAL_CALL VCLSession::cancelShutdown ( )
overrideprivatevirtual

Definition at line 360 of file session.cxx.

References m_xSession, and SAL_INFO.

void VCLSession::disposing ( )
overrideprivate

Definition at line 367 of file session.cxx.

References m_aListeners, cppu::BaseMutex::m_aMutex, SAL_INFO, and TOOLS_WARN_EXCEPTION.

void SAL_CALL VCLSession::interactionDone ( const css::uno::Reference< XSessionManagerListener > &  xListener)
overrideprivatevirtual
void SAL_CALL VCLSession::queryInteraction ( const css::uno::Reference< XSessionManagerListener > &  xListener)
overrideprivatevirtual
void SAL_CALL VCLSession::removeSessionManagerListener ( const css::uno::Reference< XSessionManagerListener > &  xListener)
overrideprivatevirtual

Definition at line 264 of file session.cxx.

References m_aListeners, cppu::BaseMutex::m_aMutex, and SAL_INFO.

void VCLSession::SalSessionEventProc ( void pData,
SalSessionEvent pEvent 
)
staticprivate
void SAL_CALL VCLSession::saveDone ( const css::uno::Reference< XSessionManagerListener > &  xListener)
overrideprivatevirtual

Definition at line 335 of file session.cxx.

References m_aListeners, cppu::BaseMutex::m_aMutex, m_bSaveDone, m_xSession, and SAL_INFO.

Member Data Documentation

std::vector< Listener > VCLSession::m_aListeners
private
bool VCLSession::m_bInteractionDone
private
bool VCLSession::m_bInteractionGranted
private
bool VCLSession::m_bInteractionRequested
private

Definition at line 70 of file session.cxx.

Referenced by callQuit(), callSaveRequested(), callShutdownCancelled(), and queryInteraction().

bool VCLSession::m_bSaveDone
private

Definition at line 73 of file session.cxx.

Referenced by callSaveRequested(), and saveDone().

std::unique_ptr< SalSession > VCLSession::m_xSession
private

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