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);
67 QString errorString()
const;
69 bool isConnected()
const;
84 bool send(
int cmd,
const QByteArray &arr = QByteArray());
92 bool sendnow(
int _cmd,
const QByteArray &data );
99 bool hasTaskAvailable()
const;
107 bool waitForIncomingTask(
int ms = 30000);
118 int read(
int* _cmd, QByteArray &data );
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;
174 QString address()
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
#define KIO_CONNECTION_EXPORT
A namespace for KIO globals.
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by
doxygen 1.9.6 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.