Update git submodules
[LibreOffice.git] / binaryurp / source / incomingrequest.hxx
blobfaff4f5a5c0c4724d6c75dce92eb239b2e0a7be5
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 #pragma once
22 #include <sal/config.h>
24 #include <vector>
26 #include <rtl/byteseq.hxx>
27 #include <rtl/ref.hxx>
28 #include <rtl/ustring.hxx>
29 #include <sal/types.h>
30 #include <typelib/typedescription.hxx>
31 #include <uno/dispatcher.hxx>
33 namespace binaryurp {
34 class BinaryAny;
35 class Bridge;
38 namespace binaryurp {
40 class IncomingRequest {
41 private:
42 IncomingRequest(const IncomingRequest&) = delete;
43 IncomingRequest& operator=(const IncomingRequest&) = delete;
44 public:
45 IncomingRequest(
46 rtl::Reference< Bridge > const & bridge, rtl::ByteSequence tid,
47 OUString oid,
48 com::sun::star::uno::UnoInterfaceReference object,
49 com::sun::star::uno::TypeDescription type,
50 sal_uInt16 functionId, bool synchronous,
51 com::sun::star::uno::TypeDescription const & member, bool setter,
52 std::vector< BinaryAny >&& inArguments, bool currentContextMode,
53 com::sun::star::uno::UnoInterfaceReference currentContext);
55 ~IncomingRequest();
57 void execute() const;
59 private:
60 bool execute_throw(
61 BinaryAny * returnValue, std::vector< BinaryAny > * outArguments) const;
63 rtl::Reference< Bridge > bridge_;
64 rtl::ByteSequence tid_;
65 OUString oid_; // initial object queryInterface; release
66 com::sun::star::uno::UnoInterfaceReference object_;
67 com::sun::star::uno::TypeDescription type_;
68 com::sun::star::uno::TypeDescription member_;
69 com::sun::star::uno::UnoInterfaceReference currentContext_;
70 std::vector< BinaryAny > inArguments_;
71 sal_uInt16 functionId_;
72 bool synchronous_;
73 bool setter_;
74 bool currentContextMode_;
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */