| 1 | /* |
| 2 | * This is the source code of tgnet library v. 1.1 |
| 3 | * It is licensed under GNU GPL v. 2 or later. |
| 4 | * You should have received a copy of the license in this archive (see LICENSE). |
| 5 | * |
| 6 | * Copyright Nikolai Kudashov, 2015-2018. |
| 7 | */ |
| 8 | |
| 9 | #ifndef EVENTOBJECT_H |
| 10 | #define EVENTOBJECT_H |
| 11 | |
| 12 | #include <stdint.h> |
| 13 | #include "Defines.h" |
| 14 | |
| 15 | class EventObject { |
| 16 | |
| 17 | public: |
| 18 | EventObject(void *object, EventObjectType type); |
| 19 | void onEvent(uint32_t events); |
| 20 | |
| 21 | int64_t time; |
| 22 | void *eventObject; |
| 23 | EventObjectType eventType; |
| 24 | }; |
| 25 | |
| 26 | #endif |
| 27 | |