Debian Codegraph @

src/librssguard/services/abstract/gui/authenticationdetails.h

raw symbols SCIP
1 // For license of this file, see <project-root-folder>/LICENSE.md.
2
3 #ifndef AUTHENTICATIONDETAILS_H
4 #define AUTHENTICATIONDETAILS_H
5
6 #include "network-web/networkfactory.h"
7 #include "services/abstract/feed.h"
8
9 #include <QWidget>
10
11 namespace Ui {
12 class AuthenticationDetails;
13 }
14
15 class RSSGUARD_DLLSPEC AuthenticationDetails : public QWidget {
16 Q_OBJECT
17
18 public:
19 explicit AuthenticationDetails(bool only_basic, QWidget* parent = nullptr);
20 virtual ~AuthenticationDetails();
21
22 QString username() const;
23 void setUsername(const QString& username);
24
25 QString password() const;
26 void setPassword(const QString& password);
27
28 void setAuthenticationType(NetworkFactory::NetworkFactory::NetworkAuthentication protect);
29 NetworkFactory::NetworkFactory::NetworkAuthentication authenticationType() const;
30
31 private slots:
32 void onUsernameChanged(const QString& new_username);
33 void onPasswordChanged(const QString& new_password);
34 void onAuthenticationSwitched();
35
36 private:
37 QScopedPointer<Ui::AuthenticationDetails> m_ui;
38 };
39
40 #endif // AUTHENTICATIONDETAILS_H