blob: 3170d85fbcbd654717bf8ba7752f4a7a10cda3e8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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;
};
|