Attica::AccountBalance

Attica::AccountBalance Class Reference

#include <accountbalance.h>

Public Types

typedef QList< AccountBalanceList
 

Public Member Functions

 AccountBalance ()
 
 AccountBalance (const AccountBalance &other)
 
 ~AccountBalance ()
 
QString balance () const
 
QString currency () const
 
AccountBalanceoperator= (const AccountBalance &other)
 
void setBalance (const QString &name)
 
void setCurrency (const QString &currency)
 

Detailed Description

Represents the money in the account of the user.

Definition at line 21 of file accountbalance.h.

Constructor & Destructor Documentation

AccountBalance::AccountBalance ( )

Creates an empty AccountBalance.

Definition at line 18 of file accountbalance.cpp.

AccountBalance::AccountBalance ( const AccountBalance other)

Copy constructor.

Parameters
otherthe AccountBalance to copy from

Definition at line 23 of file accountbalance.cpp.

AccountBalance::~AccountBalance ( )

Destructor.

Definition at line 34 of file accountbalance.cpp.

Member Function Documentation

QString AccountBalance::balance ( ) const

Gets the balance.

Returns
the amount of money in the account

Definition at line 42 of file accountbalance.cpp.

QString AccountBalance::currency ( ) const

Gets the currency.

Returns
the currency

Definition at line 52 of file accountbalance.cpp.

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

Assignment operator.

Parameters
otherthe AccountBalance to assign from
Returns
pointer to this AccountBalance

Definition at line 28 of file accountbalance.cpp.

void AccountBalance::setBalance ( const QString name)

Sets the balance.

Parameters
balance

Definition at line 37 of file accountbalance.cpp.

void AccountBalance::setCurrency ( const QString currency)

Sets the currency in use.

Parameters
currencythe new currency (Euro, US Dollar)

Definition at line 47 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-2020 The KDE developers.
Generated on Sun Jul 5 2020 23:01:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.