28 lines
888 B
C++
28 lines
888 B
C++
// For license of this file, see <project-root-folder>/LICENSE.md.
|
|
|
|
#ifndef AUTHENTICATIONDETAILS_H
|
|
#define AUTHENTICATIONDETAILS_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include "ui_authenticationdetails.h"
|
|
|
|
#include "network-web/networkfactory.h"
|
|
#include "services/abstract/feed.h"
|
|
|
|
class RSSGUARD_DLLSPEC AuthenticationDetails : public QWidget, public Ui::AuthenticationDetails {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AuthenticationDetails(bool only_basic, QWidget* parent = nullptr);
|
|
|
|
void setAuthenticationType(NetworkFactory::NetworkFactory::NetworkAuthentication protect);
|
|
NetworkFactory::NetworkFactory::NetworkAuthentication authenticationType() const;
|
|
|
|
private slots:
|
|
void onUsernameChanged(const QString& new_username);
|
|
void onPasswordChanged(const QString& new_password);
|
|
void onAuthenticationSwitched();
|
|
};
|
|
|
|
#endif // AUTHENTICATIONDETAILS_H
|