aboutsummaryrefslogtreecommitdiff
path: root/dcevent.h
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2020-09-12 14:10:13 +0300
committerlink2xt <link2xt@testrun.org>2020-10-03 00:20:03 +0300
commitb8762ddb38dd975b0acb217b793594dfed83a824 (patch)
tree23ccefbba703fed6c07acce82ff72e32ba77c9ba /dcevent.h
downloadkdeltachat-b8762ddb38dd975b0acb217b793594dfed83a824.tar.gz
kdeltachat-b8762ddb38dd975b0acb217b793594dfed83a824.zip
Initial commit
Diffstat (limited to 'dcevent.h')
-rw-r--r--dcevent.h23
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();
+};