forked from blue/squawk
first ever received and cached client data!
This commit is contained in:
parent
037dabbe06
commit
c50cd1140e
11 changed files with 297 additions and 60 deletions
|
@ -21,6 +21,9 @@
|
|||
|
||||
#include <QDataStream>
|
||||
#include <QString>
|
||||
#include <QCryptographicHash>
|
||||
|
||||
#include <shared/identity.h>
|
||||
|
||||
namespace Shared {
|
||||
|
||||
|
@ -30,24 +33,26 @@ public:
|
|||
ClientInfo();
|
||||
|
||||
QString getId() const;
|
||||
bool valid() const;
|
||||
|
||||
QDataStream& operator << (QDataStream& stream);
|
||||
QDataStream& operator >> (QDataStream& stream) const;
|
||||
|
||||
public:
|
||||
QString name;
|
||||
QString category;
|
||||
QString type;
|
||||
QString capabilitiesNode;
|
||||
QString capabilitiesVerification;
|
||||
QString capabilitiesHash;
|
||||
std::set<Identity> identities;
|
||||
std::set<QString> extensions;
|
||||
QString node;
|
||||
QString verification;
|
||||
QString hash;
|
||||
QString specificPresence;
|
||||
std::set<QString> capabilitiesExtensions;
|
||||
|
||||
private:
|
||||
static const std::map<QString, QCryptographicHash::Algorithm> hashes;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
QDataStream& operator<< (QDataStream& stream, const Shared::ClientInfo& image);
|
||||
QDataStream& operator>> (QDataStream& stream, Shared::ClientInfo& image);
|
||||
QDataStream& operator << (QDataStream& stream, const Shared::ClientInfo& info);
|
||||
QDataStream& operator >> (QDataStream& stream, Shared::ClientInfo& info);
|
||||
|
||||
#endif // SHARED_CLIENTINFO_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue