Attica

accountbalance.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Frederik Gladhorn <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #include "accountbalance.h"
8 
9 using namespace Attica;
10 
11 class Q_DECL_HIDDEN AccountBalance::Private : public QSharedData
12 {
13 public:
14  QString balance;
15  QString currency;
16 };
17 
19  : d(new Private)
20 {
21 }
22 
24  : d(other.d)
25 {
26 }
27 
29 {
30  d = other.d;
31  return *this;
32 }
33 
35 {
36 }
37 
38 void AccountBalance::setBalance(const QString &balance)
39 {
40  d->balance = balance;
41 }
42 
44 {
45  return d->balance;
46 }
47 
48 void AccountBalance::setCurrency(const QString &currency)
49 {
50  d->currency = currency;
51 }
52 
54 {
55  return d->currency;
56 }
void setBalance(const QString &name)
Sets the balance.
QString balance() const
Gets the balance.
QString currency() const
Gets the currency.
AccountBalance & operator=(const AccountBalance &other)
Assignment operator.
~AccountBalance()
Destructor.
The Attica namespace,.
void setCurrency(const QString &currency)
Sets the currency in use.
AccountBalance()
Creates an empty AccountBalance.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Dec 11 2023 04:05:13 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.