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