Changeset View
Changeset View
Standalone View
Standalone View
src/private/scope_p.h
Show All 23 Lines | |||||
24 | #define AKONADI_PRIVATE_SCOPE_P_H | 24 | #define AKONADI_PRIVATE_SCOPE_P_H | ||
25 | 25 | | |||
26 | #include "akonadiprivate_export.h" | 26 | #include "akonadiprivate_export.h" | ||
27 | 27 | | |||
28 | #include <QSharedDataPointer> | 28 | #include <QSharedDataPointer> | ||
29 | 29 | | |||
30 | #include <QString> | 30 | #include <QString> | ||
31 | class QStringList; | 31 | class QStringList; | ||
32 | class QTextStream; | ||||
32 | 33 | | |||
33 | namespace Akonadi | 34 | namespace Akonadi | ||
34 | { | 35 | { | ||
35 | class ImapSet; | 36 | class ImapSet; | ||
36 | class ImapInterval; | 37 | class ImapInterval; | ||
37 | 38 | | |||
38 | namespace Protocol | 39 | namespace Protocol | ||
39 | { | 40 | { | ||
Show All 21 Lines | 58 | public: | |||
61 | HRID(HRID &&other); | 62 | HRID(HRID &&other); | ||
62 | 63 | | |||
63 | HRID &operator=(const HRID &other); | 64 | HRID &operator=(const HRID &other); | ||
64 | HRID &operator=(HRID &&other); | 65 | HRID &operator=(HRID &&other); | ||
65 | 66 | | |||
66 | bool isEmpty() const; | 67 | bool isEmpty() const; | ||
67 | bool operator==(const HRID &other) const; | 68 | bool operator==(const HRID &other) const; | ||
68 | 69 | | |||
70 | QTextStream &toJson(QTextStream &stream) const; | ||||
71 | | ||||
69 | qint64 id; | 72 | qint64 id; | ||
70 | QString remoteId; | 73 | QString remoteId; | ||
71 | }; | 74 | }; | ||
72 | 75 | | |||
73 | explicit Scope(); | 76 | explicit Scope(); | ||
74 | Scope(SelectionScope scope, const QStringList &ids); | 77 | Scope(SelectionScope scope, const QStringList &ids); | ||
75 | 78 | | |||
76 | /* UID */ | 79 | /* UID */ | ||
Show All 28 Lines | |||||
105 | 108 | | |||
106 | void setGidSet(const QStringList &gidChain); | 109 | void setGidSet(const QStringList &gidChain); | ||
107 | QStringList gidSet() const; | 110 | QStringList gidSet() const; | ||
108 | 111 | | |||
109 | qint64 uid() const; | 112 | qint64 uid() const; | ||
110 | QString rid() const; | 113 | QString rid() const; | ||
111 | QString gid() const; | 114 | QString gid() const; | ||
112 | 115 | | |||
116 | QTextStream &toJson(QTextStream &stream) const; | ||||
113 | private: | 117 | private: | ||
114 | QSharedDataPointer<ScopePrivate> d; | 118 | QSharedDataPointer<ScopePrivate> d; | ||
115 | friend class ScopePrivate; | 119 | friend class ScopePrivate; | ||
116 | 120 | | |||
117 | friend Protocol::DataStream &operator<<(Protocol::DataStream &stream, const Akonadi::Scope &scope); | 121 | friend Protocol::DataStream &operator<<(Protocol::DataStream &stream, const Akonadi::Scope &scope); | ||
118 | friend Protocol::DataStream &operator>>(Protocol::DataStream &stream, Akonadi::Scope &scope); | 122 | friend Protocol::DataStream &operator>>(Protocol::DataStream &stream, Akonadi::Scope &scope); | ||
119 | }; | 123 | }; | ||
120 | 124 | | |||
121 | } // namespace Akonadi | 125 | } // namespace Akonadi | ||
122 | 126 | | |||
123 | AKONADIPRIVATE_EXPORT QDebug operator<<(QDebug debug, const Akonadi::Scope &scope); | 127 | AKONADIPRIVATE_EXPORT QDebug operator<<(QDebug debug, const Akonadi::Scope &scope); | ||
124 | 128 | | |||
125 | #endif | 129 | #endif |