Attica::AccountBalance

Search for usage in LXR

Attica::AccountBalance Class Reference

#include <Attica/AccountBalance>

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 22 of file accountbalance.h.

Member Typedef Documentation

◆ List

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
otherthe 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

Gets the currency.

Returns
the currency

Definition at line 53 of file accountbalance.cpp.

◆ operator=()

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.

◆ setBalance()

void AccountBalance::setBalance ( const QString & name)

Sets the balance.

Parameters
balance

Definition at line 38 of file accountbalance.cpp.

◆ setCurrency()

void AccountBalance::setCurrency ( const QString & currency)

Sets the currency in use.

Parameters
currencythe 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 Fri May 24 2024 11:58:03 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.