xref: /trunk/main/bridges/test/test_bridge.idl (revision 14ea66fa)
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#include <com/sun/star/uno/XInterface.idl>
24#include <com/sun/star/uno/Exception.idl>
25
26module test
27{
28
29struct TestTypes
30{
31	boolean					   Bool;
32	char					   Char;
33	byte					   Byte;
34	short					   Short;
35	unsigned short			   UShort;
36	long					   Long;
37	unsigned long			   ULong;
38	hyper					   Hyper;
39	unsigned hyper			   UHyper;
40	float					   Float;
41	double					   Double;
42//	test::TestEnum			   Enum;
43	string					   String;
44	com::sun::star::uno::XInterface   Interface;
45	any						   Any;
46};
47
48exception TestBridgeException : com::sun::star::uno::Exception
49{
50
51};
52
53interface XCallMe : com::sun::star::uno::XInterface
54{
55	void call( [in] string s , [in] long nToDo ) raises( TestBridgeException );
56	[oneway] void callOneway( [in] string s , [in] long nToDo );
57	[attribute] string sAttribute;
58	void callAgain( [in] XCallMe callAgain, [in] long nToCall );
59	TestTypes transport( [in] TestTypes types );
60	[oneway] void drawLine( [in] long x1 , [in] long y1, [in] long x2, [in] long y2 );
61};
62
63interface XInterfaceTest : com::sun::star::uno::XInterface
64{
65	void setIn( [in] XCallMe callback );
66	void setInOut( [inout] XCallMe callback );
67	void getOut( [out] XCallMe callback );
68	XCallMe get();
69};
70
71interface XTestFactory : com::sun::star::uno::XInterface
72{
73	XCallMe createCallMe();
74	XInterfaceTest createInterfaceTest();
75};
76
77
78};
79