Changeset View
Changeset View
Standalone View
Standalone View
resources/pop3/accountwidget.h
Show All 19 Lines | |||||
20 | * | 20 | * | ||
21 | */ | 21 | */ | ||
22 | 22 | | |||
23 | #ifndef ACCOUNT_WIDGET_H | 23 | #ifndef ACCOUNT_WIDGET_H | ||
24 | #define ACCOUNT_WIDGET_H | 24 | #define ACCOUNT_WIDGET_H | ||
25 | 25 | | |||
26 | #include "ui_popsettings.h" | 26 | #include "ui_popsettings.h" | ||
27 | 27 | | |||
28 | class Settings; | ||||
29 | | ||||
28 | namespace MailTransport { | 30 | namespace MailTransport { | ||
29 | class ServerTest; | 31 | class ServerTest; | ||
30 | } | 32 | } | ||
31 | namespace KWallet { | 33 | namespace KWallet { | ||
32 | class Wallet; | 34 | class Wallet; | ||
33 | } | 35 | } | ||
34 | 36 | | |||
35 | class KJob; | 37 | class KJob; | ||
36 | 38 | | |||
37 | class AccountWidget : public QWidget, private Ui::PopPage | 39 | class AccountWidget : public QWidget, private Ui::PopPage | ||
38 | { | 40 | { | ||
39 | Q_OBJECT | 41 | Q_OBJECT | ||
40 | 42 | | |||
41 | public: | 43 | public: | ||
42 | AccountWidget(const QString &identifier, QWidget *parent); | 44 | AccountWidget(Settings &settings, const QString &identifier, QWidget *parent); | ||
43 | ~AccountWidget() override; | 45 | ~AccountWidget() override; | ||
44 | 46 | | |||
45 | void loadSettings(); | 47 | void loadSettings(); | ||
46 | void saveSettings(); | 48 | void saveSettings(); | ||
47 | 49 | | |||
48 | Q_SIGNALS: | 50 | Q_SIGNALS: | ||
49 | void okEnabled(bool enabled); | 51 | void okEnabled(bool enabled); | ||
50 | 52 | | |||
Show All 26 Lines | |||||
77 | private: | 79 | private: | ||
78 | QButtonGroup *encryptionButtonGroup = nullptr; | 80 | QButtonGroup *encryptionButtonGroup = nullptr; | ||
79 | MailTransport::ServerTest *mServerTest = nullptr; | 81 | MailTransport::ServerTest *mServerTest = nullptr; | ||
80 | QRegExpValidator mValidator; | 82 | QRegExpValidator mValidator; | ||
81 | bool mServerTestFailed = false; | 83 | bool mServerTestFailed = false; | ||
82 | KWallet::Wallet *mWallet = nullptr; | 84 | KWallet::Wallet *mWallet = nullptr; | ||
83 | QString mInitalPassword; | 85 | QString mInitalPassword; | ||
84 | QString mIdentifier; | 86 | QString mIdentifier; | ||
87 | Settings &mSettings; | ||||
85 | }; | 88 | }; | ||
86 | 89 | | |||
87 | #endif | 90 | #endif |