-
Notifications
You must be signed in to change notification settings - Fork 0
/
abstractbackend.h
31 lines (23 loc) · 886 Bytes
/
abstractbackend.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
#ifndef ABSTRACTBACKEND_H
#define ABSTRACTBACKEND_H
#include <QObject>
class AbstractBackend : public QObject
{
Q_OBJECT
public:
explicit AbstractBackend(QObject *parent = 0);
virtual void initialize() = 0;
public slots:
virtual void requestPaymentData(const QString &licensePlateNumber) = 0;
virtual void paymentAccepted(const QString &licensePlateNumber) = 0;
signals:
// A car entered the lot.
void licensePlateAdded(const QString &licensePlateNumber, int licensePlateAdded);
// A car exited the lot.
void licensePlateRemoved(const QString &licensePlateNumber);
// A car chose a parking spot.
void parkingSpotAssigned(const QString &licensePlateNumber, int parkingSpotNumber);
// Emitted in response to requestPaymentData().
void paymentDataAvailable(qreal paymentAmount, int minutesParked);
};
#endif // ABSTRACTBACKEND_H