#ifndef TYPESDATASERVERCLIENT_H
#define TYPESDATASERVERCLIENT_H

#include <QList>
#include <QString>

#define NOTIFY_SERVER_END            "END"
#define NOTIFY_SERVER_BLOCKED   "BLOCKED"
#define SERVER_HELLO                     "NewConnection. I am server LMS!"

enum EStateServer{started, stoped};
enum EStateBlockAutorization{blocked, unblocked};

struct FileData
{
    QString path;
    QString hash;

    bool operator==(const FileData& other)const
    {
        if (this->path== other.path && this->hash == other.hash) return true;
        return false;
    }

};

struct SAttribute
{
    QString name;
    QString value;

};

struct SXmlAnswerTag
{
    QString elementName;
    QList<SAttribute> attr;
};

class ClientAutorization
{
public:
    QString Login;
    QString Password;
    int NumberOfScreen;
};

class ServerMessage
{
public:
    QString Text;
};

class ClientMessage
{
public:
    QString Text;
};

class ServerTask
{
public:
    QString Text;
};

class ServerNotify
{
public:
    QString Code;
};

class ClientNotify
{
public:
    QString Code;
};

class DataInfo{
public:
    QString path;
    quint64 size;
};

#endif // TYPESDATASERVERCLIENT_H
