WRT::UserCondition Class Reference

#include <mw/cwrt/usercondition.h>

class WRT::UserCondition : public WRT::Condition, public WRT::Condition

Inherits from

Public Member Functions
UserCondition(const QString &, unsigned int, const UserConditionHandler *, UserConditionSerializer *)
voidadd(const QString &)
virtual boolisMet(const QString &)
virtual boolpersist()
virtual voidreset()
voidupdate(unsigned int, unsigned int)
Inherited Attributes
QObject::d_ptr
QObject::objectName
QObject::staticQtMetaObject
Inherited Functions
QObject::QObject(QObjectPrivate &,QObject *)
QObject::blockSignals(bool)
QObject::childEvent(QChildEvent *)
QObject::children()const
QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)
QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)
QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const
QObject::connectNotify(const char *)
QObject::customEvent(QEvent *)
QObject::deleteLater
QObject::destroyed
QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &)
QObject::disconnect(const QObject *,const char *)
QObject::disconnect(const QObject *,const char *,const QObject *,const char *)
QObject::disconnect(const char *,const QObject *,const char *)
QObject::disconnectNotify(const char *)
QObject::dumpObjectInfo()
QObject::dumpObjectTree()
QObject::dynamicPropertyNames()const
QObject::event(QEvent *)
QObject::eventFilter(QObject *,QEvent *)
QObject::findChild(const QString &)const
QObject::findChildren(const QRegExp &)const
QObject::findChildren(const QString &)const
QObject::inherits(const char *)const
QObject::installEventFilter(QObject *)
QObject::isWidgetType()const
QObject::killTimer(int)
QObject::moveToThread(QThread *)
QObject::objectName()const
QObject::parent()const
QObject::property(const char *)const
QObject::receivers(const char *)const
QObject::registerUserData()
QObject::removeEventFilter(QObject *)
QObject::sender()const
QObject::senderSignalIndex()const
QObject::setObjectName(const QString &)
QObject::setParent(QObject *)
QObject::setProperty(const char *,const QVariant &)
QObject::setUserData(uint,QObjectUserData *)
QObject::signalsBlocked()const
QObject::startTimer(int)
QObject::thread()const
QObject::timerEvent(QTimerEvent *)
QObject::userData(uint)const
QObject::~QObject()

Detailed Description

This class represents a user condition and the current grant state

Constructor & Destructor Documentation

UserCondition ( const QString &, unsigned int, const UserConditionHandler *, UserConditionSerializer * )

UserCondition(const QString &capability,
unsigned intflags,
const UserConditionHandler *handler,
UserConditionSerializer *serializer
)

Constructor

Parameters
capability- Capability for this condition
flags- Current flags for this condition (see enum UserGrant)
handler- User Condition Handler
serializer- Condition Serializer

Member Function Documentation

add ( const QString & )

voidadd(const QString &capability)

Adds a capability to this condition

Parameters
capability- Capability to add
Return Value
void

isMet ( const QString & )

boolisMet(const QString &serviceName)[virtual]

Reimplemented from WRT::Condition::isMet(const QString &)

From Condition interface

See also: Condition::isMet()

persist ( )

boolpersist()[virtual]

Reimplemented from WRT::Condition::persist()

From Condition interface

See also: Condition::reset()

reset ( )

voidreset()[virtual]

Reimplemented from WRT::Condition::reset()

From Condition interface

See also: Condition::persist()

update ( unsigned int, unsigned int )

voidupdate(unsigned intflags,
unsigned intgrants
)

Updates the flag and grant status by doing a bitwise OR

Parameters
flags- Flags to update
grants- Grants to update
Return Value
void