Attica

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{
17/**
18 * @class AccountBalance accountbalance.h <Attica/AccountBalance>
19 *
20 * Represents the money in the account of the user
21 */
22class ATTICA_EXPORT AccountBalance
23{
24public:
26 class Parser;
27
28 /**
29 * Creates an empty AccountBalance
30 */
32
33 /**
34 * Copy constructor.
35 * @param other the AccountBalance to copy from
36 */
37 AccountBalance(const AccountBalance &other);
38
39 /**
40 * Assignment operator.
41 * @param other the AccountBalance to assign from
42 * @return pointer to this AccountBalance
43 */
44 AccountBalance &operator=(const AccountBalance &other);
45
46 /**
47 * Destructor.
48 */
50
51 /**
52 * Sets the currency in use.
53 * @param currency the new currency (Euro, US Dollar)
54 */
55 void setCurrency(const QString &currency);
56
57 /**
58 * Gets the currency.
59 * @return the currency
60 */
61 QString currency() const;
62
63 /**
64 * Sets the balance.
65 * @param balance
66 */
67 void setBalance(const QString &name);
68
69 /**
70 * Gets the balance.
71 * @return the amount of money in the account
72 */
73 QString balance() const;
74
75private:
76 class Private;
78};
79
80}
81
82#endif // ACCOUNTBALANCE_H
Represents the money in the account of the user.
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:58:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.