Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/editpersonaldatadlg.h
Context not available. | |||||
3 | ------------------- | 3 | ------------------- | ||
---|---|---|---|---|---|
4 | copyright : (C) 2000 by Michael Edwardes | 4 | copyright : (C) 2000 by Michael Edwardes | ||
5 | email : mte@users.sourceforge.net | 5 | email : mte@users.sourceforge.net | ||
6 | (C) 2017 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||||
6 | ***************************************************************************/ | 7 | ***************************************************************************/ | ||
7 | 8 | | |||
8 | /*************************************************************************** | 9 | /*************************************************************************** | ||
Context not available. | |||||
14 | * * | 15 | * * | ||
15 | ***************************************************************************/ | 16 | ***************************************************************************/ | ||
16 | 17 | | |||
17 | #ifndef KNEWFILEDLG_H | 18 | #ifndef EDITPERSONALDATADLG_H | ||
18 | #define KNEWFILEDLG_H | 19 | #define EDITPERSONALDATADLG_H | ||
19 | 20 | | |||
20 | // ---------------------------------------------------------------------------- | 21 | // ---------------------------------------------------------------------------- | ||
21 | // QT Includes | 22 | // QT Includes | ||
Context not available. | |||||
32 | 33 | | |||
33 | // This dialog lets the user create/edit a file. | 34 | // This dialog lets the user create/edit a file. | ||
34 | // Use the second constructor to edit a file. | 35 | // Use the second constructor to edit a file. | ||
36 | class EditPersonalDataDlgPrivate; | ||||
35 | class EditPersonalDataDlg : public QDialog | 37 | class EditPersonalDataDlg : public QDialog | ||
36 | { | 38 | { | ||
37 | Q_OBJECT | 39 | Q_OBJECT | ||
38 | public: | 40 | Q_DISABLE_COPY(EditPersonalDataDlg) | ||
39 | explicit EditPersonalDataDlg(QWidget *parent = 0, const QString& title = QString()); | | |||
40 | explicit EditPersonalDataDlg(QString userName, QString userStreet, | | |||
41 | QString userTown, QString userCounty, QString userPostcode, QString userTelephone, | | |||
42 | QString userEmail, QWidget *parent = 0, const QString& title = QString()); | | |||
43 | ~EditPersonalDataDlg(); | | |||
44 | 41 | | |||
45 | public: | 42 | public: | ||
46 | QString userNameText; | 43 | explicit EditPersonalDataDlg(QWidget *parent, const QString& title); | ||
47 | QString userStreetText; | 44 | explicit EditPersonalDataDlg(QString userName, | ||
48 | QString userTownText; | 45 | QString userStreet, | ||
49 | QString userCountyText; | 46 | QString userTown, | ||
50 | QString userPostcodeText; | 47 | QString userCounty, | ||
51 | QString userTelephoneText; | 48 | QString userPostcode, | ||
52 | QString userEmailText; | 49 | QString userTelephone, | ||
50 | QString userEmail, | ||||
51 | QWidget *parent, | ||||
52 | const QString& title); | ||||
53 | ~EditPersonalDataDlg(); | ||||
53 | 54 | | |||
54 | protected: | 55 | QString userName() const; | ||
55 | /// helper method for constructors | 56 | QString userStreet() const; | ||
56 | void init(const QString& title); | 57 | QString userTown() const; | ||
58 | QString userCountry() const; | ||||
59 | QString userPostcode() const; | ||||
60 | QString userTelephone() const; | ||||
61 | QString userEmail() const; | ||||
57 | 62 | | |||
58 | protected slots: | 63 | protected slots: | ||
59 | void okClicked(); | 64 | void okClicked(); | ||
Context not available. | |||||
62 | void slotContactFetched(const ContactData &identity); | 67 | void slotContactFetched(const ContactData &identity); | ||
63 | 68 | | |||
64 | private: | 69 | private: | ||
65 | /// \internal d-pointer class. | 70 | EditPersonalDataDlgPrivate * const d_ptr; | ||
66 | struct Private; | 71 | Q_DECLARE_PRIVATE(EditPersonalDataDlg) | ||
67 | /// \internal d-pointer instance. | | |||
68 | Private* const d; | | |||
69 | }; | 72 | }; | ||
70 | 73 | | |||
71 | #endif | 74 | #endif | ||
Context not available. |