Changeset View
Changeset View
Standalone View
Standalone View
src/accountinfo.h
Show All 17 Lines | |||||
18 | 18 | | |||
19 | #ifndef ACCOUNT_INFO_WIDGET | 19 | #ifndef ACCOUNT_INFO_WIDGET | ||
20 | #define ACCOUNT_INFO_WIDGET | 20 | #define ACCOUNT_INFO_WIDGET | ||
21 | 21 | | |||
22 | #include <QModelIndex> | 22 | #include <QModelIndex> | ||
23 | 23 | | |||
24 | #include <QWidget> | 24 | #include <QWidget> | ||
25 | #include <QStringList> | 25 | #include <QStringList> | ||
26 | #include <QPushButton> | ||||
26 | #include "lib/accountmodel.h" | 27 | #include "lib/accountmodel.h" | ||
27 | 28 | | |||
28 | class KJob; | 29 | class KJob; | ||
29 | namespace Ui { | 30 | namespace Ui { | ||
30 | class AccountInfo; | 31 | class AccountInfo; | ||
31 | } | 32 | } | ||
32 | class PasswordEdit; | 33 | class PasswordEdit; | ||
33 | class AccountModel; | 34 | class AccountModel; | ||
Show All 31 Lines | 61 | private: | |||
65 | QString cleanEmail(QString email); | 66 | QString cleanEmail(QString email); | ||
66 | bool validateEmail(const QString &email) const; | 67 | bool validateEmail(const QString &email) const; | ||
67 | QStringList imageFormats() const; | 68 | QStringList imageFormats() const; | ||
68 | 69 | | |||
69 | QPixmap m_positive; | 70 | QPixmap m_positive; | ||
70 | QPixmap m_negative; | 71 | QPixmap m_negative; | ||
71 | Ui::AccountInfo * m_info; | 72 | Ui::AccountInfo * m_info; | ||
72 | AccountModel* m_model; | 73 | AccountModel* m_model; | ||
73 | PasswordEdit *m_passwordEdit; | 74 | QPushButton *m_changePasswordButton; | ||
74 | QModelIndex m_index; | 75 | QModelIndex m_index; | ||
75 | QMap<AccountModel::Role, QVariant> m_infoToSave; | 76 | QMap<AccountModel::Role, QVariant> m_infoToSave; | ||
76 | }; | 77 | }; | ||
77 | 78 | | |||
78 | #endif //ACCOUNT_INFO_WIDGET | 79 | #endif //ACCOUNT_INFO_WIDGET |