* Crash fix in management server * Openvpn scripts fixes some refactoring * deploy fix * Scripts fix for macos * OpenVpn runtime error codes handling * MacOS deploy script fix * easyrsa scripts for MacOS * Refactoring Ui improvements Bug fixes * new server page fix * Fix some warnings, fix installation scripts (macOS) * Fix crash on fatal error, remove moc files from Windows installation * ss files * Fix issue with easyrsa * ss files * shadowsocks impl * ss fix * ui fix * Macos doc icon * travis scripts * server scripts fix * icon changed * Server scripts fix * travis fix * Bug fixes: - auto install tap - share connectionState - service crash fix * travis release * macos deploy
34 lines
823 B
C++
34 lines
823 B
C++
#ifndef MESSAGE_H
|
|
#define MESSAGE_H
|
|
|
|
#include <QStringList>
|
|
|
|
class Message {
|
|
|
|
public:
|
|
enum class State {Unknown, Initialize, StartRequest, Started, FinishRequest, Finished,
|
|
RoutesAddRequest, RouteDeleteRequest, ClearSavedRoutesRequest, FlushDnsRequest, InstallDriverRequest};
|
|
Message(State state, const QStringList& args);
|
|
Message(const QString& data);
|
|
|
|
QString argAtIndex(int index) const;
|
|
QString argsToString() const;
|
|
QString toString() const;
|
|
QStringList args() const;
|
|
State state() const;
|
|
bool isValid() const;
|
|
QString rawData() const;
|
|
|
|
protected:
|
|
QString textState() const;
|
|
|
|
const QString m_argSeparator = ",";
|
|
const QString m_dataSeparator = "|";
|
|
|
|
bool m_valid;
|
|
State m_state;
|
|
QStringList m_args;
|
|
QString m_rawData;
|
|
};
|
|
|
|
#endif // MESSAGE_H
|