20 struct PushRulesDescPrivate;
32 std::optional<std::string>
sound;
68 std::unique_ptr<PushRulesDescPrivate> m_d;
Definition: push-rules-desc.hpp:38
bool valid() const
Check whether this PushRulesDesc is valid.
Definition: push-rules-desc.cpp:323
PushRulesDesc()
Construct an invalid PushRulesDesc.
Definition: push-rules-desc.cpp:309
PushAction handle(const Event &e, const RoomModel &room) const
Check whether we should send a notification about event e.
Definition: push-rules-desc.cpp:328
#define KAZV_DECLARE_COPYABLE(typeName)
Definition: copy-helper.hpp:10
Definition: location.hpp:10
Describe what actions are to be taken for a specific event.
Definition: push-rules-desc.hpp:26
std::optional< std::string > sound
The sound of the notification as defined in the spec.
Definition: push-rules-desc.hpp:32
bool shouldNotify
Whether the client should notify about this event.
Definition: push-rules-desc.hpp:28
bool shouldHighlight
Whether the client should highlight the event.
Definition: push-rules-desc.hpp:34
Definition: room-model.hpp:217