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#ifndef _COM_SUN_STAR_CONNECTION_XCONNECTOR_IDL_
28#define _COM_SUN_STAR_CONNECTION_XCONNECTOR_IDL_
29
30#include <com/sun/star/connection/ConnectionSetupException.idl>
31#include <com/sun/star/connection/NoConnectException.idl>
32#include <com/sun/star/lang/IllegalArgumentException.idl>
33#include <com/sun/star/connection/XConnection.idl>
34
35
36module com {  module sun {  module star {  module connection {
37
38/**
39   allows to actively establish an interprocess connection.
40 */
41published interface XConnector: com::sun::star::uno::XInterface
42{
43
44	// DocMerge from xml: method com::sun::star::connection::XConnector::connect
45	/** creates a new connection interprocess connection.
46		<p>
47		Tries to connect to an <type>XAcceptor</type>.  Behavior is unspecified
48        if a call to connect is made when another call to connect either has not
49        yet returned or has returned successfully without raising an exception.
50
51		@param sConnectionDescription
52				contains the kind of the connection plus a
53				comma seperated list of attributes,
54			   e.g., <em>socket,host=locahost,port=2345</em> for a tcpip connection.
55
56	    @throws ConnectionSetupException
57				Problems during setting up the connector
58		      on client side, (e.g., Security-reasons, socket already busy .. ),
59				or the string could not be interpreted correctly.
60
61		@throws NoConnectException
62				Couldn't reach a server (e.g. network failure),
63				no server is listening
64	 */
65	XConnection connect( [in] string sConnectionDescription )
66		raises( NoConnectException,ConnectionSetupException );
67};
68
69
70};};};};
71
72#endif
73