-
Notifications
You must be signed in to change notification settings - Fork 2
/
kassomatcontroller.h
46 lines (36 loc) · 1.26 KB
/
kassomatcontroller.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef KASSOMATCONTROLLER_H
#define KASSOMATCONTROLLER_H
#include <QObject>
#include "smartpayout.h"
class KassomatController : public QObject
{
Q_OBJECT
Q_PROPERTY(QString smartPayoutDevice READ smartPayoutDevice WRITE setSmartPayoutDevice NOTIFY smartPayoutDeviceChanged)
Q_PROPERTY(unsigned int credit READ credit WRITE setCredit NOTIFY creditChanged)
Q_PROPERTY(unsigned int debt READ debt WRITE setDebt NOTIFY debtChanged)
Q_PROPERTY(QString state READ state WRITE setState NOTIFY stateChanged)
public:
explicit KassomatController(QObject *parent = 0);
const QString& smartPayoutDevice() const;
unsigned int credit() const;
const QString& state() const;
unsigned int debt() const;
void setSmartPayoutDevice(const QString &dev);
void setCredit(unsigned int credit);
void setState(const QString &state);
void setDebt(unsigned int debt);
void test();
void poll();
signals:
void smartPayoutDeviceChanged(const QString &newDevice);
void creditChanged(unsigned int);
void debtChanged(unsigned int);
void stateChanged(QString);
public slots:
private:
QScopedPointer<SmartPayout> m_smartPayout;
unsigned int m_credit;
unsigned int m_debt;
QString m_state;
};
#endif // KASSOMATCONTROLLER_H