mirror of
https://github.com/QuasarApp/qca.git
synced 2025-05-13 19:19:33 +00:00
cms bytes written signal
svn path=/trunk/kdesupport/qca/; revision=699474
This commit is contained in:
parent
926f2bab06
commit
c9cfdf7208
@ -5722,6 +5722,7 @@ public:
|
|||||||
SecureMessage::Format format;
|
SecureMessage::Format format;
|
||||||
|
|
||||||
Operation op;
|
Operation op;
|
||||||
|
bool _finished;
|
||||||
|
|
||||||
QByteArray in, out;
|
QByteArray in, out;
|
||||||
QByteArray sig;
|
QByteArray sig;
|
||||||
@ -5788,6 +5789,7 @@ public:
|
|||||||
virtual void start(SecureMessage::Format f, Operation op)
|
virtual void start(SecureMessage::Format f, Operation op)
|
||||||
{
|
{
|
||||||
format = f;
|
format = f;
|
||||||
|
_finished = false;
|
||||||
|
|
||||||
// TODO: other operations
|
// TODO: other operations
|
||||||
//if(op == Sign)
|
//if(op == Sign)
|
||||||
@ -5804,6 +5806,7 @@ public:
|
|||||||
{
|
{
|
||||||
this->in.append(in);
|
this->in.append(in);
|
||||||
total += in.size();
|
total += in.size();
|
||||||
|
QMetaObject::invokeMethod(this, "updated", Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual QByteArray read()
|
virtual QByteArray read()
|
||||||
@ -5820,6 +5823,8 @@ public:
|
|||||||
|
|
||||||
virtual void end()
|
virtual void end()
|
||||||
{
|
{
|
||||||
|
_finished = true;
|
||||||
|
|
||||||
// sign
|
// sign
|
||||||
if(op == Sign)
|
if(op == Sign)
|
||||||
{
|
{
|
||||||
@ -6136,8 +6141,7 @@ public:
|
|||||||
|
|
||||||
virtual bool finished() const
|
virtual bool finished() const
|
||||||
{
|
{
|
||||||
// TODO
|
return _finished;
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual bool waitForFinished(int msecs)
|
virtual bool waitForFinished(int msecs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user