qredisclient
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
RedisClient::Response Class Reference

Public Types

enum  Type {
  Status, Error, Integer, Bulk,
  MultiBulk, Unknown
}
 

Public Member Functions

 Response (const QByteArray &)
 
QVariant getValue ()
 
Type getType () const
 
QByteArray source () const
 
QString toRawString () const
 
bool isEmpty () const
 
bool isErrorMessage () const
 
bool isErrorStateMessage () const
 
bool isDisabledCommandErrorMessage () const
 
bool isOkMessage () const
 
bool isValid ()
 
bool isMessage () const
 
bool isArray () const
 
bool hasUnusedBuffer () const
 
QByteArray getChannel () const
 
bool isAskRedirect () const
 
bool isMovedRedirect () const
 
QByteArray getRedirectionHost () const
 
uint getRedirectionPort () const
 
void setSource (const QByteArray &)
 
void appendToSource (const QByteArray &)
 
QByteArray getUnusedBuffer ()
 
void reset ()
 

Static Public Member Functions

static QString valueToHumanReadString (const QVariant &, int indentLevel=0)
 

Protected Member Functions

Type getResponseType (const QByteArray &) const
 
Type getResponseType (const char) const
 
bool parse ()
 
void feed (const QByteArray &buffer)
 

Protected Attributes

QByteArray m_responseSource
 
QSharedPointer< redisReader > m_redisReader
 
QSharedPointer< QVariant > m_result
 
Inheritance diagram for RedisClient::Response:
RedisClient::ScanResponse

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