rssguard/src/librssguard/services/abstract/gui/authenticationdetails.h
2023-08-23 09:08:40 +02:00

28 lines
871 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 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