Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_UCB_CERTIFICATEVALIDATIONREQUEST_HPP
2 : #define INCLUDED_COM_SUN_STAR_UCB_CERTIFICATEVALIDATIONREQUEST_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/ucb/CertificateValidationRequest.hdl"
7 :
8 : #include "com/sun/star/security/XCertificate.hpp"
9 : #include "com/sun/star/task/ClassifiedInteractionRequest.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 : #include "sal/types.h"
17 :
18 : namespace com { namespace sun { namespace star { namespace ucb {
19 :
20 0 : inline CertificateValidationRequest::CertificateValidationRequest() SAL_THROW(())
21 : : css::task::ClassifiedInteractionRequest()
22 : , CertificateValidity(0)
23 : , Certificate()
24 0 : , HostName()
25 0 : { }
26 :
27 : inline CertificateValidationRequest::CertificateValidationRequest(const ::rtl::OUString& Message_, const ::com::sun::star::uno::Reference< css::uno::XInterface >& Context_, const css::task::InteractionClassification& Classification_, const ::sal_Int32& CertificateValidity_, const ::com::sun::star::uno::Reference< css::security::XCertificate >& Certificate_, const ::rtl::OUString& HostName_) SAL_THROW(())
28 : : css::task::ClassifiedInteractionRequest(Message_, Context_, Classification_)
29 : , CertificateValidity(CertificateValidity_)
30 : , Certificate(Certificate_)
31 : , HostName(HostName_)
32 : { }
33 :
34 : CertificateValidationRequest::CertificateValidationRequest(CertificateValidationRequest const & the_other): css::task::ClassifiedInteractionRequest(the_other), CertificateValidity(the_other.CertificateValidity), Certificate(the_other.Certificate), HostName(the_other.HostName) {}
35 :
36 0 : CertificateValidationRequest::~CertificateValidationRequest() {}
37 :
38 : CertificateValidationRequest & CertificateValidationRequest::operator =(CertificateValidationRequest const & the_other) {
39 : //TODO: Just like its implicitly-defined counterpart, this function definition is not exception-safe
40 : css::task::ClassifiedInteractionRequest::operator =(the_other);
41 : CertificateValidity = the_other.CertificateValidity;
42 : Certificate = the_other.Certificate;
43 : HostName = the_other.HostName;
44 : return *this;
45 : }
46 :
47 : } } } }
48 :
49 : namespace com { namespace sun { namespace star { namespace ucb {
50 :
51 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::ucb::CertificateValidationRequest const *) {
52 : static typelib_TypeDescriptionReference * the_type = 0;
53 0 : if ( !the_type )
54 : {
55 0 : typelib_static_type_init( &the_type, typelib_TypeClass_EXCEPTION, "com.sun.star.ucb.CertificateValidationRequest" );
56 : }
57 0 : return * reinterpret_cast< ::com::sun::star::uno::Type * >( &the_type );
58 : }
59 :
60 : } } } }
61 :
62 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::ucb::CertificateValidationRequest const *) SAL_THROW(()) {
63 : return ::cppu::UnoType< css::ucb::CertificateValidationRequest >::get();
64 : }
65 :
66 : #endif // INCLUDED_COM_SUN_STAR_UCB_CERTIFICATEVALIDATIONREQUEST_HPP
|