MauiKit File Browsing

WebDAVItem.hpp
1#pragma once
2
3#include <QDateTime>
4#include <QIODevice>
5#include <QString>
6
7class WebDAVClient;
8class WebDAVReply;
9
10/**
11 * @brief Represents an item in a remote cloud location
12 */
14{
15 public:
16 /**
17 * @brief
18 */
19 WebDAVItem(WebDAVClient* webdavClient, QString href, QString creationDate,
20 QString lastModified, QString displayName, QString contentType,
21 QString contentLength, bool isCollection);
22
23 /**
24 * @brief
25 */
26 bool isCollection();
27
28 /**
29 * @brief
30 */
31 bool isFile();
32
33 /**
34 * @brief
35 */
36 WebDAVReply* download();
37
38 /**
39 * @brief
40 */
41 WebDAVReply* listDir();
42
43 /**
44 * @brief
45 */
46 WebDAVReply* upload(QString filename, QIODevice* file);
47
48 /**
49 * @brief
50 */
51 WebDAVReply* createDir(QString dirName);
52
53 /**
54 * @brief
55 */
56 WebDAVReply* copy(QString destination);
57
58 /**
59 * @brief
60 */
61 WebDAVReply* move(QString destination, bool overwrite = false);
62
63 /**
64 * @brief
65 */
66 WebDAVReply* remove();
67
68 /**
69 * @brief
70 */
71 QString toString();
72
73 /**
74 * @brief
75 */
76 QString getHref();
77
78 /**
79 * @brief
80 */
81 QDateTime getCreationDate();
82
83 /**
84 * @brief
85 */
86 QString getLastModified();
87
88 /**
89 * @brief
90 */
91 QString getDisplayName();
92
93 /**
94 * @brief
95 */
96 QString getContentType();
97
98 /**
99 * @brief
100 */
101 int getContentLength();
102
103 private:
104 WebDAVClient* webdavClient;
105 QString href;
106 QDateTime creationDate;
107 QString lastModified;
108 QString displayName;
109 QString contentType;
110 int contentLength;
111
112 bool flagIsCollection;
113};
114
Represents an item in a remote cloud location.
Wraps the available actions for a remote item.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:02 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.