tdf#164749 make "Compare by: " label in Duplicates dialog translatable
[LibreOffice.git] / udkapi / com / sun / star / io / XActiveDataControl.idl
blobbad0c32c9aaf1069efe4446ba2513e70091c6499
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
22 module com { module sun { module star { module io {
24 /** makes it possible to control an active data source.
26 <p>This interface should be supported by objects which implement
27 XActiveDataSource or XActiveDataSink.</p>
29 published interface XActiveDataControl: com::sun::star::uno::XInterface
31 /** registers an object to receive events from this data source.
32 <p>It is suggested to allow multiple registration of the same listener,
33 thus for each time a listener is added, it has to be removed.
35 void addListener( [in] com::sun::star::io::XStreamListener aListener );
37 /** unregisters an object to receive events from this data source.
39 <p>It is suggested to allow multiple registration of the same listener,
40 thus for each time a listener is added, it has to be removed.
42 void removeListener( [in] com::sun::star::io::XStreamListener aListener );
44 /** starts I/O.
46 <p>Either XActiveDataControl::setInputStream() or
47 XActiveDataControl::setOutputStream() must be called beforehand.
48 </p>
50 <p>This method does not block the thread, so reading is
51 generally not finished when the method returns. </p>
53 void start();
55 /** does a weak abort.
57 <p>It closes all connected resources and calls
58 XInputStream::close() or
59 XOutputStream::close() and fires the
60 XStreamListener::terminated()-event.</p>
62 void terminate();
67 }; }; }; };
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */