• TagsStorage
  • TagsStorage Class

    (nymeaserver::TagsStorage)
    Inherits:

    Public Types

    enum TagError { TagErrorNoError, TagErrorDeviceNotFound, TagErrorRuleNotFound, TagErrorTagNotFound }

    Public Functions

    TagsStorage(DeviceManager * deviceManager, RuleEngine * ruleEngine, QObject * parent = nullptr)
    TagError addTag(const Tag & tag)
    TagError removeTag(const Tag & tag)
    QList<Tag> tags() const
    QList<Tag> tags(const DeviceId & deviceId) const
    QList<Tag> tags(const RuleId & ruleId) const

    Signals

    void tagAdded(const Tag & tag)
    void tagRemoved(const Tag & tag)
    void tagValueChanged(const Tag & tag)

    Member Type Documentation

    enum TagsStorage::TagError

    Member Function Documentation

    TagsStorage::TagsStorage(DeviceManager * deviceManager, RuleEngine * ruleEngine, QObject * parent = nullptr)

    TagError TagsStorage::addTag(const Tag & tag)

    TagError TagsStorage::removeTag(const Tag & tag)

    [signal] void TagsStorage::tagAdded(const Tag & tag)

    [signal] void TagsStorage::tagRemoved(const Tag & tag)

    [signal] void TagsStorage::tagValueChanged(const Tag & tag)

    QList<Tag> TagsStorage::tags() const

    QList<Tag> TagsStorage::tags(const DeviceId & deviceId) const

    QList<Tag> TagsStorage::tags(const RuleId & ruleId) const