| 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 | |
| 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 | |
| 18 | AccountBalance::AccountBalance() |
| 19 | : d(new Private) |
| 20 | { |
| 21 | } |
| 22 | |
| 23 | AccountBalance::AccountBalance(const Attica::AccountBalance &other) |
| 24 | : d(other.d) |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | AccountBalance &AccountBalance::operator=(const Attica::AccountBalance &other) |
| 29 | { |
| 30 | d = other.d; |
| 31 | return *this; |
| 32 | } |
| 33 | |
| 34 | AccountBalance::~AccountBalance() |
| 35 | { |
| 36 | } |
| 37 | |
| 38 | void AccountBalance::setBalance(const QString &balance) |
| 39 | { |
| 40 | d->balance = balance; |
| 41 | } |
| 42 | |
| 43 | QString AccountBalance::balance() const |
| 44 | { |
| 45 | return d->balance; |
| 46 | } |
| 47 | |
| 48 | void AccountBalance::setCurrency(const QString ¤cy) |
| 49 | { |
| 50 | d->currency = currency; |
| 51 | } |
| 52 | |
| 53 | QString AccountBalance::currency() const |
| 54 | { |
| 55 | return d->currency; |
| 56 | } |
| 57 |
