From b8762ddb38dd975b0acb217b793594dfed83a824 Mon Sep 17 00:00:00 2001 From: link2xt Date: Sat, 12 Sep 2020 14:10:13 +0300 Subject: Initial commit --- dcevent.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 dcevent.h (limited to 'dcevent.h') 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 + +#include + +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(); +}; -- cgit v1.2.3-70-g09d2