diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-03 15:59:29 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2026-02-03 16:26:52 +0100 |
| commit | fdb64c59865e4db76addfb8222f6421443e25240 (patch) | |
| tree | 0de2bad9f758c69b7fb9ba2670653c8515a3a70d /client.h | |
| parent | 207176de48d5e44c8d3e6318b526db5d772dd008 (diff) | |
| download | yachat6-fdb64c59865e4db76addfb8222f6421443e25240.tar.gz | |
Import files from xxcc
Diffstat (limited to 'client.h')
| -rw-r--r-- | client.h | 40 |
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 |
