1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 #ifndef INCLUDED_BINARYURP_SOURCE_INCOMINGREQUEST_HXX 25 #define INCLUDED_BINARYURP_SOURCE_INCOMINGREQUEST_HXX 26 27 #include "sal/config.h" 28 29 #include <vector> 30 31 #include "boost/noncopyable.hpp" 32 #include "rtl/byteseq.hxx" 33 #include "rtl/ref.hxx" 34 #include "rtl/ustring.hxx" 35 #include "sal/types.h" 36 #include "typelib/typedescription.hxx" 37 #include "uno/dispatcher.hxx" 38 39 namespace binaryurp { 40 class BinaryAny; 41 class Bridge; 42 } 43 44 namespace binaryurp { 45 46 class IncomingRequest: private boost::noncopyable { 47 public: 48 IncomingRequest( 49 rtl::Reference< Bridge > const & bridge, rtl::ByteSequence const & tid, 50 rtl::OUString const & oid, 51 com::sun::star::uno::UnoInterfaceReference const & object, 52 com::sun::star::uno::TypeDescription const & type, 53 sal_uInt16 functionId, bool synchronous, 54 com::sun::star::uno::TypeDescription const & member, bool setter, 55 std::vector< BinaryAny > const & inArguments, bool currentContextMode, 56 com::sun::star::uno::UnoInterfaceReference const & currentContext); 57 58 ~IncomingRequest(); 59 60 void execute() const; 61 62 private: 63 bool execute_throw( 64 BinaryAny * returnValue, std::vector< BinaryAny > * outArguments) const; 65 66 rtl::Reference< Bridge > bridge_; 67 rtl::ByteSequence tid_; 68 rtl::OUString oid_; // initial object queryInterface; release 69 com::sun::star::uno::UnoInterfaceReference object_; 70 com::sun::star::uno::TypeDescription type_; 71 sal_uInt16 functionId_; 72 bool synchronous_; 73 com::sun::star::uno::TypeDescription member_; 74 bool setter_; 75 std::vector< BinaryAny > inArguments_; 76 bool currentContextMode_; 77 com::sun::star::uno::UnoInterfaceReference currentContext_; 78 }; 79 80 } 81 82 #endif 83