diff options
Diffstat (limited to 'dcevent.h')
-rw-r--r-- | dcevent.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dcevent.h b/dcevent.h new file mode 100644 index 0000000..7abc748 --- /dev/null +++ b/dcevent.h @@ -0,0 +1,23 @@ +#pragma once + +#include <QObject> + +#include <deltachat.h> + +class DcEvent : public QObject { + Q_OBJECT + Q_PROPERTY(int id READ getId CONSTANT) + Q_PROPERTY(int data1 READ getData1Int CONSTANT) + Q_PROPERTY(uint32_t accountId READ getAccountId CONSTANT) + dc_event_t *m_event; +public: + explicit DcEvent(QObject *parent = nullptr); + explicit DcEvent(dc_event_t *event); + ~DcEvent(); + + int getId(); + int getData1Int(); + int getData2Int(); + QString getData2Str(); + uint32_t getAccountId(); +}; |