Changeset View
Changeset View
Standalone View
Standalone View
src/accountinfo.h
Show All 16 Lines | |||||
17 | *************************************************************************************/ | 17 | *************************************************************************************/ | ||
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 <QtCore/QModelIndex> | 22 | #include <QtCore/QModelIndex> | ||
23 | 23 | | |||
24 | #include <QWidget> | 24 | #include <QWidget> | ||
25 | #include <QStringList> | ||||
25 | #include "lib/accountmodel.h" | 26 | #include "lib/accountmodel.h" | ||
26 | 27 | | |||
27 | class KJob; | 28 | class KJob; | ||
28 | namespace Ui { | 29 | namespace Ui { | ||
29 | class AccountInfo; | 30 | class AccountInfo; | ||
30 | } | 31 | } | ||
31 | class PasswordEdit; | 32 | class PasswordEdit; | ||
32 | class AccountModel; | 33 | class AccountModel; | ||
Show All 25 Lines | 35 | { | |||
58 | 59 | | |||
59 | private: | 60 | private: | ||
60 | QString cleanName(QString name) const; | 61 | QString cleanName(QString name) const; | ||
61 | bool validateName(const QString &name) const; | 62 | bool validateName(const QString &name) const; | ||
62 | QString cleanUsername(QString username); | 63 | QString cleanUsername(QString username); | ||
63 | bool validateUsername(QString username) const; | 64 | bool validateUsername(QString username) const; | ||
64 | QString cleanEmail(QString email); | 65 | QString cleanEmail(QString email); | ||
65 | bool validateEmail(const QString &email) const; | 66 | bool validateEmail(const QString &email) const; | ||
67 | QStringList imageFormats() const; | ||||
66 | 68 | | |||
67 | QPixmap m_positive; | 69 | QPixmap m_positive; | ||
68 | QPixmap m_negative; | 70 | QPixmap m_negative; | ||
69 | Ui::AccountInfo * m_info; | 71 | Ui::AccountInfo * m_info; | ||
70 | AccountModel* m_model; | 72 | AccountModel* m_model; | ||
71 | PasswordEdit *m_passwordEdit; | 73 | PasswordEdit *m_passwordEdit; | ||
72 | QModelIndex m_index; | 74 | QModelIndex m_index; | ||
73 | QMap<AccountModel::Role, QVariant> m_infoToSave; | 75 | QMap<AccountModel::Role, QVariant> m_infoToSave; | ||
74 | }; | 76 | }; | ||
75 | 77 | | |||
76 | #endif //ACCOUNT_INFO_WIDGET | 78 | #endif //ACCOUNT_INFO_WIDGET |