Attica 5.109.0
|
Represents the money in the account of the user. More...
#include <Attica/AccountBalance>
Public Types | |
typedef QList< AccountBalance > | List |
Public Member Functions | |
AccountBalance () | |
Creates an empty AccountBalance. | |
AccountBalance (const AccountBalance &other) | |
Copy constructor. | |
~AccountBalance () | |
Destructor. | |
QString | balance () const |
Gets the balance. | |
QString | currency () const |
Gets the currency. | |
AccountBalance & | operator= (const AccountBalance &other) |
Assignment operator. | |
void | setBalance (const QString &name) |
Sets the balance. | |
void | setCurrency (const QString ¤cy) |
Sets the currency in use. | |
Represents the money in the account of the user.
Attica::AccountBalance::AccountBalance | ( | ) |
Creates an empty AccountBalance.
Attica::AccountBalance::AccountBalance | ( | const AccountBalance & | other | ) |
Copy constructor.
other | the AccountBalance to copy from |
Attica::AccountBalance::~AccountBalance | ( | ) |
Destructor.
QString Attica::AccountBalance::balance | ( | ) | const |
Gets the balance.
QString Attica::AccountBalance::currency | ( | ) | const |
Gets the currency.
AccountBalance & Attica::AccountBalance::operator= | ( | const AccountBalance & | other | ) |
Assignment operator.
other | the AccountBalance to assign from |
void Attica::AccountBalance::setBalance | ( | const QString & | name | ) |
Sets the balance.
balance |
void Attica::AccountBalance::setCurrency | ( | const QString & | currency | ) |
Sets the currency in use.
currency | the new currency (Euro, US Dollar) |