lok: jsbuilder: avoid sending early id to client side
[LibreOffice.git] / binaryurp / source / incomingrequest.hxx
blobf85171b15a9390814b85aa2923e30ee71173be3d
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 const & tid,
47 OUString const & oid,
48 com::sun::star::uno::UnoInterfaceReference const & object,
49 com::sun::star::uno::TypeDescription const & type,
50 sal_uInt16 functionId, bool synchronous,
51 com::sun::star::uno::TypeDescription const & member, bool setter,
52 std::vector< BinaryAny > const & inArguments, bool currentContextMode,
53 com::sun::star::uno::UnoInterfaceReference const & 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 sal_uInt16 functionId_;
69 bool synchronous_;
70 com::sun::star::uno::TypeDescription member_;
71 bool setter_;
72 std::vector< BinaryAny > inArguments_;
73 bool currentContextMode_;
74 com::sun::star::uno::UnoInterfaceReference currentContext_;
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */