mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
29 lines
620 B
C++
29 lines
620 B
C++
#ifndef LOGINPARAMS_H
|
|
#define LOGINPARAMS_H
|
|
|
|
#include <QUrlQuery>
|
|
|
|
class LoginParams
|
|
{
|
|
public:
|
|
LoginParams();
|
|
~LoginParams();
|
|
|
|
void setUser(const QString user);
|
|
void setServer(const QString server);
|
|
void setPassword(const QString password);
|
|
void setUserAuthCookie(const QString cookie);
|
|
void setPrelogonAuthCookie(const QString cookie);
|
|
void setPreloginCookie(const QString cookie);
|
|
void setClientos(const QString clientos);
|
|
|
|
QByteArray toUtf8() const;
|
|
|
|
private:
|
|
QUrlQuery params;
|
|
|
|
void updateQueryItem(const QString key, const QString value);
|
|
};
|
|
|
|
#endif // LOGINPARAMS_H
|