Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_DEPLOYMENT_VERSIONEXCEPTION_HPP
2 : #define INCLUDED_COM_SUN_STAR_DEPLOYMENT_VERSIONEXCEPTION_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/deployment/VersionException.hdl"
7 :
8 : #include "com/sun/star/deployment/XPackage.hpp"
9 : #include "com/sun/star/uno/Exception.hpp"
10 : #include "com/sun/star/uno/Reference.hxx"
11 : #include "com/sun/star/uno/Type.hxx"
12 : #include "cppu/unotype.hxx"
13 : #include "osl/mutex.hxx"
14 : #include "rtl/ustring.hxx"
15 : #include "rtl/instance.hxx"
16 :
17 : namespace com { namespace sun { namespace star { namespace deployment {
18 :
19 0 : inline VersionException::VersionException() SAL_THROW(())
20 : : css::uno::Exception()
21 : , NewVersion()
22 : , NewDisplayName()
23 0 : , Deployed()
24 0 : { }
25 :
26 0 : inline VersionException::VersionException(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context_, const ::rtl::OUString& NewVersion_, const ::rtl::OUString& NewDisplayName_, const ::com::sun::star::uno::Reference< css::deployment::XPackage >& Deployed_) SAL_THROW(())
27 : : css::uno::Exception(Message_, Context_)
28 : , NewVersion(NewVersion_)
29 : , NewDisplayName(NewDisplayName_)
30 0 : , Deployed(Deployed_)
31 0 : { }
32 :
33 : VersionException::VersionException(VersionException const & the_other): css::uno::Exception(the_other), NewVersion(the_other.NewVersion), NewDisplayName(the_other.NewDisplayName), Deployed(the_other.Deployed) {}
34 :
35 0 : VersionException::~VersionException() {}
36 :
37 : VersionException & VersionException::operator =(VersionException const & the_other) {
38 : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
39 : css::uno::Exception::operator =(the_other);
40 : NewVersion = the_other.NewVersion;
41 : NewDisplayName = the_other.NewDisplayName;
42 : Deployed = the_other.Deployed;
43 : return *this;
44 : }
45 :
46 : } } } }
47 :
48 : namespace com { namespace sun { namespace star { namespace deployment {
49 :
50 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::deployment::VersionException const *) {
51 : static typelib_TypeDescriptionReference * the_type = 0;
52 0 : if ( !the_type )
53 : {
54 0 : typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.deployment.VersionException" );
55 : }
56 0 : return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
57 : }
58 :
59 : } } } }
60 :
61 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::deployment::VersionException const *) SAL_THROW(()) {
62 : return ::cppu::UnoType< css::deployment::VersionException >::get();
63 : }
64 :
65 : #endif // INCLUDED_COM_SUN_STAR_DEPLOYMENT_VERSIONEXCEPTION_HPP
|