bump product version to 6.3.0.0.beta1
[LibreOffice.git] / binaryurp / source / incomingrequest.hxx
blobd6ed7fbccc7c14a94daab9251c22c1dafad8d87f
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 <rtl/byteseq.hxx>
28 #include <rtl/ref.hxx>
29 #include <rtl/ustring.hxx>
30 #include <sal/types.h>
31 #include <typelib/typedescription.hxx>
32 #include <uno/dispatcher.hxx>
34 namespace binaryurp {
35 class BinaryAny;
36 class Bridge;
39 namespace binaryurp {
41 class IncomingRequest {
42 private:
43 IncomingRequest(const IncomingRequest&) = delete;
44 IncomingRequest& operator=(const IncomingRequest&) = delete;
45 public:
46 IncomingRequest(
47 rtl::Reference< Bridge > const & bridge, rtl::ByteSequence const & tid,
48 OUString const & oid,
49 com::sun::star::uno::UnoInterfaceReference const & object,
50 com::sun::star::uno::TypeDescription const & type,
51 sal_uInt16 functionId, bool synchronous,
52 com::sun::star::uno::TypeDescription const & member, bool setter,
53 std::vector< BinaryAny > const & inArguments, bool currentContextMode,
54 com::sun::star::uno::UnoInterfaceReference const & currentContext);
56 ~IncomingRequest();
58 void execute() const;
60 private:
61 bool execute_throw(
62 BinaryAny * returnValue, std::vector< BinaryAny > * outArguments) const;
64 rtl::Reference< Bridge > bridge_;
65 rtl::ByteSequence tid_;
66 OUString oid_; // initial object queryInterface; release
67 com::sun::star::uno::UnoInterfaceReference object_;
68 com::sun::star::uno::TypeDescription type_;
69 sal_uInt16 functionId_;
70 bool synchronous_;
71 com::sun::star::uno::TypeDescription member_;
72 bool setter_;
73 std::vector< BinaryAny > inArguments_;
74 bool currentContextMode_;
75 com::sun::star::uno::UnoInterfaceReference currentContext_;
80 #endif
82 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */