libQuotient
A Qt library for building matrix clients
Loading...
Searching...
No Matches
Quotient::EventFilter Struct Reference

#include <event_filter.h>

Inheritance diagram for Quotient::EventFilter:

Public Attributes

std::optional< int > limit {}
QStringList notSenders {}
QStringList notTypes {}
QStringList senders {}
 A list of senders IDs to include. If this list is absent then all senders are included.
QStringList types {}

Detailed Description

Definition at line 9 of file event_filter.h.

Member Data Documentation

◆ limit

std::optional<int> Quotient::EventFilter::limit {}

The maximum number of events to return, must be an integer greater than 0.

Servers should apply a default value, and impose a maximum value to avoid resource exhaustion.

Definition at line 14 of file event_filter.h.

◆ notSenders

QStringList Quotient::EventFilter::notSenders {}

A list of sender IDs to exclude. If this list is absent then no senders are excluded. A matching sender will be excluded even if it is listed in the 'senders' filter.

Definition at line 18 of file event_filter.h.

◆ notTypes

QStringList Quotient::EventFilter::notTypes {}

A list of event types to exclude. If this list is absent then no event types are excluded. A matching type will be excluded even if it is listed in the 'types' filter. A '*' can be used as a wildcard to match any sequence of characters.

Definition at line 23 of file event_filter.h.

◆ senders

QStringList Quotient::EventFilter::senders {}

A list of senders IDs to include. If this list is absent then all senders are included.

Definition at line 26 of file event_filter.h.

◆ types

QStringList Quotient::EventFilter::types {}

A list of event types to include. If this list is absent then all event types are included. A '*' can be used as a wildcard to match any sequence of characters.

Definition at line 30 of file event_filter.h.


The documentation for this struct was generated from the following file: