Attica

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

KDE's Doxygen guidelines are available online.