File indexing completed on 2024-05-12 16:42:00
0001 /* 0002 SPDX-FileCopyrightText: 2000-2004 Michael Edwardes <mte@users.sourceforge.net> 0003 SPDX-FileCopyrightText: 2017-2018 Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef EDITPERSONALDATADLG_H 0008 #define EDITPERSONALDATADLG_H 0009 0010 // ---------------------------------------------------------------------------- 0011 // QT Includes 0012 0013 #include <QDialog> 0014 0015 // ---------------------------------------------------------------------------- 0016 // KDE Includes 0017 0018 // ---------------------------------------------------------------------------- 0019 // Project Includes 0020 0021 struct ContactData; 0022 0023 // This dialog lets the user create/edit a file. 0024 // Use the second constructor to edit a file. 0025 class EditPersonalDataDlgPrivate; 0026 class EditPersonalDataDlg : public QDialog 0027 { 0028 Q_OBJECT 0029 Q_DISABLE_COPY(EditPersonalDataDlg) 0030 0031 public: 0032 explicit EditPersonalDataDlg(QWidget *parent, const QString& title); 0033 explicit EditPersonalDataDlg(QString userName, 0034 QString userStreet, 0035 QString userTown, 0036 QString userCounty, 0037 QString userPostcode, 0038 QString userTelephone, 0039 QString userEmail, 0040 QWidget *parent, 0041 const QString& title); 0042 ~EditPersonalDataDlg(); 0043 0044 QString userName() const; 0045 QString userStreet() const; 0046 QString userTown() const; 0047 QString userCountry() const; 0048 QString userPostcode() const; 0049 QString userTelephone() const; 0050 QString userEmail() const; 0051 0052 protected Q_SLOTS: 0053 void okClicked(); 0054 void loadFromAddressBook(); 0055 /** Gets the result of searching for the contact details of the current user */ 0056 void slotContactFetched(const ContactData &identity); 0057 0058 private: 0059 EditPersonalDataDlgPrivate * const d_ptr; 0060 Q_DECLARE_PRIVATE(EditPersonalDataDlg) 0061 }; 0062 0063 #endif