LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
FinalThreadManager Class Reference

#include <finalthreadmanager.hxx>

Inheritance diagram for FinalThreadManager:
[legend]
Collaboration diagram for FinalThreadManager:
[legend]

Public Member Functions

 FinalThreadManager (css::uno::Reference< css::uno::XComponentContext > const &context)
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL registerJob (const css::uno::Reference< css::util::XCancellable > &Job) override
 
virtual void SAL_CALL releaseJob (const css::uno::Reference< css::util::XCancellable > &Job) override
 
virtual void SAL_CALL cancelAllJobs () override
 
virtual void SAL_CALL cancelTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL queryTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL notifyTermination (const css::lang::EventObject &Event) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 

Private Member Functions

 FinalThreadManager (FinalThreadManager const &)=delete
 
void operator= (FinalThreadManager const &)=delete
 
virtual ~FinalThreadManager () override
 
void registerAsListenerAtDesktop ()
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
osl::Mutex maMutex
 
std::list< css::uno::Reference< css::util::XCancellable > > maThreads
 
std::unique_ptr< CancelJobsThreadmpCancelJobsThread
 
TerminateOfficeThreadmpTerminateOfficeThread
 
std::unique_ptr< SwPauseThreadStarting, o3tl::default_delete< SwPauseThreadStarting > > mpPauseThreadStarting
 
bool mbRegisteredAtDesktop
 

Detailed Description

Definition at line 39 of file finalthreadmanager.hxx.

Constructor & Destructor Documentation

FinalThreadManager::FinalThreadManager ( css::uno::Reference< css::uno::XComponentContext > const &  context)
explicit

Definition at line 228 of file finalthreadmanager.cxx.

References m_xContext, and maMutex.

FinalThreadManager::FinalThreadManager ( FinalThreadManager const &  )
privatedelete
FinalThreadManager::~FinalThreadManager ( )
overrideprivatevirtual

Member Function Documentation

void SAL_CALL FinalThreadManager::cancelAllJobs ( )
overridevirtual
void SAL_CALL FinalThreadManager::cancelTermination ( const css::lang::EventObject &  Event)
overridevirtual

Definition at line 384 of file finalthreadmanager.cxx.

References mpPauseThreadStarting.

void SAL_CALL FinalThreadManager::disposing ( const css::lang::EventObject &  Source)
overridevirtual

Definition at line 418 of file finalthreadmanager.cxx.

OUString SAL_CALL FinalThreadManager::getImplementationName ( )
overridevirtual

Definition at line 275 of file finalthreadmanager.cxx.

css::uno::Sequence< OUString > SAL_CALL FinalThreadManager::getSupportedServiceNames ( )
overridevirtual

Definition at line 285 of file finalthreadmanager.cxx.

void SAL_CALL FinalThreadManager::notifyTermination ( const css::lang::EventObject &  Event)
overridevirtual
void FinalThreadManager::operator= ( FinalThreadManager const &  )
privatedelete
void SAL_CALL FinalThreadManager::queryTermination ( const css::lang::EventObject &  Event)
overridevirtual
void FinalThreadManager::registerAsListenerAtDesktop ( )
private

Definition at line 238 of file finalthreadmanager.cxx.

References m_xContext.

Referenced by registerJob().

void SAL_CALL FinalThreadManager::registerJob ( const css::uno::Reference< css::util::XCancellable > &  Job)
overridevirtual
void SAL_CALL FinalThreadManager::releaseJob ( const css::uno::Reference< css::util::XCancellable > &  Job)
overridevirtual

Definition at line 305 of file finalthreadmanager.cxx.

References maMutex, and maThreads.

sal_Bool SAL_CALL FinalThreadManager::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 280 of file finalthreadmanager.cxx.

References cppu::supportsService().

Member Data Documentation

css::uno::Reference< css::uno::XComponentContext > FinalThreadManager::m_xContext
private

Definition at line 74 of file finalthreadmanager.hxx.

Referenced by queryTermination(), and registerAsListenerAtDesktop().

osl::Mutex FinalThreadManager::maMutex
private

Definition at line 76 of file finalthreadmanager.hxx.

Referenced by cancelAllJobs(), queryTermination(), registerJob(), and releaseJob().

std::list< css::uno::Reference< css::util::XCancellable > > FinalThreadManager::maThreads
private
bool FinalThreadManager::mbRegisteredAtDesktop
private

Definition at line 83 of file finalthreadmanager.hxx.

Referenced by registerJob().

std::unique_ptr<CancelJobsThread> FinalThreadManager::mpCancelJobsThread
private
std::unique_ptr<SwPauseThreadStarting, o3tl::default_delete<SwPauseThreadStarting> > FinalThreadManager::mpPauseThreadStarting
private

Definition at line 81 of file finalthreadmanager.hxx.

Referenced by cancelTermination(), queryTermination(), and ~FinalThreadManager().

TerminateOfficeThread* FinalThreadManager::mpTerminateOfficeThread
private

Definition at line 80 of file finalthreadmanager.hxx.

Referenced by notifyTermination(), queryTermination(), and ~FinalThreadManager().


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