Attica 5.109.0
accountbalance.h
1/*
2 SPDX-FileCopyrightText: 2009 Frederik Gladhorn <gladhorn@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef ATTICA_ACCOUNTBALANCE_H
8#define ATTICA_ACCOUNTBALANCE_H
9
10#include <QSharedDataPointer>
11#include <QString>
12
13#include "attica_export.h"
14
15namespace Attica
16{
22class ATTICA_EXPORT AccountBalance
23{
24public:
25 typedef QList<AccountBalance> List;
26 class Parser;
27
32
38
45
50
55 void setCurrency(const QString &currency);
56
61 QString currency() const;
62
67 void setBalance(const QString &name);
68
73 QString balance() const;
74
75private:
76 class Private;
77 QSharedDataPointer<Private> d;
78};
79
80}
81
82#endif // ACCOUNTBALANCE_H
Represents the money in the account of the user.
Definition accountbalance.h:23
QString currency() const
Gets the currency.
QString balance() const
Gets the balance.
~AccountBalance()
Destructor.
AccountBalance & operator=(const AccountBalance &other)
Assignment operator.
AccountBalance()
Creates an empty AccountBalance.
void setBalance(const QString &name)
Sets the balance.
void setCurrency(const QString &currency)
Sets the currency in use.
AccountBalance(const AccountBalance &other)
Copy constructor.
The Attica namespace,.
Definition activity.h:21