Changeset View
Changeset View
Standalone View
Standalone View
kded/passworddialog.h
Show All 31 Lines | |||||
32 | } | 32 | } | ||
33 | 33 | | |||
34 | class SettingWidget; | 34 | class SettingWidget; | ||
35 | 35 | | |||
36 | class Q_DECL_EXPORT PasswordDialog : public QDialog | 36 | class Q_DECL_EXPORT PasswordDialog : public QDialog | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | public: | 39 | public: | ||
40 | explicit PasswordDialog(const NMVariantMapMap &connection, | 40 | explicit PasswordDialog(const NetworkManager::ConnectionSettings::Ptr &connectionSettings, | ||
41 | NetworkManager::SecretAgent::GetSecretsFlags flags, | 41 | NetworkManager::SecretAgent::GetSecretsFlags flags, | ||
42 | const QString &setting_name, | 42 | const QString &setting_name, | ||
43 | QWidget *parent = 0); | 43 | QWidget *parent = 0); | ||
44 | ~PasswordDialog(); | 44 | ~PasswordDialog(); | ||
45 | void setupGenericUi(const NetworkManager::ConnectionSettings &connectionSettings); | | |||
46 | void setupVpnUi(const NetworkManager::ConnectionSettings &connectionSettings); | | |||
47 | 45 | | |||
48 | bool hasError() const; | 46 | bool hasError() const; | ||
49 | NetworkManager::SecretAgent::Error error() const; | 47 | NetworkManager::SecretAgent::Error error() const; | ||
50 | QString errorMessage() const; | 48 | QString errorMessage() const; | ||
51 | 49 | | |||
52 | NMVariantMapMap secrets() const; | 50 | NMVariantMapMap secrets() const; | ||
53 | 51 | | |||
54 | private Q_SLOTS: | | |||
55 | void showPassword(bool show); | | |||
56 | | ||||
57 | private: | 52 | private: | ||
58 | Ui::PasswordDialog *ui; | 53 | void initializeUi(); | ||
59 | SettingWidget *vpnWidget; | 54 | | ||
60 | NMVariantMapMap m_connection; | 55 | Ui::PasswordDialog *m_ui; | ||
61 | NetworkManager::SecretAgent::GetSecretsFlags m_flags; | 56 | bool m_hasError; | ||
57 | QString m_errorMessage; | ||||
62 | QString m_settingName; | 58 | QString m_settingName; | ||
63 | QStringList m_neededSecrets; | 59 | QStringList m_neededSecrets; | ||
64 | bool m_hasError; | 60 | NetworkManager::ConnectionSettings::Ptr m_connectionSettings; | ||
65 | NetworkManager::SecretAgent::Error m_error; | 61 | NetworkManager::SecretAgent::Error m_error; | ||
66 | QString m_errorMessage; | 62 | NetworkManager::SecretAgent::GetSecretsFlags m_flags; | ||
63 | SettingWidget *m_vpnWidget; | ||||
64 | | ||||
67 | }; | 65 | }; | ||
68 | 66 | | |||
69 | #endif // PLASMA_NM_PASSWORD_DIALOG_H | 67 | #endif // PLASMA_NM_PASSWORD_DIALOG_H |