GnuCashew ~ GnuCash Enabled Web
GCW
Status.h
Go to the documentation of this file.
1 #line 2 "src/Gui/BillPay/Status.h"
2 
3 #ifndef __GUI_BILLPAY_STATUS_H___
4 #define __GUI_BILLPAY_STATUS_H___
5 
6 #include <string>
7 
8 namespace GCW {
9  namespace Gui {
10  namespace BillPay {
11 
12 /*!
13 ** \brief Bill Status
14 **
15 ** Bills get loaded in to the model depending on their status. A bills
16 ** status depends on the selected month, and the check-box status
17 ** for that same month.
18 **
19 */
20 enum class Status
21 {
22  /// Paid Status
23  Paid,
24 
25  /// Unpaid Status
26  Unpaid,
27 
28  /// Disabled Status
29  Disabled
30 };
31 
32 /*!
33 ** \brief Get Status as String
34 **
35 ** This returns the 'string' representation of the status code.
36 **
37 */
38 std::string asString( Status _status );
39 
40 /*!
41 ** \brief Get Status as Style Class
42 **
43 ** The style-class is used to alter the display rendering based
44 ** on the status.
45 **
46 */
47 std::string asStyleClass( Status _status );
48 
49  } // endnamespace BillPay {
50  } // endnamespace Gui {
51 } // endnamespace GCW {
52 
53 #endif // __GUI_BILLPAY_STATUS_H___
54 
55 
56 
std::string asString(Status _status)
Get Status as String.
Definition: Status.cpp:7
Status
Bill Status.
Definition: Status.h:21
@ Disabled
Disabled Status.
@ Unpaid
Unpaid Status.
std::string asStyleClass(Status _status)
Get Status as Style Class.
Definition: Status.cpp:21
Definition: App.h:17