summaryrefslogtreecommitdiff
path: root/udkapi
diff options
context:
space:
mode:
authorKay Ramme <kr@openoffice.org>2001-01-23 10:57:03 +0000
committerKay Ramme <kr@openoffice.org>2001-01-23 10:57:03 +0000
commita94e9425bdac7d9662df343156a74928352ae535 (patch)
treed2361dd73f54ad7ac7cf2a0c6a3e81edecd08c0b /udkapi
parent8cddc3b0099b2231514691ecb88bf28d1b16bce2 (diff)
#82674# new interface XConnection2 extends XConnection with available and readSomeBytes
Diffstat (limited to 'udkapi')
-rw-r--r--udkapi/com/sun/star/connection/XConnection2.idl99
1 files changed, 99 insertions, 0 deletions
diff --git a/udkapi/com/sun/star/connection/XConnection2.idl b/udkapi/com/sun/star/connection/XConnection2.idl
new file mode 100644
index 000000000000..7b7820272659
--- /dev/null
+++ b/udkapi/com/sun/star/connection/XConnection2.idl
@@ -0,0 +1,99 @@
+/*************************************************************************
+ *
+ * $RCSfile: XConnection2.idl,v $
+ *
+ * $Revision: 1.1 $
+ *
+ * last change: $Author: kr $ $Date: 2001-01-23 11:57:03 $
+ *
+ * The Contents of this file are made available subject to the terms of
+ * either of the following licenses
+ *
+ * - GNU Lesser General Public License Version 2.1
+ * - Sun Industry Standards Source License Version 1.1
+ *
+ * Sun Microsystems Inc., October, 2000
+ *
+ * GNU Lesser General Public License Version 2.1
+ * =============================================
+ * Copyright 2000 by Sun Microsystems, Inc.
+ * 901 San Antonio Road, Palo Alto, CA 94303, USA
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License version 2.1, as published by the Free Software Foundation.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ *
+ * Sun Industry Standards Source License Version 1.1
+ * =================================================
+ * The contents of this file are subject to the Sun Industry Standards
+ * Source License Version 1.1 (the "License"); You may not use this file
+ * except in compliance with the License. You may obtain a copy of the
+ * License at http://www.openoffice.org/license.html.
+ *
+ * Software provided under this License is provided on an "AS IS" basis,
+ * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
+ * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
+ * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
+ * See the License for the specific provisions governing your rights and
+ * obligations concerning the Software.
+ *
+ * The Initial Developer of the Original Code is: Sun Microsystems, Inc.
+ *
+ * Copyright: 2000 by Sun Microsystems, Inc.
+ *
+ * All Rights Reserved.
+ *
+ * Contributor(s): _______________________________________
+ *
+ *
+ ************************************************************************/
+#ifndef _COM_SUN_STAR_CONNECTION_XCONNECTION2_IDL_
+#define _COM_SUN_STAR_CONNECTION_XCONNECTION2_IDL_
+
+#include <com/sun/star/io/IOException.idl>
+#include <com/sun/star/io/BufferSizeExceededException.idl>
+#include <com/sun/star/io/NotConnectedException.idl>
+
+#include <com/sun/star/connection/XConnection.idl>
+
+
+module com { module sun { module star { module connection {
+
+
+
+
+/**
+ XConnection2 extends the <code>XConnection</code> interface
+ with <code>available</code> and <code>readSomeBytes</code>
+*/
+[ uik(96BFCB68-8832-4697-A546310D-655604A6), ident( "XConnection2", 1.0 ) ]
+interface XConnection2: com::sun::star::connection::XConnection
+{
+
+ /** Gives the number of bytes available via <code>read</code>
+ without blocking.
+ */
+ long available() raises(com::sun::star::io::IOException);
+
+ /** Blocks if no data is available otherwise reads at
+ max <var>nMaxBytesToRead</var> but at least 1 byte.
+ </p>
+ */
+ long readSomeBytes([out] sequence<byte> aData, [in] long nMaxBytesToRead)
+ raises(com::sun::star::io::IOException);
+};
+
+};};};};
+
+#endif