X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fsignalproxy.h;h=7ffb73bbe07394ce4f1db9e6be1c3e9600a64448;hp=1090547e3fbf6909d0f55bc6e8ea8955c1c89f89;hb=018d1d001bf3c051b55525f523d933a8d694e071;hpb=a14eac175cceda16f50cb4519182f819cf7f6b23 diff --git a/src/common/signalproxy.h b/src/common/signalproxy.h index 1090547e..7ffb73bb 100644 --- a/src/common/signalproxy.h +++ b/src/common/signalproxy.h @@ -81,13 +81,13 @@ public: * so the corresponding function readDataFromDevice() can check if enough data is available * at the device to reread the item. */ - static void writeDataToDevice(QIODevice *dev, const QVariant &item); + static void writeDataToDevice(QIODevice *dev, const QVariant &item, bool compressed = false); //! Reads a data item from a device that has been written by writeDataToDevice(). /** If not enough data bytes are available, the function returns false and the QVariant reference * remains untouched. */ - static bool readDataFromDevice(QIODevice *dev, quint32 &blockSize, QVariant &item); + static bool readDataFromDevice(QIODevice *dev, quint32 &blockSize, QVariant &item, bool compressed = false); static QString methodBaseName(const QMetaMethod &method); @@ -163,7 +163,13 @@ public: private: // Hash of used QIODevices - QHash _peerByteCount; + struct peerInfo { + quint32 byteCount; + bool usesCompression; + peerInfo() : byteCount(0), usesCompression(false) {}; + }; + //QHash _peerByteCount; + QHash _peers; // containg a list of argtypes for fast access QHash _classInfo;