internal representation of a transaction More...
#include <proctrans.h>
Public Types | |
enum | AuthMode { Checked, Auth, Open } |
authentication mode More... | |
Public Member Functions | |
WocTransaction (const QDomElement &) | |
initializes a transaction from XML | |
bool | isValid () const |
returns whether parsing it was successful | |
QString | name () const |
returns the name of the transaction | |
bool | hasInput (QString v) const |
returns whether an input variable exists | |
QStringList | inputNames () const |
returns the names of all inputs in the order of definition | |
QString | inputType (QString) const |
returns the type of an input variable | |
bool | hasOutput (QString v) const |
returns whether an output variable exists | |
QStringList | outputNames () const |
returns the names of all outputs in the order of definition | |
QString | outputType (QString) const |
returns the type of an output variable | |
bool | hasCall (QString c) const |
returns whether a specific language binding exists for a call | |
QString | callFunction (QString c) const |
returns the called function | |
QString | callInclude (QString c) const |
returns the include file of the called function | |
AuthMode | authMode () const |
QString | typeSerializer (QString t) const |
returns the XML serializer for Object types | |
QStringList | docStrings () const |
return the documentation of the transaction | |
QString | inputDoc (QString v) const |
return docu of input element | |
QString | outputDoc (QString v) const |
return docu of output element | |
QString | privilegeDoc (QString p) const |
return docu of a privilege | |
QStringList | privileges () const |
return privileges that exist inside this transaction | |
bool | isDbUpdating () const |
returns whether this transaction is considered to update the database | |
Static Public Member Functions | |
static bool | isListType (QString t) |
returns true if the type given is a list | |
static QString | plainType (QString t) |
returns the type without list or xml qualifiers | |
static bool | isIntType (QString t) |
returns true if the type is integer | |
static bool | isBoolType (QString t) |
returns true if the type is boolean | |
static bool | isStringType (QString t) |
returns true if the type is a string | |
static bool | isBlobType (QString t) |
returns true if the type is a blob | |
static bool | isAttributeType (QString t) |
returns true if the type is to be encoded as attribute | |
static bool | isElementType (QString t) |
returns true if the type is to be encoded as element | |
static bool | isObjectType (QString t) |
return true if the type is an object type | |
Private Attributes | |
QString | m_name |
bool | m_valid |
bool | m_update |
AuthMode | m_mode |
QMap< QString, QPair< QString, QString > > | m_call |
QList< QPair< QString, QString > > | m_input |
QList< QPair< QString, QString > > | m_output |
QStringList | m_privileges |
QStringList | m_docstrings |
QMap< QString, QString > | m_indoc |
QMap< QString, QString > | m_outdoc |
QMap< QString, QString > | m_privdoc |
internal representation of a transaction
WocTransaction::WocTransaction | ( | const QDomElement & | root | ) |
initializes a transaction from XML
AuthMode WocTransaction::authMode | ( | ) | const [inline] |
QString WocTransaction::callFunction | ( | QString | c | ) | const [inline] |
returns the called function
QString WocTransaction::callInclude | ( | QString | c | ) | const [inline] |
returns the include file of the called function
QStringList WocTransaction::docStrings | ( | ) | const [inline] |
return the documentation of the transaction
bool WocTransaction::hasCall | ( | QString | c | ) | const [inline] |
returns whether a specific language binding exists for a call
bool WocTransaction::hasInput | ( | QString | v | ) | const |
returns whether an input variable exists
bool WocTransaction::hasOutput | ( | QString | v | ) | const |
returns whether an output variable exists
QString WocTransaction::inputDoc | ( | QString | v | ) | const [inline] |
return docu of input element
QStringList WocTransaction::inputNames | ( | ) | const |
returns the names of all inputs in the order of definition
QString WocTransaction::inputType | ( | QString | v | ) | const |
returns the type of an input variable
static bool WocTransaction::isAttributeType | ( | QString | t | ) | [inline, static] |
returns true if the type is to be encoded as attribute
static bool WocTransaction::isBlobType | ( | QString | t | ) | [inline, static] |
returns true if the type is a blob
static bool WocTransaction::isBoolType | ( | QString | t | ) | [inline, static] |
returns true if the type is boolean
bool WocTransaction::isDbUpdating | ( | ) | const [inline] |
returns whether this transaction is considered to update the database
static bool WocTransaction::isElementType | ( | QString | t | ) | [inline, static] |
returns true if the type is to be encoded as element
static bool WocTransaction::isIntType | ( | QString | t | ) | [inline, static] |
returns true if the type is integer
static bool WocTransaction::isListType | ( | QString | t | ) | [inline, static] |
returns true if the type given is a list
static bool WocTransaction::isObjectType | ( | QString | t | ) | [inline, static] |
return true if the type is an object type
static bool WocTransaction::isStringType | ( | QString | t | ) | [inline, static] |
returns true if the type is a string
bool WocTransaction::isValid | ( | ) | const [inline] |
returns whether parsing it was successful
QString WocTransaction::name | ( | ) | const [inline] |
returns the name of the transaction
QString WocTransaction::outputDoc | ( | QString | v | ) | const [inline] |
return docu of output element
QStringList WocTransaction::outputNames | ( | ) | const |
returns the names of all outputs in the order of definition
QString WocTransaction::outputType | ( | QString | v | ) | const |
returns the type of an output variable
static QString WocTransaction::plainType | ( | QString | t | ) | [inline, static] |
returns the type without list or xml qualifiers
QString WocTransaction::privilegeDoc | ( | QString | p | ) | const [inline] |
return docu of a privilege
QStringList WocTransaction::privileges | ( | ) | const [inline] |
return privileges that exist inside this transaction
QString WocTransaction::typeSerializer | ( | QString | t | ) | const [inline] |
returns the XML serializer for Object types
QMap<QString,QPair<QString,QString> > WocTransaction::m_call [private] |
QStringList WocTransaction::m_docstrings [private] |
QMap<QString,QString> WocTransaction::m_indoc [private] |
QList<QPair<QString,QString> > WocTransaction::m_input [private] |
AuthMode WocTransaction::m_mode [private] |
QString WocTransaction::m_name [private] |
QMap<QString,QString> WocTransaction::m_outdoc [private] |
QList<QPair<QString,QString> > WocTransaction::m_output [private] |
QMap<QString,QString> WocTransaction::m_privdoc [private] |
QStringList WocTransaction::m_privileges [private] |
bool WocTransaction::m_update [private] |
bool WocTransaction::m_valid [private] |