Akonadi Contacts

personaleditorwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2016-2023 Laurent Montel <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #pragma once
10 
11 #include <QWidget>
12 class DateEditWidget;
13 class KLineEdit;
14 namespace KContacts
15 {
16 class Addressee;
17 }
18 
19 namespace ContactEditor
20 {
21 class PersonalEditorWidget : public QWidget
22 {
23  Q_OBJECT
24 public:
25  explicit PersonalEditorWidget(QWidget *parent = nullptr);
26  ~PersonalEditorWidget() override;
27  void loadContact(const KContacts::Addressee &contact);
28  void storeContact(KContacts::Addressee &contact);
29  void setReadOnly(bool readOnly);
30 
31 private:
32  DateEditWidget *mBirthdateWidget = nullptr;
33  DateEditWidget *mAnniversaryWidget = nullptr;
34  KLineEdit *mPartnerWidget = nullptr;
35 };
36 }
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Apr 1 2023 04:09:05 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.