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 AccountBalance::Private : public QSharedData
12 {
13 public:
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 
38 {
39  d->balance = balance;
40 }
41 
43 {
44  return d->balance;
45 }
46 
48 {
49  d->currency = currency;
50 }
51 
53 {
54  return d->currency;
55 }
QString currency() const
Gets the currency.
~AccountBalance()
Destructor.
void setBalance(const QString &name)
Sets the balance.
void setCurrency(const QString &currency)
Sets the currency in use.
QString balance() const
Gets the balance.
AccountBalance()
Creates an empty AccountBalance.
AccountBalance & operator=(const AccountBalance &other)
Assignment operator.
Represents the money in the account of the user.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 2 2020 23:00:10 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.