Attica

accountbalance.cpp
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
19 : d(new Private)
20{
21}
22
24 : d(other.d)
25{
26}
27
29{
30 d = other.d;
31 return *this;
32}
33
37
39{
40 d->balance = balance;
41}
42
44{
45 return d->balance;
46}
47
49{
50 d->currency = currency;
51}
52
54{
55 return d->currency;
56}
Represents the money in the account of the user.
QString balance() const
Gets the balance.
void setCurrency(const QString &currency)
Sets the currency in use.
QString currency() const
Gets the currency.
AccountBalance & operator=(const AccountBalance &other)
Assignment operator.
AccountBalance()
Creates an empty AccountBalance.
void setBalance(const QString &name)
Sets the balance.
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:48 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.