aboutsummaryrefslogtreecommitdiff
path: root/lot.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 /lot.h
downloadkdeltachat-b8762ddb38dd975b0acb217b793594dfed83a824.tar.gz
kdeltachat-b8762ddb38dd975b0acb217b793594dfed83a824.zip
Initial commit
Diffstat (limited to 'lot.h')
-rw-r--r--lot.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/lot.h b/lot.h
new file mode 100644
index 0000000..3170d85
--- /dev/null
+++ b/lot.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <QObject>
+
+#include <deltachat.h>
+
+class DcLot : public QObject {
+ Q_OBJECT
+
+ Q_PROPERTY(QString text1 READ getText1 CONSTANT);
+ Q_PROPERTY(QString text2 READ getText2 CONSTANT);
+ Q_PROPERTY(int text1Meaning READ getText1Meaning CONSTANT);
+ Q_PROPERTY(int state READ getState CONSTANT);
+ Q_PROPERTY(uint32_t id READ getId CONSTANT);
+ Q_PROPERTY(int64_t timestamp READ getTimestamp CONSTANT);
+
+ dc_lot_t *m_lot{nullptr};
+
+public:
+ explicit DcLot(QObject *parent = nullptr);
+ explicit DcLot(dc_lot_t *lot);
+ ~DcLot();
+
+ Q_INVOKABLE QString getText1() const;
+ Q_INVOKABLE QString getText2() const;
+ Q_INVOKABLE int getText1Meaning() const;
+ Q_INVOKABLE int getState() const;
+ Q_INVOKABLE uint32_t getId() const;
+ Q_INVOKABLE int64_t getTimestamp() const;
+};