Changeset View
Changeset View
Standalone View
Standalone View
src/common/davurl.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_DAVURL_H | 18 | #ifndef KDAV_DAVURL_H | ||
19 | #define KDAV_DAVURL_H | 19 | #define KDAV_DAVURL_H | ||
20 | 20 | | |||
21 | #include "kpimkdav_export.h" | 21 | #include "kdav_export.h" | ||
22 | 22 | | |||
23 | #include "enums.h" | 23 | #include "enums.h" | ||
24 | 24 | | |||
25 | #include <QSharedDataPointer> | 25 | #include <QSharedDataPointer> | ||
26 | #include <QUrl> | 26 | #include <QUrl> | ||
27 | #include <QVector> | 27 | #include <QVector> | ||
28 | 28 | | |||
29 | namespace KDAV { | 29 | namespace KDAV { | ||
30 | class DavUrlPrivate; | 30 | class DavUrlPrivate; | ||
31 | /** | 31 | /** | ||
32 | * @short A helper class to combine url and protocol of a DAV url. | 32 | * @short A helper class to combine url and protocol of a DAV url. | ||
33 | */ | 33 | */ | ||
34 | class KPIMKDAV_EXPORT DavUrl | 34 | class KDAV_EXPORT DavUrl | ||
35 | { | 35 | { | ||
36 | public: | 36 | public: | ||
37 | /** | 37 | /** | ||
38 | * Defines a list of DAV url objects. | 38 | * Defines a list of DAV url objects. | ||
39 | */ | 39 | */ | ||
40 | typedef QVector<DavUrl> List; | 40 | typedef QVector<DavUrl> List; | ||
41 | 41 | | |||
42 | /** | 42 | /** | ||
Show All 36 Lines | |||||
79 | * Returns the DAV protocol dialect that is used to retrieve the DAV object. | 79 | * Returns the DAV protocol dialect that is used to retrieve the DAV object. | ||
80 | */ | 80 | */ | ||
81 | Q_REQUIRED_RESULT Protocol protocol() const; | 81 | Q_REQUIRED_RESULT Protocol protocol() const; | ||
82 | 82 | | |||
83 | private: | 83 | private: | ||
84 | QSharedDataPointer<DavUrlPrivate> d; | 84 | QSharedDataPointer<DavUrlPrivate> d; | ||
85 | }; | 85 | }; | ||
86 | 86 | | |||
87 | KPIMKDAV_EXPORT QDataStream &operator<<(QDataStream &out, const DavUrl &url); | 87 | KDAV_EXPORT QDataStream &operator<<(QDataStream &out, const DavUrl &url); | ||
88 | KPIMKDAV_EXPORT QDataStream &operator>>(QDataStream &in, DavUrl &url); | 88 | KDAV_EXPORT QDataStream &operator>>(QDataStream &in, DavUrl &url); | ||
89 | } | 89 | } | ||
90 | 90 | | |||
91 | Q_DECLARE_TYPEINFO(KDAV::DavUrl, Q_MOVABLE_TYPE); | 91 | Q_DECLARE_TYPEINFO(KDAV::DavUrl, Q_MOVABLE_TYPE); | ||
92 | 92 | | |||
93 | #endif | 93 | #endif |