Attica 5.109.0
Public Types | Public Member Functions | List of all members
Attica::AccountBalance

Represents the money in the account of the user. More...

#include <Attica/AccountBalance>

Public Types

typedef QList< AccountBalanceList
 

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.
 
AccountBalanceoperator= (const AccountBalance &other)
 Assignment operator.
 
void setBalance (const QString &name)
 Sets the balance.
 
void setCurrency (const QString &currency)
 Sets the currency in use.
 

Detailed Description

Represents the money in the account of the user.

Constructor & Destructor Documentation

◆ AccountBalance() [1/2]

Attica::AccountBalance::AccountBalance ( )

Creates an empty AccountBalance.

◆ AccountBalance() [2/2]

Attica::AccountBalance::AccountBalance ( const AccountBalance other)

Copy constructor.

Parameters
otherthe AccountBalance to copy from

◆ ~AccountBalance()

Attica::AccountBalance::~AccountBalance ( )

Destructor.

Member Function Documentation

◆ balance()

QString Attica::AccountBalance::balance ( ) const

Gets the balance.

Returns
the amount of money in the account

◆ currency()

QString Attica::AccountBalance::currency ( ) const

Gets the currency.

Returns
the currency

◆ operator=()

AccountBalance & Attica::AccountBalance::operator= ( const AccountBalance other)

Assignment operator.

Parameters
otherthe AccountBalance to assign from
Returns
pointer to this AccountBalance

◆ setBalance()

void Attica::AccountBalance::setBalance ( const QString &  name)

Sets the balance.

Parameters
balance

◆ setCurrency()

void Attica::AccountBalance::setCurrency ( const QString &  currency)

Sets the currency in use.

Parameters
currencythe new currency (Euro, US Dollar)