~ubuntu-branches/debian/jessie/attica-kf5/jessie

« back to all changes in this revision

Viewing changes to src/cloud.h

  • Committer: Package Import Robot
  • Author(s): Maximiliano Curia
  • Date: 2014-07-15 10:53:09 UTC
  • Revision ID: package-import@ubuntu.com-20140715105309-nnjxenwcs6h4qznf
Tags: upstream-5.0.0
ImportĀ upstreamĀ versionĀ 5.0.0

Show diffs side-by-side

added added

removed removed

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