#ifndef AUTH_H #define AUTH_H // This file is part of MRCI. // MRCI is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // MRCI is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with MRCI under the LICENSE.md file. If not, see // . #include "../common.h" #include "../cmd_object.h" #include "table_viewer.h" class Auth : public CmdObject { Q_OBJECT private: QByteArray uId; QString uName; QString ip; bool loginOk; bool newPassword; bool newUserName; void confirmAuth(); void addToThreshold(); public: static QString cmdName(); void procIn(const QByteArray &binIn, quint8 dType); explicit Auth(QObject *parent = nullptr); }; //------------------------ class AuthLog : public TableViewer { Q_OBJECT public: static QString cmdName(); explicit AuthLog(QObject *parent = nullptr); }; #endif // AUTH_H