first ever received and cached client data!

This commit is contained in:
Blue 2022-08-25 01:41:06 +03:00
parent 037dabbe06
commit c50cd1140e
Signed by: blue
GPG key ID: 9B203B252A63EE38
11 changed files with 297 additions and 60 deletions

View file

@ -19,17 +19,34 @@
#ifndef SHARED_IDENTITY_H
#define SHARED_IDENTITY_H
#include <QDataStream>
#include <QString>
namespace Shared {
struct Identity {
class Identity {
public:
Identity();
QDataStream& operator << (QDataStream& stream);
QDataStream& operator >> (QDataStream& stream) const;
bool operator < (const Identity& other) const;
bool operator > (const Identity& other) const;
bool operator >= (const Identity& other) const;
bool operator <= (const Identity& other) const;
bool operator == (const Identity& other) const;
bool operator != (const Identity& other) const;
public:
QString category;
QString type;
QString language;
QString name;
QString type;
};
}
QDataStream& operator << (QDataStream& stream, const Shared::Identity& identity);
QDataStream& operator >> (QDataStream& stream, Shared::Identity& identity);
#endif //SHARED_IDENTITY_H