LibreOffice Module desktop (master) 1
|
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< TExtensionCmd > | m_queue |
DialogHelper * | m_pDialogHelper |
TheExtensionManager * | m_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 |
Definition at line 199 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Enumerator | |
---|---|
NONE | |
START | |
STOP |
Definition at line 238 of file dp_gui_extensioncmdqueue.cxx.
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.
|
overrideprivatevirtual |
Reimplemented from salhelper::Thread.
Definition at line 673 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 1018 of file dp_gui_extensioncmdqueue.cxx.
References m_pDialogHelper, and m_pManager.
|
private |
Definition at line 834 of file dp_gui_extensioncmdqueue.cxx.
References ucbhelper::Content::getPropertyValue(), m_pManager, m_xContext, and sName.
|
private |
Definition at line 912 of file dp_gui_extensioncmdqueue.cxx.
References m_pDialogHelper, m_xContext, dp_gui::UpdateDialog::notifyMenubar(), RET_OK, dp_gui::UpdateDialog::run(), and dp_gui::UpdateInstallDialog::run().
|
private |
Definition at line 994 of file dp_gui_extensioncmdqueue.cxx.
References m_pDialogHelper, and m_pManager.
|
private |
Definition at line 970 of file dp_gui_extensioncmdqueue.cxx.
References m_pDialogHelper, and m_pManager.
|
private |
Definition at line 1041 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 884 of file dp_gui_extensioncmdqueue.cxx.
References dp_gui::UpdateDialog::createNotifyJob(), dp_misc::getIdentifier(), and m_pManager.
void dp_gui::ExtensionCmdQueue::Thread::acceptLicense | ( | const uno::Reference< deployment::XPackage > & | rPackage | ) |
Definition at line 625 of file dp_gui_extensioncmdqueue.cxx.
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.
void dp_gui::ExtensionCmdQueue::Thread::checkForUpdates | ( | std::vector< uno::Reference< deployment::XPackage > > && | vExtensionList | ) |
Definition at line 648 of file dp_gui_extensioncmdqueue.cxx.
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.
|
overrideprivatevirtual |
Implements salhelper::Thread.
Definition at line 676 of file dp_gui_extensioncmdqueue.cxx.
References Application::CreateMessageDialog(), m_mutex, m_pDialogHelper, m_xContext, NONE, and STOP.
bool dp_gui::ExtensionCmdQueue::Thread::isBusy | ( | ) |
Definition at line 666 of file dp_gui_extensioncmdqueue.cxx.
References m_mutex.
void dp_gui::ExtensionCmdQueue::Thread::removeExtension | ( | const uno::Reference< deployment::XPackage > & | rPackage | ) |
Definition at line 615 of file dp_gui_extensioncmdqueue.cxx.
void dp_gui::ExtensionCmdQueue::Thread::stop | ( | ) |
Definition at line 657 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 255 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 256 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 254 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 253 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 243 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 244 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 241 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 251 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 248 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 250 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 247 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 246 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 249 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 252 of file dp_gui_extensioncmdqueue.cxx.
|
private |
Definition at line 240 of file dp_gui_extensioncmdqueue.cxx.