KIO
connection.cpp
Go to the documentation of this file.
207 QString prefix = KStandardDirs::locateLocal("socket", KGlobal::mainComponent().componentName());
QString i18n(const char *text)
~AbstractConnectionBackend()
Definition: connection.cpp:114
Definition: connection_p.h:29
void commandReceived(const Task &task)
SocketState state() const
void setPrefix(const QString &prefix)
bool remove()
virtual KLocalSocket * nextPendingConnection()
QString host() const
bool isEmpty() const
void newConnection()
int port() const
void setSuffix(const QString &suffix)
bool isListening() const
static QDebug kDebug(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
QString prefix()
virtual qint64 bytesToWrite() const
QString errorString() const
void connectToHost(const QString &hostName, quint16 port, QFlags< QIODevice::OpenModeFlag > openMode)
bool waitForIncomingTask(int ms)
Definition: connection.cpp:251
int elapsed() const
void setProtocol(const QString &proto)
QString number(int n, int base)
QString localPath() const
Definition: connection_p.h:34
bool isNull() const
QString protocol() const
bool listen(const QHostAddress &address, quint16 port)
virtual bool waitForBytesWritten(int msecs)
~SocketConnectionBackend()
Definition: connection.cpp:126
KLocalSocket::LocalSocketType localSocketType() const
virtual AbstractConnectionBackend * nextPendingConnection()=0
virtual qint64 bytesAvailable() const
void setSuspended(bool enable)
Definition: connection.cpp:133
qint64 read(char *data, qint64 maxSize)
enum KIO::AbstractConnectionBackend::@0 state
QString path(AdjustPathOption trailing=LeaveTrailingSlash) const
QString errorString() const
void setParent(QObject *parent)
quint16 serverPort() const
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
virtual QTcpSocket * nextPendingConnection()
QString fileName() const
KLocalSocketServer * localServer
Definition: connection_p.h:69
static QString locateLocal(const char *type, const QString &filename, const KComponentData &cData=KGlobal::mainComponent())
void connectToPath(const QString &path, OpenMode mode=ReadWrite)
Definition: connection_p.h:58
SocketConnectionBackend(Mode m, QObject *parent=0)
Definition: connection.cpp:118
const KComponentData & mainComponent()
static QDebug kWarning(bool cond, int area=KDE_DEFAULT_DEBUG_AREA)
bool sendCommand(const Task &task)
Definition: connection.cpp:282
qint64 write(const char *data, qint64 maxSize)
AbstractConnectionBackend(QObject *parent=0)
Definition: connection.cpp:109
bool waitForConnected(int msecs)
void start()
bool connectToRemote(const KUrl &url)
Definition: connection.cpp:160
QString url(AdjustPathOption trailing=LeaveTrailingSlash) const
void socketDisconnected()
Definition: connection.cpp:194
AbstractConnectionBackend * nextPendingConnection()
Definition: connection.cpp:303
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
LocalSocketType
void ungetChar(char c)
bool open()
virtual bool waitForReadyRead(int msecs)
void disconnected()
KAction * close(const QObject *recvr, const char *slot, QObject *parent)
QString queryItem(const QString &item) const
bool listen(const QString &path, KLocalSocket::LocalSocketType type=KLocalSocket::UnixSocket)
void setReadBufferSize(qint64 size)
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
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.