QAuthDevice Class Reference

#include <qtransportauth_qws.h>

Class Description

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.

+ Inheritance diagram for QAuthDevice:

Public Types

enum  AuthDirection { Receive, Send }
 
- Public Types inherited from QIODevice
enum  OpenModeFlag {
  NotOpen = 0x0000, ReadOnly = 0x0001, WriteOnly = 0x0002, ReadWrite = ReadOnly | WriteOnly,
  Append = 0x0004, Truncate = 0x0008, Text = 0x0010, Unbuffered = 0x0020
}
 

Public Member Functions

 QAuthDevice (QIODevice *, QTransportAuth::Data *, AuthDirection)
 
 ~QAuthDevice ()
 
void setTarget (QIODevice *t)
 
QIODevicetarget () const
 
void setClient (QObject *)
 
QObjectclient () const
 
void setRequestAnalyzer (RequestAnalyzer *)
 
bool isSequential () const
 
bool atEnd () const
 
qint64 bytesAvailable () const
 
qint64 bytesToWrite () const
 
bool seek (qint64)
 
QByteArraybuffer ()
 
- Public Member Functions inherited from QIODevice
 QIODevice ()
 
 QIODevice (QObject *parent)
 
virtual ~QIODevice ()
 
OpenMode openMode () const
 
void setTextModeEnabled (bool enabled)
 
bool isTextModeEnabled () const
 
bool isOpen () const
 
bool isReadable () const
 
bool isWritable () const
 
virtual bool open (OpenMode mode)
 
virtual void close ()
 
virtual qint64 pos () const
 
virtual qint64 size () const
 
virtual bool reset ()
 
qint64 read (char *data, qint64 maxlen)
 
QByteArray read (qint64 maxlen)
 
QByteArray readAll ()
 
qint64 readLine (char *data, qint64 maxlen)
 
QByteArray readLine (qint64 maxlen=0)
 
virtual bool canReadLine () const
 
qint64 write (const char *data, qint64 len)
 
qint64 write (const char *data)
 
qint64 write (const QByteArray &data)
 
qint64 peek (char *data, qint64 maxlen)
 
QByteArray peek (qint64 maxlen)
 
virtual bool waitForReadyRead (int msecs)
 
virtual bool waitForBytesWritten (int msecs)
 
void ungetChar (char c)
 
bool putChar (char c)
 
bool getChar (char *c)
 
QString errorString () const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

qint64 readData (char *, qint64)
 
qint64 writeData (const char *, qint64)
 
- Protected Member Functions inherited from QIODevice
 QIODevice (QIODevicePrivate &dd, QObject *parent=0)
 
virtual qint64 readLineData (char *data, qint64 maxlen)
 
void setOpenMode (OpenMode openMode)
 
void setErrorString (const QString &errorString)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Signals inherited from QIODevice
void readyRead ()
 
void bytesWritten (qint64 bytes)
 
void aboutToClose ()
 
void readChannelFinished ()
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Member Enumeration Documentation

Enumerator
Receive 
Send 

Definition at line 202 of file qtransportauth_qws.h.

Constructor & Destructor Documentation

Member Function Documentation

void setTarget ( QIODevice t)
inline

Definition at line 208 of file qtransportauth_qws.h.

208 { m_target = t; }
GLdouble GLdouble t
Definition: GLee.h:1181
QIODevice* target ( ) const
inline

Definition at line 209 of file qtransportauth_qws.h.

209 { return m_target; }
void setClient ( QObject )
QObject* client ( ) const
void setRequestAnalyzer ( RequestAnalyzer )
bool isSequential ( ) const
inlinevirtual

Reimplemented from QIODevice.

Definition at line 240 of file qtransportauth_qws.h.

241 {
242  return true;
243 }
bool atEnd ( ) const
inlinevirtual

Reimplemented from QIODevice.

Definition at line 250 of file qtransportauth_qws.h.

251 {
252  return msgQueue.isEmpty();
253 }
bool isEmpty() const
Definition: qbytearray.h:421
qint64 bytesAvailable ( ) const
inlinevirtual

Reimplemented from QIODevice.

Definition at line 255 of file qtransportauth_qws.h.

256 {
257  if ( way == Receive )
258  return m_bytesAvailable;
259  else
260  return ( m_target ? m_target->bytesAvailable() : 0 );
261 }
virtual qint64 bytesAvailable() const
qint64 bytesToWrite ( ) const
inlinevirtual

Reimplemented from QIODevice.

Definition at line 263 of file qtransportauth_qws.h.

264 {
265  return msgQueue.size();
266 }
int size() const
Definition: qbytearray.h:402
bool seek ( qint64  )
inlinevirtual

Reimplemented from QIODevice.

Definition at line 245 of file qtransportauth_qws.h.

246 {
247  return false;
248 }
QByteArray & buffer ( )
inline

Definition at line 268 of file qtransportauth_qws.h.

269 {
270  return msgQueue;
271 }
qint64 readData ( char *  ,
qint64   
)
protectedvirtual

Implements QIODevice.

qint64 writeData ( const char *  ,
qint64   
)
protectedvirtual

Implements QIODevice.


The documentation for this class was generated from the following file: