Torc  0.1
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
MethodParameters Class Reference

Public Member Functions

 MethodParameters (int Index, QMetaMethod Method, int AllowedRequestTypes, const QString &ReturnType)
 
 ~MethodParameters ()=default
 
QVariant Invoke (QObject *Object, const QMap< QString, QString > &Queries, QString &ReturnType, bool &VoidResult)
 Call the stored method with the arguments passed in via Queries. More...
 
void Disable (void)
 Disable this method. More...
 
void Enable (void)
 Enable this method. More...
 

Static Public Member Functions

static void SetValue (void *Pointer, const QString &Value, int Type)
 
static bool ToBool (const QString &Value)
 

Public Attributes

bool m_valid
 
int m_index
 
QVector< QByteArray > m_names
 
QVector< int > m_types
 
int m_allowedRequestTypes
 
QString m_returnType
 
QMetaMethod m_method
 

Detailed Description

Definition at line 41 of file torchttpservice.cpp.

Constructor & Destructor Documentation

MethodParameters::MethodParameters ( int  Index,
QMetaMethod  Method,
int  AllowedRequestTypes,
const QString &  ReturnType 
)
inline

Definition at line 44 of file torchttpservice.cpp.

MethodParameters::~MethodParameters ( )
default

Member Function Documentation

void MethodParameters::Disable ( void  )
inline

Disable this method.

Definition at line 235 of file torchttpservice.cpp.

void MethodParameters::Enable ( void  )
inline

Enable this method.

Definition at line 242 of file torchttpservice.cpp.

QVariant MethodParameters::Invoke ( QObject *  Object,
const QMap< QString, QString > &  Queries,
QString &  ReturnType,
bool &  VoidResult 
)
inline

Call the stored method with the arguments passed in via Queries.

Note
Invoke is not thread safe and any method exposed using this class MUST ensure thread safety.

Definition at line 120 of file torchttpservice.cpp.

static void MethodParameters::SetValue ( void *  Pointer,
const QString &  Value,
int  Type 
)
inlinestatic

Definition at line 183 of file torchttpservice.cpp.

static bool MethodParameters::ToBool ( const QString &  Value)
inlinestatic

Definition at line 220 of file torchttpservice.cpp.

Member Data Documentation

int MethodParameters::m_allowedRequestTypes

Definition at line 252 of file torchttpservice.cpp.

int MethodParameters::m_index

Definition at line 249 of file torchttpservice.cpp.

QMetaMethod MethodParameters::m_method

Definition at line 254 of file torchttpservice.cpp.

QVector<QByteArray> MethodParameters::m_names

Definition at line 250 of file torchttpservice.cpp.

QString MethodParameters::m_returnType

Definition at line 253 of file torchttpservice.cpp.

QVector<int> MethodParameters::m_types

Definition at line 251 of file torchttpservice.cpp.

bool MethodParameters::m_valid

Definition at line 248 of file torchttpservice.cpp.


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