Public Types | Public Member Functions | Protected Member Functions

QAuthDevice Class Reference

Search for all occurrences

Detailed 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.

#include <qtransportauth_qws.h>

Inheritance diagram for QAuthDevice:
Inheritance graph
[legend]

List of all members.

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)

Member Enumeration Documentation


Constructor & Destructor Documentation


Member Function Documentation

void setTarget ( QIODevice t ) [inline]

Definition at line 208 of file qtransportauth_qws.h.

{ m_target = t; }
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]

Reimplemented from QIODevice.

Definition at line 240 of file qtransportauth_qws.h.

{
    return true;
}
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;
}
qint64 readData ( char *  ,
qint64   
) [protected, virtual]
qint64 writeData ( const char *  ,
qint64   
) [protected, virtual]

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

QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice
QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice QAuthDevice