Torc  0.1
Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Slots | Properties | Friends | List of all members
TorcUser Class Reference

#include <torcuser.h>

Inheritance diagram for TorcUser:
[legend]

Public Slots

void SubscriberDeleted (QObject *Subscriber)
 
QString GetUserName (void)
 
bool SetUserCredentials (const QString &Name, const QString &Credentials)
 
bool GetCanRestartTorc (void)
 
void RestartTorc (void)
 
void StopTorc (void)
 
bool GetCanStopTorc (void)
 

Public Member Functions

 TorcUser ()
 
 ~TorcUser ()
 
- Public Member Functions inherited from TorcHTTPService
 TorcHTTPService (QObject *Parent, const QString &Signature, const QString &Name, const QMetaObject &MetaObject, const QString &Blacklist=QStringLiteral(""))
 
virtual ~TorcHTTPService ()
 
void ProcessHTTPRequest (const QString &PeerAddress, int PeerPort, const QString &LocalAddress, int LocalPort, TorcHTTPRequest &Request) override
 
QVariantMap ProcessRequest (const QString &Method, const QVariant &Parameters, QObject *Connection, bool Authenticated) override
 
QString GetMethod (int Index)
 
QVariant GetProperty (int Index)
 Get the value of a given property. More...
 
QVariantMap GetServiceDetails (void)
 Return a QVariantMap describing the services methods and properties. More...
 
virtual QString GetUIName (void)
 
virtual QString GetPresentationURL (void)
 
- Public Member Functions inherited from TorcHTTPHandler
 TorcHTTPHandler (const QString &Signature, const QString &Name)
 
virtual ~TorcHTTPHandler ()
 
QString Signature (void) const
 
bool GetRecursive (void) const
 
QString Name (void) const
 

Static Public Member Functions

static QByteArray GetCredentials (void)
 
static QString GetName (void)
 

Static Public Attributes

static QString gUserName = QStringLiteral()
 
static QByteArray gUserCredentials = QByteArray()
 
static QMutex gUserCredentialsLock
 

Protected Slots

void UpdateUserName (QString &Name)
 
void UpdateCredentials (QString &Credentials)
 

Properties

bool canRestartTorc
 
bool canStopTorc
 
QString userName
 

Friends

class TorcHTTPServer
 

Additional Inherited Members

- Protected Member Functions inherited from TorcHTTPService
void HandleSubscriberDeleted (QObject *Subscriber)
 
- Static Protected Member Functions inherited from TorcHTTPHandler
static bool MethodIsAuthorised (TorcHTTPRequest &Request, int Allowed)
 Check the current request is authorised and set the authentication header if not. More...
 
static void HandleOptions (TorcHTTPRequest &Request, int Allowed)
 
static void HandleFile (TorcHTTPRequest &Request, const QString &Filename, int Cache)
 
- Protected Attributes inherited from TorcHTTPService
QReadWriteLock m_httpServiceLock
 
- Protected Attributes inherited from TorcHTTPHandler
QString m_signature
 
bool m_recursive
 
QString m_name
 

Detailed Description

Definition at line 11 of file torcuser.h.

Constructor & Destructor Documentation

TorcUser::TorcUser ( )

Definition at line 41 of file torcuser.cpp.

TorcUser::~TorcUser ( )

Definition at line 61 of file torcuser.cpp.

Member Function Documentation

bool TorcUser::GetCanRestartTorc ( void  )
slot

Definition at line 158 of file torcuser.cpp.

bool TorcUser::GetCanStopTorc ( void  )
slot

Definition at line 146 of file torcuser.cpp.

QByteArray TorcUser::GetCredentials ( void  )
static

Definition at line 81 of file torcuser.cpp.

QString TorcUser::GetName ( void  )
static

Definition at line 69 of file torcuser.cpp.

QString TorcUser::GetUserName ( void  )
slot

Definition at line 75 of file torcuser.cpp.

void TorcUser::RestartTorc ( void  )
slot

Definition at line 152 of file torcuser.cpp.

bool TorcUser::SetUserCredentials ( const QString &  Name,
const QString &  Credentials 
)
slot

Definition at line 100 of file torcuser.cpp.

void TorcUser::StopTorc ( void  )
slot

Definition at line 141 of file torcuser.cpp.

void TorcUser::SubscriberDeleted ( QObject *  Subscriber)
slot

Definition at line 136 of file torcuser.cpp.

void TorcUser::UpdateCredentials ( QString &  Credentials)
protectedslot

Definition at line 94 of file torcuser.cpp.

void TorcUser::UpdateUserName ( QString &  Name)
protectedslot

Definition at line 87 of file torcuser.cpp.

Friends And Related Function Documentation

friend class TorcHTTPServer
friend

Definition at line 21 of file torcuser.h.

Member Data Documentation

QByteArray TorcUser::gUserCredentials = QByteArray()
static

Definition at line 47 of file torcuser.h.

QMutex TorcUser::gUserCredentialsLock
static

Definition at line 48 of file torcuser.h.

QString TorcUser::gUserName = QStringLiteral()
static

Definition at line 46 of file torcuser.h.

Property Documentation

bool TorcUser::canRestartTorc
read

Definition at line 17 of file torcuser.h.

bool TorcUser::canStopTorc
read

Definition at line 18 of file torcuser.h.

QString TorcUser::userName
read

Definition at line 19 of file torcuser.h.


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