Bump version to 4.3-4
[LibreOffice.git] / binaryurp / source / incomingrequest.hxx
bloba14c295d5d51d3f9a17c6a0531109757f4a08717
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_BINARYURP_SOURCE_INCOMINGREQUEST_HXX
21 #define INCLUDED_BINARYURP_SOURCE_INCOMINGREQUEST_HXX
23 #include "sal/config.h"
25 #include <vector>
27 #include "boost/noncopyable.hpp"
28 #include "rtl/byteseq.hxx"
29 #include "rtl/ref.hxx"
30 #include "rtl/ustring.hxx"
31 #include "sal/types.h"
32 #include "typelib/typedescription.hxx"
33 #include "uno/dispatcher.hxx"
35 namespace binaryurp {
36 class BinaryAny;
37 class Bridge;
40 namespace binaryurp {
42 class IncomingRequest: private boost::noncopyable {
43 public:
44 IncomingRequest(
45 rtl::Reference< Bridge > const & bridge, rtl::ByteSequence const & tid,
46 OUString const & oid,
47 com::sun::star::uno::UnoInterfaceReference const & object,
48 com::sun::star::uno::TypeDescription const & type,
49 sal_uInt16 functionId, bool synchronous,
50 com::sun::star::uno::TypeDescription const & member, bool setter,
51 std::vector< BinaryAny > const & inArguments, bool currentContextMode,
52 com::sun::star::uno::UnoInterfaceReference const & currentContext);
54 ~IncomingRequest();
56 void execute() const;
58 private:
59 bool execute_throw(
60 BinaryAny * returnValue, std::vector< BinaryAny > * outArguments) const;
62 rtl::Reference< Bridge > bridge_;
63 rtl::ByteSequence tid_;
64 OUString oid_; // initial object queryInterface; release
65 com::sun::star::uno::UnoInterfaceReference object_;
66 com::sun::star::uno::TypeDescription type_;
67 sal_uInt16 functionId_;
68 bool synchronous_;
69 com::sun::star::uno::TypeDescription member_;
70 bool setter_;
71 std::vector< BinaryAny > inArguments_;
72 bool currentContextMode_;
73 com::sun::star::uno::UnoInterfaceReference currentContext_;
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */