libkdegames/libkdegamesprivate/kgame
kmessageio.cpp
Go to the documentation of this file.
156 connect (mSocket, SIGNAL (error(QAbstractSocket::SocketError)), this, SIGNAL (connectionBroken()));
310 kDebug(11001) << "$$$$$$ " << ": Received" << ba.size() << "bytes over inter process communication";
313 while (mReceiveCount+ba.size()>=mReceiveBuffer.size()) mReceiveBuffer.resize(mReceiveBuffer.size()+1024);
void send(const QByteArray &msg)
This slot sends the data block in /e msg to the connected object, that will emit /e received()...
Definition: kmessageio.cpp:263
void signalReceivedStderr(QString msg)
void clear()
SocketState state() const
void received(const QByteArray &msg)
This signal is emitted when /e send() on the connected KMessageIO object is called.
void chop(int n)
bool isEmpty() const
QString toString() const
bool setSocketDescriptor(int socketDescriptor, SocketState socketState, QFlags< QIODevice::OpenModeFlag > openMode)
void send(const QByteArray &msg)
Overwritten slot method from KMessageIO.
Definition: kmessageio.cpp:92
void slotProcessExited(int, QProcess::ExitStatus)
Definition: kmessageio.cpp:357
int readRawData(char *s, int len)
void resize(int size)
This class implements the message communication using function calls directly.
Definition: kmessageio.h:294
void connectToHost(const QString &hostName, quint16 port, QFlags< QIODevice::OpenModeFlag > openMode)
void send(const QByteArray &msg)
Overwritten slot method from KMessageIO.
Definition: kmessageio.cpp:211
KMessageIO(QObject *parent=0)
The usual QObject constructor, does nothing else.
Definition: kmessageio.cpp:32
bool isConnected() const
This method returns the status of the object, whether it is already (or still) connected to another K...
Definition: kmessageio.cpp:254
bool isConnected() const
Returns true, if the object is connected to another instance.
Definition: kmessageio.cpp:206
This abstract base class represents one end of a message connections between two clients.
Definition: kmessageio.h:57
const char * constData() const
bool isConnected() const
Returns true if the socket is in state /e connected.
Definition: kmessageio.cpp:87
virtual qint64 bytesAvailable() const
KMessageDirect(KMessageDirect *partner=0, QObject *parent=0)
Creates an object and connects it to the object given in the first parameter.
Definition: kmessageio.cpp:176
KMessageProcess(QObject *parent, const QString &file)
Definition: kmessageio.cpp:233
void connectionBroken()
This signal is emitted when the connection is closed.
QString peerName() const
char * data()
QDataStream & writeBytes(const char *s, uint len)
KMessageSocket(const QString &host, quint16 port, QObject *parent=0)
Connects to a server socket on /e host with /e port.
Definition: kmessageio.cpp:51
QString fromLatin1(const char *str, int size)
quint16 peerPort() const
int size() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:54 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:18:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.