KIO
Go to the documentation of this file.
22 #ifndef KIO_CONNECTION_H
23 #define KIO_CONNECTION_H
25 #if defined(MAKE_KIO_LIB) || defined(MAKE_KLAUNCHER)
26 # define KIO_CONNECTION_EXPORT KIO_EXPORT
28 # define KIO_CONNECTION_EXPORT KIO_EXPORT_DEPRECATED
33 #include <QtCore/QObject>
34 #include <QtCore/QString>
38 class ConnectionPrivate;
39 class ConnectionServer;
56 explicit Connection(
QObject *parent = 0);
57 virtual ~Connection();
62 void connectToRemote(
const QString &address);
69 bool isConnected()
const;
92 bool sendnow(
int _cmd,
const QByteArray &data );
99 bool hasTaskAvailable()
const;
107 bool waitForIncomingTask(
int ms = 30000);
134 bool suspended()
const;
140 Q_PRIVATE_SLOT(d,
void dequeue())
141 Q_PRIVATE_SLOT(d,
void commandReceived(Task))
142 Q_PRIVATE_SLOT(d,
void disconnected())
143 friend class ConnectionPrivate;
144 friend class ConnectionServer;
145 class ConnectionPrivate*
const d;
148 class ConnectionServerPrivate;
154 class KIO_EXPORT ConnectionServer :
public QObject
158 ConnectionServer(
QObject *parent = 0);
165 void listenForRemote();
166 bool isListening()
const;
176 Connection *nextPendingConnection();
177 void setNextPendingConnection(Connection *conn);
179 void newConnection();
182 friend class ConnectionServerPrivate;
183 ConnectionServerPrivate *
const d;
188 #undef KIO_CONNECTION_EXPORT
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
#define KIO_CONNECTION_EXPORT
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:52 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.