File indexing completed on 2024-05-12 05:06:06
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 #include "kmm_base_dialogs_export.h" 0011 0012 // ---------------------------------------------------------------------------- 0013 // QT Includes 0014 0015 #include <QDialog> 0016 0017 // ---------------------------------------------------------------------------- 0018 // KDE Includes 0019 0020 // ---------------------------------------------------------------------------- 0021 // Project Includes 0022 0023 struct ContactData; 0024 0025 // This dialog lets the user create/edit a file. 0026 // Use the second constructor to edit a file. 0027 class EditPersonalDataDlgPrivate; 0028 class KMM_BASE_DIALOGS_EXPORT EditPersonalDataDlg : public QDialog 0029 { 0030 Q_OBJECT 0031 Q_DISABLE_COPY(EditPersonalDataDlg) 0032 0033 public: 0034 explicit EditPersonalDataDlg(QWidget *parent, const QString& title); 0035 explicit EditPersonalDataDlg(QString userName, 0036 QString userStreet, 0037 QString userTown, 0038 QString userCounty, 0039 QString userPostcode, 0040 QString userTelephone, 0041 QString userEmail, 0042 QWidget *parent, 0043 const QString& title); 0044 ~EditPersonalDataDlg(); 0045 0046 QString userName() const; 0047 QString userStreet() const; 0048 QString userTown() const; 0049 QString userCountry() const; 0050 QString userPostcode() const; 0051 QString userTelephone() const; 0052 QString userEmail() const; 0053 0054 protected Q_SLOTS: 0055 void okClicked(); 0056 void loadFromAddressBook(); 0057 /** Gets the result of searching for the contact details of the current user */ 0058 void slotContactFetched(const ContactData &identity); 0059 0060 private: 0061 EditPersonalDataDlgPrivate * const d_ptr; 0062 Q_DECLARE_PRIVATE(EditPersonalDataDlg) 0063 }; 0064 0065 #endif