Describes an action for a nymeaserver::Rule. More...
Header: | #include <RuleAction> |
enum | Type { TypeDevice, TypeInterface } |
RuleAction(const ActionTypeId & actionTypeId = ActionTypeId(), const DeviceId & deviceId = DeviceId(), const RuleActionParamList & params = RuleActionParamList()) | |
RuleAction(const QString & interface, const QString & interfaceAction, const RuleActionParamList & params = RuleActionParamList()) | |
RuleAction(const RuleAction & other) | |
ActionTypeId | actionTypeId() const |
DeviceId | deviceId() const |
ActionId | id() const |
QString | interface() const |
QString | interfaceAction() const |
bool | isEventBased() const |
bool | isStateBased() const |
bool | isValid() const |
RuleActionParam | ruleActionParam(const ParamTypeId & ruleActionParamTypeId) const |
RuleActionParam | ruleActionParam(const QString & ruleActionParamName) const |
RuleActionParamList | ruleActionParams() const |
void | setRuleActionParams(const RuleActionParamList & ruleActionParams) |
Action | toAction() const |
Type | type() const |
void | operator=(const RuleAction & other) |
Describes an action for a nymeaserver::Rule.
A RuleAction describes a special form of an Action for a nymeaserver::Rule. The main difference is the RuleActionParam, which allows to use an EventTypeId within a nymeaserver::Rule to execute this RuleAction.
See also nymeaserver::Rule and RuleActionParam.
Constant | Value | Description |
---|---|---|
RuleAction::TypeDevice | 0 | The RuleAction describes a device Action. |
RuleAction::TypeInterface | 1 | The RuleAction describes an interface based Action. |
Constructs a RuleAction with the given by actionTypeId, deviceId and params.
Constructs a RuleAction with the given by interface and interfaceAction.
Constructs a copy of the given other RuleAction.
Returns the actionTypeId of this RuleAction.
Returns the deviceId of this RuleAction.
Return the ActionId of this RuleAction.
Returns the name of the interface associated with this RuleAction.
Returns the name of the action of the associated interface.
Return true, if this RuleAction contains a RuleActionParam which is based on an EventTypeId.
Return true, if the actionTypeId and the deviceId of this RuleAction are valid (set).
Returns the RuleActionParam of this RuleAction with the given ruleActionParamTypeId. If there is no RuleActionParam with th given id an invalid RuleActionParam will be returnend.
See also RuleActionParam.
Returns the RuleActionParam of this RuleAction with the given ruleActionParamName. If there is no RuleActionParam with th given name an invalid RuleActionParam will be returnend.
See also RuleActionParam.
Returns the RuleActionParamList of this RuleAction.
See also setRuleActionParams() and RuleActionParam.
Set the RuleActionParamList of this RuleAction to the given ruleActionParams.
See also ruleActionParams() and RuleActionParam.
Converts this RuleAction to a normal Action.
See also Action.
Returns whether this RuleAction is targetting a specific device or rather an interface.
Copy the data to a RuleAction from an other rule action.