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  * @class AccountBalance accountbalance.h <Attica/AccountBalance>
19  *
20  * Represents the money in the account of the user
21  */
22 class ATTICA_EXPORT AccountBalance
23 {
24 public:
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  */
49  ~AccountBalance();
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 
75 private:
76  class Private;
78 };
79 
80 }
81 
82 #endif // ACCOUNTBALANCE_H
The Attica namespace,.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Dec 3 2023 04:08:16 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.