1/*
2 SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org>
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
9using namespace Attica;
10
11class Q_DECL_HIDDEN AccountBalance::Private : public QSharedData
12{
13public:
14 QString balance;
15 QString currency;
16};
17
18AccountBalance::AccountBalance()
19 : d(new Private)
20{
21}
22
23AccountBalance::AccountBalance(const Attica::AccountBalance &other)
24 : d(other.d)
25{
26}
27
28AccountBalance &AccountBalance::operator=(const Attica::AccountBalance &other)
29{
30 d = other.d;
31 return *this;
32}
33
34AccountBalance::~AccountBalance()
35{
36}
37
38void AccountBalance::setBalance(const QString &balance)
39{
40 d->balance = balance;
41}
42
43QString AccountBalance::balance() const
44{
45 return d->balance;
46}
47
48void AccountBalance::setCurrency(const QString &currency)
49{
50 d->currency = currency;
51}
52
53QString AccountBalance::currency() const
54{
55 return d->currency;
56}
57

source code of attica/src/accountbalance.cpp