diff options
author | link2xt <link2xt@testrun.org> | 2020-09-12 14:10:13 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2020-10-03 00:20:03 +0300 |
commit | b8762ddb38dd975b0acb217b793594dfed83a824 (patch) | |
tree | 23ccefbba703fed6c07acce82ff72e32ba77c9ba /chatlist.h | |
download | kdeltachat-b8762ddb38dd975b0acb217b793594dfed83a824.tar.gz kdeltachat-b8762ddb38dd975b0acb217b793594dfed83a824.zip |
Initial commit
Diffstat (limited to 'chatlist.h')
-rw-r--r-- | chatlist.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chatlist.h b/chatlist.h new file mode 100644 index 0000000..8186d3a --- /dev/null +++ b/chatlist.h @@ -0,0 +1,22 @@ +#pragma once + +#include <QObject> +#include <deltachat.h> +#include "lot.h" + +class DcChatlist : public QObject { + Q_OBJECT + +public: + explicit DcChatlist(QObject *parent = nullptr); + explicit DcChatlist(dc_chatlist_t *context, QObject *parent = nullptr); + ~DcChatlist(); + + Q_INVOKABLE size_t getChatCount() const; + Q_INVOKABLE uint32_t getChatId(size_t index) const; + Q_INVOKABLE uint32_t getMsgId(size_t index) const; + Q_INVOKABLE DcLot *getSummary(size_t index) const; + +private: + dc_chatlist_t *m_chatlist{nullptr}; +}; |