LibreOffice Module desktop (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
dp_gui::ExtensionCmdQueue::Thread Class Reference
Inheritance diagram for dp_gui::ExtensionCmdQueue::Thread:
[legend]
Collaboration diagram for dp_gui::ExtensionCmdQueue::Thread:
[legend]

Public Member Functions

 Thread (DialogHelper *pDialogHelper, TheExtensionManager *pManager, uno::Reference< uno::XComponentContext > xContext)
 
void addExtension (const OUString &rExtensionURL, const OUString &rRepository, const bool bWarnUser)
 
void removeExtension (const uno::Reference< deployment::XPackage > &rPackage)
 
void enableExtension (const uno::Reference< deployment::XPackage > &rPackage, const bool bEnable)
 
void checkForUpdates (std::vector< uno::Reference< deployment::XPackage > > &&vExtensionList)
 
void acceptLicense (const uno::Reference< deployment::XPackage > &rPackage)
 
void stop ()
 
bool isBusy ()
 
- Public Member Functions inherited from salhelper::Thread
 Thread (char const *name)
 
void launch ()
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Types

enum  Input {
  NONE ,
  START ,
  STOP
}
 

Private Member Functions

virtual ~Thread () override
 
virtual void execute () override
 
void _insert (const TExtensionCmd &rExtCmd)
 
void _addExtension (::rtl::Reference< ProgressCmdEnv > const &rCmdEnv, const OUString &rPackageURL, const OUString &rRepository, const bool bWarnUser)
 
void _removeExtension (::rtl::Reference< ProgressCmdEnv > const &rCmdEnv, const uno::Reference< deployment::XPackage > &xPackage)
 
void _enableExtension (::rtl::Reference< ProgressCmdEnv > const &rCmdEnv, const uno::Reference< deployment::XPackage > &xPackage)
 
void _disableExtension (::rtl::Reference< ProgressCmdEnv > const &rCmdEnv, const uno::Reference< deployment::XPackage > &xPackage)
 
void _checkForUpdates (std::vector< uno::Reference< deployment::XPackage > > &&vExtensionList)
 
void _acceptLicense (::rtl::Reference< ProgressCmdEnv > const &rCmdEnv, const uno::Reference< deployment::XPackage > &xPackage)
 

Private Attributes

uno::Reference< uno::XComponentContext > m_xContext
 
std::queue< TExtensionCmdm_queue
 
DialogHelperm_pDialogHelper
 
TheExtensionManagerm_pManager
 
const OUString m_sEnablingPackages
 
const OUString m_sDisablingPackages
 
const OUString m_sAddingPackages
 
const OUString m_sRemovingPackages
 
const OUString m_sDefaultCmd
 
const OUString m_sAcceptLicense
 
std::condition_variable m_wakeup
 
std::mutex m_mutex
 
Input m_eInput
 
bool m_bStopped
 
bool m_bWorking
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::Thread
static void * operator new (std::size_t size)
 
static void operator delete (void *pointer)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static void * operator new (std::size_t nSize)
 
static void * operator new (std::size_t nSize, std::nothrow_t const &rNothrow)
 
static void operator delete (void *pPtr)
 
static void operator delete (void *pPtr, std::nothrow_t const &rNothrow)
 
virtual ~Thread () SAL_OVERRIDE
 
virtual void execute ()=0
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

Definition at line 199 of file dp_gui_extensioncmdqueue.cxx.

Member Enumeration Documentation

◆ Input

Enumerator
NONE 
START 
STOP 

Definition at line 238 of file dp_gui_extensioncmdqueue.cxx.

Constructor & Destructor Documentation

◆ Thread()

dp_gui::ExtensionCmdQueue::Thread::Thread ( DialogHelper pDialogHelper,
TheExtensionManager pManager,
uno::Reference< uno::XComponentContext >  xContext 
)

Definition at line 582 of file dp_gui_extensioncmdqueue.cxx.

References m_pManager, and NONE.

◆ ~Thread()

dp_gui::ExtensionCmdQueue::Thread::~Thread ( )
overrideprivatevirtual

Reimplemented from salhelper::Thread.

Definition at line 673 of file dp_gui_extensioncmdqueue.cxx.

Member Function Documentation

◆ _acceptLicense()

void dp_gui::ExtensionCmdQueue::Thread::_acceptLicense ( ::rtl::Reference< ProgressCmdEnv > const &  rCmdEnv,
const uno::Reference< deployment::XPackage > &  xPackage 
)
private

Definition at line 1018 of file dp_gui_extensioncmdqueue.cxx.

References m_pDialogHelper, and m_pManager.

◆ _addExtension()

void dp_gui::ExtensionCmdQueue::Thread::_addExtension ( ::rtl::Reference< ProgressCmdEnv > const &  rCmdEnv,
const OUString &  rPackageURL,
const OUString &  rRepository,
const bool  bWarnUser 
)
private

◆ _checkForUpdates()

void dp_gui::ExtensionCmdQueue::Thread::_checkForUpdates ( std::vector< uno::Reference< deployment::XPackage > > &&  vExtensionList)
private

◆ _disableExtension()

void dp_gui::ExtensionCmdQueue::Thread::_disableExtension ( ::rtl::Reference< ProgressCmdEnv > const &  rCmdEnv,
const uno::Reference< deployment::XPackage > &  xPackage 
)
private

Definition at line 994 of file dp_gui_extensioncmdqueue.cxx.

References m_pDialogHelper, and m_pManager.

◆ _enableExtension()

void dp_gui::ExtensionCmdQueue::Thread::_enableExtension ( ::rtl::Reference< ProgressCmdEnv > const &  rCmdEnv,
const uno::Reference< deployment::XPackage > &  xPackage 
)
private

Definition at line 970 of file dp_gui_extensioncmdqueue.cxx.

References m_pDialogHelper, and m_pManager.

◆ _insert()

void dp_gui::ExtensionCmdQueue::Thread::_insert ( const TExtensionCmd rExtCmd)
private

Definition at line 1041 of file dp_gui_extensioncmdqueue.cxx.

References m_mutex, and START.

◆ _removeExtension()

void dp_gui::ExtensionCmdQueue::Thread::_removeExtension ( ::rtl::Reference< ProgressCmdEnv > const &  rCmdEnv,
const uno::Reference< deployment::XPackage > &  xPackage 
)
private

◆ acceptLicense()

void dp_gui::ExtensionCmdQueue::Thread::acceptLicense ( const uno::Reference< deployment::XPackage > &  rPackage)

Definition at line 625 of file dp_gui_extensioncmdqueue.cxx.

◆ addExtension()

void dp_gui::ExtensionCmdQueue::Thread::addExtension ( const OUString &  rExtensionURL,
const OUString &  rRepository,
const bool  bWarnUser 
)

Definition at line 603 of file dp_gui_extensioncmdqueue.cxx.

◆ checkForUpdates()

void dp_gui::ExtensionCmdQueue::Thread::checkForUpdates ( std::vector< uno::Reference< deployment::XPackage > > &&  vExtensionList)

Definition at line 648 of file dp_gui_extensioncmdqueue.cxx.

◆ enableExtension()

void dp_gui::ExtensionCmdQueue::Thread::enableExtension ( const uno::Reference< deployment::XPackage > &  rPackage,
const bool  bEnable 
)

Definition at line 635 of file dp_gui_extensioncmdqueue.cxx.

◆ execute()

void dp_gui::ExtensionCmdQueue::Thread::execute ( )
overrideprivatevirtual

◆ isBusy()

bool dp_gui::ExtensionCmdQueue::Thread::isBusy ( )

Definition at line 666 of file dp_gui_extensioncmdqueue.cxx.

References m_mutex.

◆ removeExtension()

void dp_gui::ExtensionCmdQueue::Thread::removeExtension ( const uno::Reference< deployment::XPackage > &  rPackage)

Definition at line 615 of file dp_gui_extensioncmdqueue.cxx.

◆ stop()

void dp_gui::ExtensionCmdQueue::Thread::stop ( )

Definition at line 657 of file dp_gui_extensioncmdqueue.cxx.

References m_mutex, and STOP.

Member Data Documentation

◆ m_bStopped

bool dp_gui::ExtensionCmdQueue::Thread::m_bStopped
private

Definition at line 255 of file dp_gui_extensioncmdqueue.cxx.

◆ m_bWorking

bool dp_gui::ExtensionCmdQueue::Thread::m_bWorking
private

Definition at line 256 of file dp_gui_extensioncmdqueue.cxx.

◆ m_eInput

Input dp_gui::ExtensionCmdQueue::Thread::m_eInput
private

Definition at line 254 of file dp_gui_extensioncmdqueue.cxx.

◆ m_mutex

std::mutex dp_gui::ExtensionCmdQueue::Thread::m_mutex
private

Definition at line 253 of file dp_gui_extensioncmdqueue.cxx.

◆ m_pDialogHelper

DialogHelper* dp_gui::ExtensionCmdQueue::Thread::m_pDialogHelper
private

Definition at line 243 of file dp_gui_extensioncmdqueue.cxx.

◆ m_pManager

TheExtensionManager* dp_gui::ExtensionCmdQueue::Thread::m_pManager
private

Definition at line 244 of file dp_gui_extensioncmdqueue.cxx.

◆ m_queue

std::queue< TExtensionCmd > dp_gui::ExtensionCmdQueue::Thread::m_queue
private

Definition at line 241 of file dp_gui_extensioncmdqueue.cxx.

◆ m_sAcceptLicense

const OUString dp_gui::ExtensionCmdQueue::Thread::m_sAcceptLicense
private

Definition at line 251 of file dp_gui_extensioncmdqueue.cxx.

◆ m_sAddingPackages

const OUString dp_gui::ExtensionCmdQueue::Thread::m_sAddingPackages
private

Definition at line 248 of file dp_gui_extensioncmdqueue.cxx.

◆ m_sDefaultCmd

const OUString dp_gui::ExtensionCmdQueue::Thread::m_sDefaultCmd
private

Definition at line 250 of file dp_gui_extensioncmdqueue.cxx.

◆ m_sDisablingPackages

const OUString dp_gui::ExtensionCmdQueue::Thread::m_sDisablingPackages
private

Definition at line 247 of file dp_gui_extensioncmdqueue.cxx.

◆ m_sEnablingPackages

const OUString dp_gui::ExtensionCmdQueue::Thread::m_sEnablingPackages
private

Definition at line 246 of file dp_gui_extensioncmdqueue.cxx.

◆ m_sRemovingPackages

const OUString dp_gui::ExtensionCmdQueue::Thread::m_sRemovingPackages
private

Definition at line 249 of file dp_gui_extensioncmdqueue.cxx.

◆ m_wakeup

std::condition_variable dp_gui::ExtensionCmdQueue::Thread::m_wakeup
private

Definition at line 252 of file dp_gui_extensioncmdqueue.cxx.

◆ m_xContext

uno::Reference< uno::XComponentContext > dp_gui::ExtensionCmdQueue::Thread::m_xContext
private

Definition at line 240 of file dp_gui_extensioncmdqueue.cxx.


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