summaryrefslogtreecommitdiff
path: root/client.h
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 15:59:29 +0100
committerXavier Del Campo Romero <xavi92@disroot.org>2026-02-03 16:26:52 +0100
commitfdb64c59865e4db76addfb8222f6421443e25240 (patch)
tree0de2bad9f758c69b7fb9ba2670653c8515a3a70d /client.h
parent207176de48d5e44c8d3e6318b526db5d772dd008 (diff)
downloadyachat6-fdb64c59865e4db76addfb8222f6421443e25240.tar.gz
Import files from xxcc
Diffstat (limited to 'client.h')
-rw-r--r--client.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/client.h b/client.h
new file mode 100644
index 0000000..3da53e8
--- /dev/null
+++ b/client.h
@@ -0,0 +1,40 @@
+#ifndef CLIENT_H
+#define CLIENT_H
+
+#include "atm_db.h"
+#include "jiddb.h"
+#include "omemo_db.h"
+#include "trust_db.h"
+#include <QObject>
+#include <QString>
+#include <QXmppAtmManager.h>
+#include <QXmppCarbonManagerV2.h>
+#include <QXmppClient.h>
+#include <QXmppMamManager.h>
+#include <QXmppOmemoManager.h>
+#include <QXmppOmemoStorage.h>
+#include <QXmppPubSubManager.h>
+#include <QXmppTrustManager.h>
+#include <QXmppTrustStorage.h>
+
+class Client : public QXmppClient
+{
+public:
+ Client(const QString &jid, QObject *parent = nullptr);
+ QString jidBare();
+ const JidDb &database() const;
+ JidDb &database();
+
+private:
+ QXmppCarbonManagerV2 carbon;
+ QXmppMamManager mam;
+ const QString jid;
+ JidDb db;
+ AtmDb atm_db;
+ QXmppAtmManager atm;
+ QXmppPubSubManager pubsub;
+ OmemoDb omemo_db;
+ QXmppOmemoManager omemo;
+};
+
+#endif