xref: /aoo41x/main/bridges/test/test_bridge.idl (revision cdf0e10c)
1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
6 *
7 * OpenOffice.org - a multi-platform office productivity suite
8 *
9 * This file is part of OpenOffice.org.
10 *
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
14 *
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
20 *
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org.  If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
25 *
26 ************************************************************************/
27#include <com/sun/star/uno/XInterface.idl>
28#include <com/sun/star/uno/Exception.idl>
29
30module test
31{
32
33struct TestTypes
34{
35	boolean					   Bool;
36	char					   Char;
37	byte					   Byte;
38	short					   Short;
39	unsigned short			   UShort;
40	long					   Long;
41	unsigned long			   ULong;
42	hyper					   Hyper;
43	unsigned hyper			   UHyper;
44	float					   Float;
45	double					   Double;
46//	test::TestEnum			   Enum;
47	string					   String;
48	com::sun::star::uno::XInterface   Interface;
49	any						   Any;
50};
51
52exception TestBridgeException : com::sun::star::uno::Exception
53{
54
55};
56
57interface XCallMe : com::sun::star::uno::XInterface
58{
59	void call( [in] string s , [in] long nToDo ) raises( TestBridgeException );
60	[oneway] void callOneway( [in] string s , [in] long nToDo );
61	[attribute] string sAttribute;
62	void callAgain( [in] XCallMe callAgain, [in] long nToCall );
63	TestTypes transport( [in] TestTypes types );
64	[oneway] void drawLine( [in] long x1 , [in] long y1, [in] long x2, [in] long y2 );
65};
66
67interface XInterfaceTest : com::sun::star::uno::XInterface
68{
69	void setIn( [in] XCallMe callback );
70	void setInOut( [inout] XCallMe callback );
71	void getOut( [out] XCallMe callback );
72	XCallMe get();
73};
74
75interface XTestFactory : com::sun::star::uno::XInterface
76{
77	XCallMe createCallMe();
78	XInterfaceTest createInterfaceTest();
79};
80
81
82};
83