Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
7f64aa4d
Kaydet (Commit)
7f64aa4d
authored
Eki 14, 2010
tarafından
Jens-Heiner Rechtien
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
CWS-TOOLING: integrate CWS jl161
üst
b7c5e022
2f3358d7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
0 deletions
+78
-0
dp_commandenvironments.cxx
desktop/source/deployment/manager/dp_commandenvironments.cxx
+38
-0
dp_commandenvironments.hxx
desktop/source/deployment/manager/dp_commandenvironments.hxx
+23
-0
dp_extensionmanager.cxx
desktop/source/deployment/manager/dp_extensionmanager.cxx
+0
-0
dp_extensionmanager.hxx
desktop/source/deployment/manager/dp_extensionmanager.hxx
+17
-0
No files found.
desktop/source/deployment/manager/dp_commandenvironments.cxx
Dosyayı görüntüle @
7f64aa4d
...
@@ -31,6 +31,8 @@
...
@@ -31,6 +31,8 @@
#include "com/sun/star/deployment/VersionException.hpp"
#include "com/sun/star/deployment/VersionException.hpp"
#include "com/sun/star/deployment/LicenseException.hpp"
#include "com/sun/star/deployment/LicenseException.hpp"
#include "com/sun/star/deployment/InstallException.hpp"
#include "com/sun/star/deployment/InstallException.hpp"
#include "com/sun/star/deployment/DependencyException.hpp"
#include "com/sun/star/deployment/PlatformException.hpp"
#include "com/sun/star/task/XInteractionApprove.hpp"
#include "com/sun/star/task/XInteractionApprove.hpp"
#include "com/sun/star/task/XInteractionAbort.hpp"
#include "com/sun/star/task/XInteractionAbort.hpp"
#include "com/sun/star/task/XInteractionHandler.hpp"
#include "com/sun/star/task/XInteractionHandler.hpp"
...
@@ -250,7 +252,43 @@ void NoLicenseCommandEnv::handle(
...
@@ -250,7 +252,43 @@ void NoLicenseCommandEnv::handle(
handle_
(
approve
,
abort
,
xRequest
);
handle_
(
approve
,
abort
,
xRequest
);
}
}
// SilentCheckPrerequisitesCommandEnv::SilentCheckPrerequisitesCommandEnv(
// css::uno::Reference< css::task::XInteractionHandler> const & handler):
// BaseCommandEnv(handler)
// {
// }
SilentCheckPrerequisitesCommandEnv
::
SilentCheckPrerequisitesCommandEnv
()
{
}
void
SilentCheckPrerequisitesCommandEnv
::
handle
(
Reference
<
task
::
XInteractionRequest
>
const
&
xRequest
)
throw
(
uno
::
RuntimeException
)
{
uno
::
Any
request
(
xRequest
->
getRequest
()
);
OSL_ASSERT
(
request
.
getValueTypeClass
()
==
uno
::
TypeClass_EXCEPTION
);
deployment
::
LicenseException
licExc
;
deployment
::
PlatformException
platformExc
;
deployment
::
DependencyException
depExc
;
bool
approve
=
false
;
bool
abort
=
false
;
if
(
request
>>=
licExc
)
{
approve
=
true
;
handle_
(
approve
,
abort
,
xRequest
);
}
else
if
((
request
>>=
platformExc
)
||
(
request
>>=
depExc
))
{
m_Exception
=
request
;
}
else
{
m_UnknownException
=
request
;
}
}
// NoExceptionCommandEnv::NoExceptionCommandEnv(
// NoExceptionCommandEnv::NoExceptionCommandEnv(
// css::uno::Reference< css::task::XInteractionHandler> const & handler,
// css::uno::Reference< css::task::XInteractionHandler> const & handler,
// css::uno::Type const & type):
// css::uno::Type const & type):
...
...
desktop/source/deployment/manager/dp_commandenvironments.hxx
Dosyayı görüntüle @
7f64aa4d
...
@@ -135,6 +135,29 @@ public:
...
@@ -135,6 +135,29 @@ public:
};
};
/* For use in XExtensionManager::addExtension in the call to
XPackage::checkPrerequisites
It prevents all user interactions. The license is always accepted.
It remembers if there was a platform or a dependency exception in
the member m_bException. if there was any other exception then m_bUnknownException
is set.
*/
class
SilentCheckPrerequisitesCommandEnv
:
public
BaseCommandEnv
{
public
:
SilentCheckPrerequisitesCommandEnv
();
// XInteractionHandler
virtual
void
SAL_CALL
handle
(
css
::
uno
::
Reference
<
css
::
task
::
XInteractionRequest
>
const
&
xRequest
)
throw
(
css
::
uno
::
RuntimeException
);
// Set to true if a PlatformException or a DependencyException were handled.
css
::
uno
::
Any
m_Exception
;
// Set to true if an unknown exception was handled.
css
::
uno
::
Any
m_UnknownException
;
};
// class NoExceptionCommandEnv : public BaseCommandEnv
// class NoExceptionCommandEnv : public BaseCommandEnv
// {
// {
// css::uno::Type m_type;
// css::uno::Type m_type;
...
...
desktop/source/deployment/manager/dp_extensionmanager.cxx
Dosyayı görüntüle @
7f64aa4d
This diff is collapsed.
Click to expand it.
desktop/source/deployment/manager/dp_extensionmanager.hxx
Dosyayı görüntüle @
7f64aa4d
...
@@ -235,6 +235,8 @@ private:
...
@@ -235,6 +235,8 @@ private:
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
m_bundledRepository
;
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
m_bundledRepository
;
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
m_tmpRepository
;
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
m_tmpRepository
;
//only to be used within addExtension
::
osl
::
Mutex
m_addMutex
;
/* contains the names of all repositories (except tmp) in order of there
/* contains the names of all repositories (except tmp) in order of there
priority. That is, the first element is "user" follod by "shared" and
priority. That is, the first element is "user" follod by "shared" and
then "bundled"
then "bundled"
...
@@ -296,6 +298,21 @@ private:
...
@@ -296,6 +298,21 @@ private:
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
getPackageManager
(
::
rtl
::
OUString
const
&
repository
)
getPackageManager
(
::
rtl
::
OUString
const
&
repository
)
throw
(
css
::
lang
::
IllegalArgumentException
);
throw
(
css
::
lang
::
IllegalArgumentException
);
bool
doChecksForAddExtension
(
css
::
uno
::
Reference
<
css
::
deployment
::
XPackageManager
>
const
&
xPackageMgr
,
css
::
uno
::
Sequence
<
css
::
beans
::
NamedValue
>
const
&
properties
,
css
::
uno
::
Reference
<
css
::
deployment
::
XPackage
>
const
&
xTmpExtension
,
css
::
uno
::
Reference
<
css
::
task
::
XAbortChannel
>
const
&
xAbortChannel
,
css
::
uno
::
Reference
<
css
::
ucb
::
XCommandEnvironment
>
const
&
xCmdEnv
,
css
::
uno
::
Reference
<
css
::
deployment
::
XPackage
>
&
out_existingExtension
)
throw
(
css
::
deployment
::
DeploymentException
,
css
::
ucb
::
CommandFailedException
,
css
::
ucb
::
CommandAbortedException
,
css
::
lang
::
IllegalArgumentException
,
css
::
uno
::
RuntimeException
);
};
};
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment