Attica

cloud.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2012 Laszlo Papp <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef ATTICA_CLOUD_H
10 #define ATTICA_CLOUD_H
11 
12 #include "attica_export.h"
13 
14 #include <QList>
15 #include <QSharedDataPointer>
16 #include <QUrl>
17 
18 namespace Attica
19 {
20 
21 class ATTICA_EXPORT Cloud
22 {
23 public:
24  typedef QList<Cloud> List;
25  class Parser;
26 
31  Cloud();
32 
38  Cloud(const Cloud &other);
39 
46  Cloud &operator=(const Cloud &other);
47 
52  ~Cloud();
53 
60  void setName(const QString &name);
61 
68  QString name() const;
69 
76  void setUrl(const QString &url);
77 
84  QString url() const;
85 
92  void setIcon(const QUrl &icon);
93 
100  QUrl icon() const;
101 
108  void setQuota(qulonglong quota);
109 
116  qulonglong quota() const;
117 
124  void setFree(qulonglong free);
125 
132  qulonglong free() const;
133 
140  void setUsed(qulonglong used);
141 
148  qulonglong used() const;
149 
156  void setRelative(float relative);
157 
164  float relative() const;
165 
172  void setKey(const QString &privateKey);
173 
180  QString key() const;
181 
182 private:
183  class Private;
185 };
186 
187 }
188 
189 #endif
QString name(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:59:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.