Attica

cloud.cpp
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 #include "cloud.h"
10 
11 using namespace Attica;
12 
13 class Cloud::Private : public QSharedData
14 {
15 public:
16  QString m_name;
17  QString m_url;
18  QUrl m_icon;
19  qulonglong m_quota;
20  qulonglong m_free;
21  qulonglong m_used;
22  float m_relative;
23  QString m_key;
24 };
25 
26 Cloud::Cloud()
27  : d(new Private)
28 {
29 }
30 
31 Cloud::Cloud(const Attica::Cloud &other)
32  : d(other.d)
33 {
34 }
35 
36 Cloud &Cloud::operator=(const Attica::Cloud &other)
37 {
38  d = other.d;
39  return *this;
40 }
41 
42 Cloud::~Cloud()
43 {
44 }
45 
46 void Cloud::setName(const QString &name)
47 {
48  d->m_name = name;
49 }
50 
51 QString Cloud::name() const
52 {
53  return d->m_name;
54 }
55 
56 void Cloud::setUrl(const QString &url)
57 {
58  d->m_url = url;
59 }
60 
61 QString Cloud::url() const
62 {
63  return d->m_url;
64 }
65 
66 void Cloud::setIcon(const QUrl &icon)
67 {
68  d->m_icon = icon;
69 }
70 
71 QUrl Cloud::icon() const
72 {
73  return d->m_icon;
74 }
75 
76 void Cloud::setQuota(qulonglong quota)
77 {
78  d->m_quota = quota;
79 }
80 
81 qulonglong Cloud::quota() const
82 {
83  return d->m_quota;
84 }
85 
86 void Cloud::setFree(qulonglong free)
87 {
88  d->m_free = free;
89 }
90 
91 qulonglong Cloud::free() const
92 {
93  return d->m_free;
94 }
95 
96 void Cloud::setUsed(qulonglong used)
97 {
98  d->m_used = used;
99 }
100 
101 qulonglong Cloud::used() const
102 {
103  return d->m_used;
104 }
105 
106 void Cloud::setRelative(float relative)
107 {
108  d->m_relative = relative;
109 }
110 
111 float Cloud::relative() const
112 {
113  return d->m_relative;
114 }
115 
116 void Cloud::setKey(const QString &key)
117 {
118  d->m_key = key;
119 }
120 
121 QString Cloud::key() const
122 {
123  return d->m_key;
124 }
QString name() const
Gets the name of the Category.
Definition: category.cpp:65
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.