-
Notifications
You must be signed in to change notification settings - Fork 1
/
Event.hpp
39 lines (33 loc) · 872 Bytes
/
Event.hpp
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
/**************************************************************************
** Code written by Hesam Gholami.
**
** Email: [email protected]
** Website: http://hesam.org
**
** This file created in 12.
**************************************************************************/
#ifndef EVENT_HPP
#define EVENT_HPP
#include "DumpTruck.hpp"
#include <QObject>
class Event : public QObject
{
Q_OBJECT
public:
enum Type {
None, ALQ, EL, EW
};
explicit Event(Type eventType, unsigned int time, DumpTruck *truck, QObject *parent = nullptr);
Type getEventType() const;
QString getTypeString() const;
unsigned int getTime() const;
QString getTimeString() const;
DumpTruck *getTruck();
signals:
public slots:
private:
Type eventType = None;
unsigned int time = 0;
DumpTruck *truck = nullptr;
};
#endif // EVENT_HPP