mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-04-02 18:31:50 -04:00
28 lines
582 B
C++
28 lines
582 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);
|
|
|
|
QByteArray toUtf8() const;
|
|
|
|
private:
|
|
QUrlQuery params;
|
|
|
|
void updateQueryItem(const QString &key, const QString &value);
|
|
};
|
|
|
|
#endif // LOGINPARAMS_H
|