SigningTS/client/buffer.cpp
author John Kern <johnk@symbian.org>
Thu, 26 Aug 2010 14:34:34 -0700
changeset 40 edc0144719a1
parent 17 cad8819de653
permissions -rw-r--r--
removed invariant from data() and rowCount(). Performance should be ok now.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     1
#include <QNetworkReply>
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     2
#include <QtDebug>
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     3
#include "buffer.h"
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     4
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     5
void Buffer::replyFinished(QNetworkReply *reply)
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     6
{
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     7
    QByteArray data = reply->readAll();
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     8
    qDebug() << "result: " << data << endl;
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
     9
    reply->deleteLater();
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
    10
}
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
    11
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
    12
Buffer::Buffer(QObject *parent) :
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
    13
    QObject(parent)
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
    14
{
cad8819de653 adding preliminary code; very much a work in progress; it is too difficult to work on the file system any longer
John Kern <johnk@symbian.org>
parents:
diff changeset
    15
}