work progress: trust manager. DOESN'T START!

This commit is contained in:
Blue 2022-12-19 18:43:24 +03:00
parent 0b61b6e928
commit db3bc358a7
Signed by untrusted user: blue
GPG key ID: 9B203B252A63EE38
20 changed files with 634 additions and 55 deletions

View file

@ -23,7 +23,8 @@
#include <QObject>
#include <QString>
#include <core/storage/cache.h>
#include <cache.h>
#include <shared/clientinfo.h>
#include <shared/identity.h>
@ -46,8 +47,9 @@ public slots:
bool registerClientInfo(const QString& sourceFullJid, const QString& id, const std::set<Shared::Identity>& identities, const std::set<QString>& features);
private:
DataBase db;
DataBase::Cache<QString, Shared::ClientInfo>* cache;
std::map<QString, Shared::ClientInfo> requested;
Cache<QString, Shared::ClientInfo> cache;
std::map<QString, Shared::ClientInfo> specific;
};