GnuCashew ~ Web Application compatible with GnuCash sql data files.
GCW
Loading...
Searching...
No Matches
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
8namespace 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. The check-box values equate as follows;
18**
19** - unpaid == (no) unchecked
20** - paid == (yes) checked
21** - pending == (maybe) semi-checked
22**
23** \note these values are internal, not stored
24**
25*/
26enum class Status
27{
28 /// Unpaid Status
29 Unpaid,
30
31 /// Pending Status
32 Pending,
33
34 /// Paid Status
35 Paid,
36
37 /// Disabled Status
39};
40
41/*!
42** \brief Get Status as String
43**
44** This returns the 'string' representation of the status code.
45**
46*/
47auto asString( Status _status )-> std::string ;
48
49/*!
50** \brief Get Status as Style Class
51**
52** The style-class is used to alter the display rendering based
53** on the status.
54**
55*/
56auto asStyleClass( Status _status )-> std::string ;
57
58 } // endnamespace BillPay {
59 } // endnamespace Gui {
60} // endnamespace GCW {
61
62#endif // __GUI_BILLPAY_STATUS_H___
63
64
65
Status
Bill Status.
Definition Status.h:27
@ Pending
Pending Status.
@ Inactive
Disabled Status.
@ Unpaid
Unpaid Status.
auto asString(Status _status) -> std::string
Get Status as String.
Definition Status.cpp:7
auto asStyleClass(Status _status) -> std::string
Get Status as Style Class.
Definition Status.cpp:23
Definition App.h:18