Changeset View
Changeset View
Standalone View
Standalone View
src/common/davitem.h
Show All 12 Lines | 1 | /* | |||
---|---|---|---|---|---|
13 | 13 | | |||
14 | You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License | ||
15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | #ifndef KDAV_DAVITEM_H | 18 | #ifndef KDAV_DAVITEM_H | ||
19 | #define KDAV_DAVITEM_H | 19 | #define KDAV_DAVITEM_H | ||
20 | 20 | | |||
21 | #include "kpimkdav_export.h" | 21 | #include "kdav_export.h" | ||
22 | 22 | | |||
23 | #include <QByteArray> | 23 | #include <QByteArray> | ||
24 | #include <QDataStream> | 24 | #include <QDataStream> | ||
25 | #include <QSharedDataPointer> | 25 | #include <QSharedDataPointer> | ||
26 | #include <QString> | 26 | #include <QString> | ||
27 | #include <QVector> | 27 | #include <QVector> | ||
28 | 28 | | |||
29 | class DavItemPrivate; | 29 | class DavItemPrivate; | ||
30 | 30 | | |||
31 | namespace KDAV { | 31 | namespace KDAV { | ||
32 | class DavUrl; | 32 | class DavUrl; | ||
33 | } | 33 | } | ||
34 | 34 | | |||
35 | namespace KDAV { | 35 | namespace KDAV { | ||
36 | /** | 36 | /** | ||
37 | * @short A helper class to store information about DAV resources. | 37 | * @short A helper class to store information about DAV resources. | ||
38 | * | 38 | * | ||
39 | * This class is used as container to transfer information about DAV | 39 | * This class is used as container to transfer information about DAV | ||
40 | * resources between the Akonadi resource and the DAV jobs. | 40 | * resources between the Akonadi resource and the DAV jobs. | ||
41 | * | 41 | * | ||
42 | * @note While the DAV RFC names them DAV resource we call them items | 42 | * @note While the DAV RFC names them DAV resource we call them items | ||
43 | * to comply to Akonadi terminology. | 43 | * to comply to Akonadi terminology. | ||
44 | */ | 44 | */ | ||
45 | class KPIMKDAV_EXPORT DavItem | 45 | class KDAV_EXPORT DavItem | ||
46 | { | 46 | { | ||
47 | public: | 47 | public: | ||
48 | /** | 48 | /** | ||
49 | * Defines a list of DAV item objects. | 49 | * Defines a list of DAV item objects. | ||
50 | */ | 50 | */ | ||
51 | typedef QVector<DavItem> List; | 51 | typedef QVector<DavItem> List; | ||
52 | 52 | | |||
53 | /** | 53 | /** | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | |||||
109 | * Returns the etag of the item. | 109 | * Returns the etag of the item. | ||
110 | */ | 110 | */ | ||
111 | Q_REQUIRED_RESULT QString etag() const; | 111 | Q_REQUIRED_RESULT QString etag() const; | ||
112 | 112 | | |||
113 | private: | 113 | private: | ||
114 | QSharedDataPointer<DavItemPrivate> d; | 114 | QSharedDataPointer<DavItemPrivate> d; | ||
115 | }; | 115 | }; | ||
116 | 116 | | |||
117 | KPIMKDAV_EXPORT QDataStream &operator<<(QDataStream &out, const DavItem &item); | 117 | KDAV_EXPORT QDataStream &operator<<(QDataStream &out, const DavItem &item); | ||
118 | KPIMKDAV_EXPORT QDataStream &operator>>(QDataStream &in, DavItem &item); | 118 | KDAV_EXPORT QDataStream &operator>>(QDataStream &in, DavItem &item); | ||
119 | } | 119 | } | ||
120 | 120 | | |||
121 | Q_DECLARE_TYPEINFO(KDAV::DavItem, Q_MOVABLE_TYPE); | 121 | Q_DECLARE_TYPEINFO(KDAV::DavItem, Q_MOVABLE_TYPE); | ||
122 | 122 | | |||
123 | #endif | 123 | #endif |