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, const uno::Reference< uno::XComponentContext > &rContext)
 
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 (const 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 (const 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
 
osl::Condition m_wakeup
 
osl::Mutex m_mutex
 
Input m_eInput
 
bool m_bStopped
 
bool m_bWorking
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::Thread
static voidoperator new (std::size_t size)
 
static void operator delete (void *pointer)
 
- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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)
 
- 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 205 of file dp_gui_extensioncmdqueue.cxx.

Member Enumeration Documentation

Enumerator
NONE 
START 
STOP 

Definition at line 244 of file dp_gui_extensioncmdqueue.cxx.

Constructor & Destructor Documentation

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

Definition at line 589 of file dp_gui_extensioncmdqueue.cxx.

References m_xContext, and NONE.

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

Reimplemented from salhelper::Thread.

Definition at line 680 of file dp_gui_extensioncmdqueue.cxx.

Member Function Documentation

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

Definition at line 1029 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 845 of file dp_gui_extensioncmdqueue.cxx.

References getPropertyValue(), m_xContext, and sName.

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

Definition at line 1005 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 981 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 1052 of file dp_gui_extensioncmdqueue.cxx.

References START.

void dp_gui::ExtensionCmdQueue::Thread::_removeExtension ( ::rtl::Reference< ProgressCmdEnv > const &  rCmdEnv,
const uno::Reference< deployment::XPackage > &  xPackage 
)
private
void dp_gui::ExtensionCmdQueue::Thread::acceptLicense ( const uno::Reference< deployment::XPackage > &  rPackage)
void dp_gui::ExtensionCmdQueue::Thread::addExtension ( const OUString &  rExtensionURL,
const OUString &  rRepository,
const bool  bWarnUser 
)

Definition at line 610 of file dp_gui_extensioncmdqueue.cxx.

References dp_gui::ExtensionCmd::ADD.

void dp_gui::ExtensionCmdQueue::Thread::checkForUpdates ( const std::vector< uno::Reference< deployment::XPackage > > &  vExtensionList)
void dp_gui::ExtensionCmdQueue::Thread::enableExtension ( const uno::Reference< deployment::XPackage > &  rPackage,
const bool  bEnable 
)
void dp_gui::ExtensionCmdQueue::Thread::execute ( )
overrideprivatevirtual
bool dp_gui::ExtensionCmdQueue::Thread::isBusy ( )

Definition at line 673 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 622 of file dp_gui_extensioncmdqueue.cxx.

References dp_gui::ExtensionCmd::REMOVE.

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

Definition at line 664 of file dp_gui_extensioncmdqueue.cxx.

References STOP.

Member Data Documentation

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

Definition at line 261 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 262 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 260 of file dp_gui_extensioncmdqueue.cxx.

osl::Mutex dp_gui::ExtensionCmdQueue::Thread::m_mutex
private

Definition at line 259 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 249 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 250 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 247 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 257 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 254 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 256 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 253 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 252 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 255 of file dp_gui_extensioncmdqueue.cxx.

osl::Condition dp_gui::ExtensionCmdQueue::Thread::m_wakeup
private

Definition at line 258 of file dp_gui_extensioncmdqueue.cxx.

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

Definition at line 246 of file dp_gui_extensioncmdqueue.cxx.


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