Go to the documentation of this file.
20 struct PushRulesDescPrivate;
32 std::optional<std::string>
sound;
68 std::unique_ptr<PushRulesDescPrivate> m_d;
bool shouldNotify
Whether the client should notify about this event.
Definition: push-rules-desc.hpp:28
Describe what actions are to be taken for a specific event.
Definition: push-rules-desc.hpp:25
Definition: location.hpp:10
std::optional< std::string > sound
The sound of the notification as defined in the spec.
Definition: push-rules-desc.hpp:32
#define KAZV_DECLARE_COPYABLE(typeName)
Definition: copy-helper.hpp:10
Definition: room-model.hpp:209
Definition: push-rules-desc.hpp:37
PushRulesDesc()
Construct an invalid PushRulesDesc.
Definition: push-rules-desc.cpp:309
bool shouldHighlight
Whether the client should highlight the event.
Definition: push-rules-desc.hpp:34
bool valid() const
Check whether this PushRulesDesc is valid.
Definition: push-rules-desc.cpp:323
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