Go to the documentation of this file.
18 std::vector<std::string>
splitPath(std::string path);
20 bool matchGlob(std::string target, std::string pattern);
22 std::pair<bool, json>
validateRule(std::string ruleSetName,
const json &rule);
34 std::optional<std::pair<std::string, json>>
matchRuleSet(std::string ruleSetName,
const Event &e,
const RoomModel &room)
const;
std::optional< std::pair< std::string, json > > matchRule(const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:206
std::optional< std::pair< std::string, json > > matchRuleSet(std::string ruleSetName, const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:217
PushRulesDescPrivate(const Event &e)
Definition: push-rules-desc.cpp:202
Describe what actions are to be taken for a specific event.
Definition: push-rules-desc.hpp:25
Definition: push-rules-desc-p.hpp:26
Definition: location.hpp:10
Event validatePushRules(const Event &e)
Definition: push-rules-desc.cpp:169
PushAction handleRule(std::string ruleSetName, const json &rule, const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:279
Definition: room-model.hpp:209
std::pair< bool, json > validateRule(std::string ruleSetName, const json &rule)
Definition: push-rules-desc.cpp:145
nlohmann::json json
Definition: jsonwrap.hpp:20
Event pushRulesEvent
Definition: push-rules-desc-p.hpp:30
std::vector< std::string > splitPath(std::string path)
Definition: push-rules-desc.cpp:35
bool matchP(std::string ruleSetName, const json &rule, const Event &e, const RoomModel &room) const
Definition: push-rules-desc.cpp:228
bool matchGlob(std::string target, std::string pattern)
Definition: push-rules-desc.cpp:46