diff options
author | Dirk Voelzke <dv@openoffice.org> | 2010-06-03 09:35:22 +0200 |
---|---|---|
committer | Dirk Voelzke <dv@openoffice.org> | 2010-06-03 09:35:22 +0200 |
commit | 04615ba86017896e0fb4bf951004ba2e4e22e6c9 (patch) | |
tree | c07ff43dacfacff44221b9e3e728d36115997fec | |
parent | 057d47a436bab4ba71a101f7d2ad21cabae0cd20 (diff) |
jl152#i77196# unopkg gui should sync repositories, too
-rwxr-xr-x | desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx | 6 | ||||
-rwxr-xr-x | desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx | 1 | ||||
-rwxr-xr-x[-rw-r--r--] | desktop/source/deployment/gui/dp_gui_service.cxx | 2 |
3 files changed, 9 insertions, 0 deletions
diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx index e3c8b2bfb46b..8bd8a6191201 100755 --- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx +++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.cxx @@ -76,6 +76,7 @@ #include "comphelper/anytostring.hxx" #include "vcl/msgbox.hxx" #include "toolkit/helper/vclunohelper.hxx" +#include "comphelper/processfactory.hxx" #include "dp_gui.h" #include "dp_gui_thread.hxx" @@ -1185,6 +1186,11 @@ void ExtensionCmdQueue::acceptLicense( const uno::Reference< deployment::XPackag m_thread->acceptLicense( rPackage ); } +void ExtensionCmdQueue::syncRepositories( const uno::Reference< uno::XComponentContext > &xContext ) +{ + dp_misc::syncRepositories( new ProgressCmdEnv( xContext, NULL, OUSTR("Extension Manager") ) ); +} + void ExtensionCmdQueue::stop() { m_thread->stop(); diff --git a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx index 29cee4292102..7ac00e2740d4 100755 --- a/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx +++ b/desktop/source/deployment/gui/dp_gui_extensioncmdqueue.hxx @@ -86,6 +86,7 @@ public: void checkForUpdates(const std::vector< ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > > &vList ); void acceptLicense( const ::com::sun::star::uno::Reference< ::com::sun::star::deployment::XPackage > &rPackage ); + static void syncRepositories( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & xContext ); /** This call does not block. It signals the internal thread that it should install the remaining extensions and then terminate. diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx b/desktop/source/deployment/gui/dp_gui_service.cxx index 061988d5b04d..c4269e6ac137 100644..100755 --- a/desktop/source/deployment/gui/dp_gui_service.cxx +++ b/desktop/source/deployment/gui/dp_gui_service.cxx @@ -46,6 +46,7 @@ #include "boost/bind.hpp" #include "license_dialog.hxx" #include "dp_gui_dialog2.hxx" +#include "dp_gui_extensioncmdqueue.hxx" using namespace ::dp_misc; using namespace ::com::sun::star; @@ -256,6 +257,7 @@ void ServiceImpl::startExecuteModal( + ::utl::ConfigManager::GetDirectConfigProperty( ::utl::ConfigManager::PRODUCTVERSION).get<OUString>(); app->SetDisplayName(sTitle); + ExtensionCmdQueue::syncRepositories( m_xComponentContext ); } } else |