KDAV

davurl.h
1 /*
2  SPDX-FileCopyrightText: 2010 Tobias Koenig <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef KDAV_DAVURL_H
8 #define KDAV_DAVURL_H
9 
10 #include "kdav_export.h"
11 
12 #include "enums.h"
13 
14 #include <QSharedDataPointer>
15 #include <QUrl>
16 #include <QVector>
17 
18 namespace KDAV {
19 class DavUrlPrivate;
25 class KDAV_EXPORT DavUrl
26 {
27 public:
32 
36  DavUrl();
37  DavUrl(const DavUrl &);
38  DavUrl(DavUrl &&);
39  ~DavUrl();
40  DavUrl &operator=(const DavUrl &);
41  DavUrl &operator=(DavUrl &&);
42 
49  DavUrl(const QUrl &url, Protocol protocol);
50 
54  void setUrl(const QUrl &url);
55 
59  Q_REQUIRED_RESULT QUrl url() const;
60 
64  Q_REQUIRED_RESULT QString toDisplayString() const;
65 
69  void setProtocol(Protocol protocol);
70 
74  Q_REQUIRED_RESULT Protocol protocol() const;
75 
76 private:
78 };
79 
80 KDAV_EXPORT QDataStream &operator<<(QDataStream &out, const DavUrl &url);
81 KDAV_EXPORT QDataStream &operator>>(QDataStream &in, DavUrl &url);
82 }
83 
84 Q_DECLARE_TYPEINFO(KDAV::DavUrl, Q_MOVABLE_TYPE);
85 
86 #endif
QDataStream & operator>>(QDataStream &in, KDateTime::Spec &spec)
QVector< DavUrl > List
Defines a list of DAV URL objects.
Definition: davurl.h:31
A helper class to combine URL and protocol of a DAV URL.
Definition: davurl.h:25
The KDAV namespace.
Definition: davcollection.h:22
Protocol
Describes the DAV protocol dialect.
Definition: enums.h:19
QDataStream & operator<<(QDataStream &out, const KDateTime::Spec &spec)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Oct 28 2020 23:01:59 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.