kappachat/src/deltachat_context.hh

35 lines
527 B
C++

#pragma once
#include <deltachat.h>
#include <QObject>
#include <QString>
#include <thread>
namespace kappachat {
class DeltachatContext : public QObject {
Q_OBJECT
public:
DeltachatContext();
~DeltachatContext();
bool isConfigured() const;
public slots:
void setConfig(QString key, QString value);
void configure();
signals:
void configureProgress(int permille, QString message);
private:
void eventThread();
dc_context_t *m_context;
std::thread m_event_thread;
};
} // namespace kappachat