2
This file is part of KDE.
4
Copyright (c) 2012 Laszlo Papp <lpapp@kde.org>
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) version 3, or any
10
later version accepted by the membership of KDE e.V. (or its
11
successor approved by the membership of KDE e.V.), which shall
12
act as a proxy defined in Section 6 of version 3 of the license.
14
This library is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17
Lesser General Public License for more details.
19
You should have received a copy of the GNU Lesser General Public
20
License along with this library. If not, see <http://www.gnu.org/licenses/>.
23
#ifndef ATTICA_CLOUD_H
24
#define ATTICA_CLOUD_H
26
#include "atticaclient_export.h"
28
#include <QtCore/QList>
29
#include <QtCore/QSharedDataPointer>
30
#include <QtCore/QUrl>
35
class ATTICA_EXPORT Cloud
38
typedef QList<Cloud> List;
42
* Creates an empty Cloud
49
* @param other the Cloud to copy from
52
Cloud(const Cloud &other);
55
* Assignment operator.
56
* @param other the Cloud to assign from
57
* @return pointer to this Activity
60
Cloud &operator=(const Cloud &other);
69
* Sets the name of the Cloud service
71
* @param name the new name
74
void setName(const QString &name);
77
* Gets the name of the Cloud service.
85
* Sets the url of the Cloud service
87
* @param url the new url
90
void setUrl(const QString &url);
93
* Gets the url of the Cloud service.
101
* Sets the icon of the Cloud service
103
* @param icon the new icon
106
void setIcon(const QUrl &icon);
109
* Gets the icon of the Cloud service.
117
* Sets the quota of the Cloud service
119
* @param quota the new quota
122
void setQuota(qulonglong quota);
125
* Gets the quota of the Cloud service.
130
qulonglong quota() const;
133
* Sets the free amount of the Cloud service
135
* @param free the new free amount
138
void setFree(qulonglong free);
141
* Gets the free amount of the Cloud service.
143
* @return the free amount
146
qulonglong free() const;
149
* Sets the used amount of the Cloud service
151
* @param used the new used amount
154
void setUsed(qulonglong used);
157
* Gets the used amount of the Cloud service.
159
* @return the used amount
162
qulonglong used() const;
165
* Sets the relative of the Cloud service
167
* @param relative the new relative
170
void setRelative(float relative);
173
* Gets the relative of the Cloud service.
175
* @return the relative
178
float relative() const;
181
* Sets the private key of the Cloud service
183
* @param privateKey the new privateKey
186
void setKey(const QString &privateKey);
189
* Gets the private key of the Cloud service.
191
* @return the private key
198
QSharedDataPointer<Private> d;