WRT::UserConditionHandler Class Reference

#include <mw/cwrt/userconditionhandler.h>

class WRT::UserConditionHandler
Public Member Functions
virtual ~UserConditionHandler()
pure virtual boolallow(const QString &, const CapabilityList &, unsigned int, unsigned int &)

Detailed Description

Interface class for handling conditions. For example the client that implements this can prompt the user to ask for permission to grant capabilites.

Constructor & Destructor Documentation

~UserConditionHandler ( )

~UserConditionHandler()[inline, virtual]

Member Function Documentation

allow ( const QString &, const CapabilityList &, unsigned int, unsigned int & )

boolallow(const QString &serviceName,
const CapabilityList &capabilities,
unsigned intconditions,
unsigned int &grant
)const [pure virtual]

Asks the handler whether or not the capability can be allowed

Parameters
capabilities- Capabilities requested
conditions- The conditions for these capabilities
grant- The current grant flag. This method must modify the grant flag if needed.
Return Value
TRUE if allowed, else FALSE