Akonadi

core/notificationsubscriber.h
1/*
2 SPDX-FileCopyrightText: 2016 Daniel Vrátil <dvratil@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "akonadicore_export.h"
10
11#include "monitor.h"
12#include <QSet>
13
14namespace Akonadi
15{
16class NotificationSubscriberPrivate;
17
18class AKONADICORE_EXPORT NotificationSubscriber
19{
20public:
21 explicit NotificationSubscriber();
22 NotificationSubscriber(const NotificationSubscriber &other);
23 ~NotificationSubscriber();
24
25 NotificationSubscriber &operator=(const NotificationSubscriber &other);
26
27 bool isValid() const;
28
29 QByteArray subscriber() const;
30 void setSubscriber(const QByteArray &subscriber);
31
32 QByteArray sessionId() const;
33 void setSessionId(const QByteArray &sessionId);
34
35 QSet<qint64> monitoredCollections() const;
36 void setMonitoredCollections(const QSet<qint64> &collections);
37
38 QSet<qint64> monitoredItems() const;
39 void setMonitoredItems(const QSet<qint64> &items);
40
41 QSet<qint64> monitoredTags() const;
42 void setMonitoredTags(const QSet<qint64> &tags);
43
44 QSet<Monitor::Type> monitoredTypes() const;
45 void setMonitoredTypes(const QSet<Monitor::Type> &type);
46
47 QSet<QString> monitoredMimeTypes() const;
48 void setMonitoredMimeTypes(const QSet<QString> &mimeTypes);
49
50 QSet<QByteArray> monitoredResources() const;
51 void setMonitoredResources(const QSet<QByteArray> &resources);
52
53 QSet<QByteArray> ignoredSessions() const;
54 void setIgnoredSessions(const QSet<QByteArray> &ignoredSessions);
55
56 bool isAllMonitored() const;
57 void setIsAllMonitored(bool isAllMonitored);
58
59 bool isExclusive() const;
60 void setIsExclusive(bool isExclusive);
61
62 ItemFetchScope itemFetchScope() const;
63 void setItemFetchScope(const ItemFetchScope &itemFetchScope);
64
65 CollectionFetchScope collectionFetchScope() const;
66 void setCollectionFetchScope(const CollectionFetchScope &collectionFetchScope);
67
68 TagFetchScope tagFetchScope() const;
69 void setTagFetchScope(const TagFetchScope &tagFetchScope);
70
71private:
73};
74
75}
Helper integration between Akonadi and Qt.
bool isValid(QStringView ifopt)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 11:58:37 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.