Attica

cloud.h
1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2012 Laszlo Papp <lpapp@kde.org>
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
18namespace Attica
19{
20
21/**
22 * @class Cloud cloud.h <Attica/Cloud>
23 *
24 * Represents a cloud service.
25 */
26class ATTICA_EXPORT Cloud
27{
28public:
29 typedef QList<Cloud> List;
30 class Parser;
31
32 /**
33 * Creates an empty Cloud
34 */
35
36 Cloud();
37
38 /**
39 * Copy constructor.
40 * @param other the Cloud to copy from
41 */
42
43 Cloud(const Cloud &other);
44
45 /**
46 * Assignment operator.
47 * @param other the Cloud to assign from
48 * @return pointer to this Activity
49 */
50
51 Cloud &operator=(const Cloud &other);
52
53 /**
54 * Destructor.
55 */
56
57 ~Cloud();
58
59 /**
60 * Sets the name of the Cloud service
61 *
62 * @param name the new name
63 */
64
65 void setName(const QString &name);
66
67 /**
68 * Gets the name of the Cloud service.
69 *
70 * @return the name
71 */
72
73 QString name() const;
74
75 /**
76 * Sets the url of the Cloud service
77 *
78 * @param url the new url
79 */
80
81 void setUrl(const QString &url);
82
83 /**
84 * Gets the url of the Cloud service.
85 *
86 * @return the url
87 */
88
89 QString url() const;
90
91 /**
92 * Sets the icon of the Cloud service
93 *
94 * @param icon the new icon
95 */
96
97 void setIcon(const QUrl &icon);
98
99 /**
100 * Gets the icon of the Cloud service.
101 *
102 * @return the icon
103 */
104
105 QUrl icon() const;
106
107 /**
108 * Sets the quota of the Cloud service
109 *
110 * @param quota the new quota
111 */
112
113 void setQuota(qulonglong quota);
114
115 /**
116 * Gets the quota of the Cloud service.
117 *
118 * @return the quota
119 */
120
121 qulonglong quota() const;
122
123 /**
124 * Sets the free amount of the Cloud service
125 *
126 * @param free the new free amount
127 */
128
129 void setFree(qulonglong free);
130
131 /**
132 * Gets the free amount of the Cloud service.
133 *
134 * @return the free amount
135 */
136
137 qulonglong free() const;
138
139 /**
140 * Sets the used amount of the Cloud service
141 *
142 * @param used the new used amount
143 */
144
145 void setUsed(qulonglong used);
146
147 /**
148 * Gets the used amount of the Cloud service.
149 *
150 * @return the used amount
151 */
152
153 qulonglong used() const;
154
155 /**
156 * Sets the relative of the Cloud service
157 *
158 * @param relative the new relative
159 */
160
161 void setRelative(float relative);
162
163 /**
164 * Gets the relative of the Cloud service.
165 *
166 * @return the relative
167 */
168
169 float relative() const;
170
171 /**
172 * Sets the private key of the Cloud service
173 *
174 * @param privateKey the new privateKey
175 */
176
177 void setKey(const QString &privateKey);
178
179 /**
180 * Gets the private key of the Cloud service.
181 *
182 * @return the private key
183 */
184
185 QString key() const;
186
187private:
188 class Private;
190};
191
192}
193
194#endif
Represents a cloud service.
Definition cloud.h:27
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.