aboutsummaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-06-29 14:10:06 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2023-08-30 02:46:41 +0200
commit6ecc6b6f0272a47d41ce5d619eaa779a29fcf9df (patch)
treeb304ad33ecadcd1209347b67d525506356d149f0 /client.h
parent48cfe26383feb2fcf6638905060c605af8eb2c69 (diff)
downloadxxcc-6ecc6b6f0272a47d41ce5d619eaa779a29fcf9df.tar.gz
WIP OMEMO
Diffstat (limited to 'client.h')
-rw-r--r--client.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/client.h b/client.h
index 4d8e5ca..3991e90 100644
--- a/client.h
+++ b/client.h
@@ -1,15 +1,30 @@
#ifndef CLIENT_H
#define CLIENT_H
+#include "omemo_db.h"
+#include "trust_db.h"
#include <QObject>
#include <QString>
#include <QXmppClient.h>
+#include <QXmppOmemoManager.h>
+#include <QXmppOmemoStorage.h>
+#include <QXmppPubSubManager.h>
+#include <QXmppTrustManager.h>
+#include <QXmppTrustStorage.h>
class Client : public QXmppClient
{
public:
- Client(QObject *parent = nullptr);
+ Client(const QString &jid, QObject *parent = nullptr);
QString jidBare();
+
+private:
+ const QString jid;
+ TrustDb trust_db;
+ QXmppTrustManager trust;
+ QXmppPubSubManager pubsub;
+ OmemoDb omemo_db;
+ QXmppOmemoManager omemo;
};
#endif