24 #ifndef BLOBIOHANDLER_H 25 #define BLOBIOHANDLER_H 29 #include <QVariantMap> 30 #include <QSocketNotifier> 40 QIODevice *outputChannel,
43 bool sendData(
const QVariantMap &map);
45 void receiveData(
int expectedDataSize);
47 void setReadChannelSocketNotifier(QSocketNotifier *notifier);
53 void dataReceived(
const QVariantMap &map);
57 void setReadNotificationEnabled(
bool enable);
59 QByteArray variantMapToByteArray(
const QVariantMap &map);
60 QVariantMap byteArrayToVariantMap(
const QByteArray &array);
61 QVector<QByteArray> pageByteArray(
const QByteArray &array);
64 QIODevice *m_readChannel;
65 QIODevice *m_writeChannel;
66 QByteArray m_blobBuffer;
67 QSocketNotifier *m_readNotifier;
73 #endif //BLOBIOHANDLER_H
Error codes for ui interaction.