File indexing completed on 2024-12-01 03:37:32
0001 /* 0002 SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #include "accountbalance.h" 0008 0009 using namespace Attica; 0010 0011 class Q_DECL_HIDDEN AccountBalance::Private : public QSharedData 0012 { 0013 public: 0014 QString balance; 0015 QString currency; 0016 }; 0017 0018 AccountBalance::AccountBalance() 0019 : d(new Private) 0020 { 0021 } 0022 0023 AccountBalance::AccountBalance(const Attica::AccountBalance &other) 0024 : d(other.d) 0025 { 0026 } 0027 0028 AccountBalance &AccountBalance::operator=(const Attica::AccountBalance &other) 0029 { 0030 d = other.d; 0031 return *this; 0032 } 0033 0034 AccountBalance::~AccountBalance() 0035 { 0036 } 0037 0038 void AccountBalance::setBalance(const QString &balance) 0039 { 0040 d->balance = balance; 0041 } 0042 0043 QString AccountBalance::balance() const 0044 { 0045 return d->balance; 0046 } 0047 0048 void AccountBalance::setCurrency(const QString ¤cy) 0049 { 0050 d->currency = currency; 0051 } 0052 0053 QString AccountBalance::currency() const 0054 { 0055 return d->currency; 0056 }