Pass-through QIODevice sub-class for authentication.
Use this class to forward on or receive forwarded data over a real device for authentication.
Definition at line 198 of file qtransportauth_qws.h.
#include <qtransportauth_qws.h>

Public Types |
|
| enum | AuthDirection { Receive, Send } |
Public Member Functions |
|
| QAuthDevice (QIODevice *, QTransportAuth::Data *, AuthDirection) | |
| ~QAuthDevice () | |
| void | setTarget (QIODevice *t) |
| QIODevice * | target () const |
| void | setClient (QObject *) |
| QObject * | client () const |
| void | setRequestAnalyzer (RequestAnalyzer *) |
| bool | isSequential () const |
| bool | atEnd () const |
| qint64 | bytesAvailable () const |
| qint64 | bytesToWrite () const |
| bool | seek (qint64) |
| QByteArray & | buffer () |
Protected Member Functions |
|
| qint64 | readData (char *, qint64) |
| qint64 | writeData (const char *, qint64) |
| enum AuthDirection |
Definition at line 202 of file qtransportauth_qws.h.
| QAuthDevice | ( | QIODevice * | , |
| QTransportAuth::Data * | , | ||
| AuthDirection | |||
| ) |
| ~QAuthDevice | ( | ) |
| void setTarget | ( | QIODevice * | t | ) | [inline] |
| QIODevice* target | ( | ) | const [inline] |
Definition at line 209 of file qtransportauth_qws.h.
{ return m_target; }
| void setClient | ( | QObject * | ) |
| QObject* client | ( | ) | const |
| void setRequestAnalyzer | ( | RequestAnalyzer * | ) |
| bool isSequential | ( | ) | const [inline, virtual] |
| bool atEnd | ( | ) | const [inline, virtual] |
Reimplemented from QIODevice.
Definition at line 250 of file qtransportauth_qws.h.
{
return msgQueue.isEmpty();
}
| qint64 bytesAvailable | ( | ) | const [inline, virtual] |
Reimplemented from QIODevice.
Definition at line 255 of file qtransportauth_qws.h.
{
if ( way == Receive )
return m_bytesAvailable;
else
return ( m_target ? m_target->bytesAvailable() : 0 );
}
| qint64 bytesToWrite | ( | ) | const [inline, virtual] |
Reimplemented from QIODevice.
Definition at line 263 of file qtransportauth_qws.h.
{
return msgQueue.size();
}
| bool seek | ( | qint64 | ) | [inline, virtual] |
Reimplemented from QIODevice.
Definition at line 245 of file qtransportauth_qws.h.
{
return false;
}
| QByteArray & buffer | ( | ) | [inline] |
Definition at line 268 of file qtransportauth_qws.h.
{
return msgQueue;
}
Implements QIODevice.
Implements QIODevice.