Attica::AccountBalance
Attica::AccountBalance Class Reference
#include <Attica/AccountBalance>
Public Types | |
typedef QList< AccountBalance > | List |
Public Member Functions | |
AccountBalance () | |
AccountBalance (const AccountBalance &other) | |
~AccountBalance () | |
QString | balance () const |
QString | currency () const |
AccountBalance & | operator= (const AccountBalance &other) |
void | setBalance (const QString &name) |
void | setCurrency (const QString ¤cy) |
Detailed Description
Represents the money in the account of the user.
Definition at line 22 of file accountbalance.h.
Member Typedef Documentation
◆ List
Definition at line 25 of file accountbalance.h.
Constructor & Destructor Documentation
◆ AccountBalance() [1/2]
AccountBalance::AccountBalance | ( | ) |
Creates an empty AccountBalance.
Definition at line 18 of file accountbalance.cpp.
◆ AccountBalance() [2/2]
AccountBalance::AccountBalance | ( | const AccountBalance & | other | ) |
Copy constructor.
- Parameters
-
other the AccountBalance to copy from
Definition at line 23 of file accountbalance.cpp.
◆ ~AccountBalance()
AccountBalance::~AccountBalance | ( | ) |
Destructor.
Definition at line 34 of file accountbalance.cpp.
Member Function Documentation
◆ balance()
QString AccountBalance::balance | ( | ) | const |
Gets the balance.
- Returns
- the amount of money in the account
Definition at line 43 of file accountbalance.cpp.
◆ currency()
QString AccountBalance::currency | ( | ) | const |
◆ operator=()
AccountBalance & AccountBalance::operator= | ( | const AccountBalance & | other | ) |
Assignment operator.
- Parameters
-
other the AccountBalance to assign from
- Returns
- pointer to this AccountBalance
Definition at line 28 of file accountbalance.cpp.
◆ setBalance()
void AccountBalance::setBalance | ( | const QString & | name | ) |
◆ setCurrency()
void AccountBalance::setCurrency | ( | const QString & | currency | ) |
Sets the currency in use.
- Parameters
-
currency the new currency (Euro, US Dollar)
Definition at line 48 of file accountbalance.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.