Akonadi Contacts

contacteditorwidget.h
1 /*
2  This file is part of Contact Editor.
3 
4  SPDX-FileCopyrightText: 2009 Tobias Koenig <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.0-or-later
7 */
8 
9 #ifndef CONTACTEDITOR_H
10 #define CONTACTEDITOR_H
11 
12 #include "abstractcontacteditorwidget_p.h"
13 #include "contacteditor_export.h"
14 namespace KContacts {
15 class Addressee;
16 }
17 
23 class CONTACTEDITOR_EXPORT ContactEditorWidget : public ContactEditor::AbstractContactEditorWidget
24 {
25  Q_OBJECT
26 public:
27  enum DisplayMode {
29  VCardMode
30  };
31 
37  explicit ContactEditorWidget(QWidget *parent = nullptr);
38 
39  ContactEditorWidget(DisplayMode displayMode, QWidget *parent);
40 
44  ~ContactEditorWidget() override;
45 
50  void loadContact(const KContacts::Addressee &contact, const ContactEditor::ContactMetaDataBase &metaData) override;
51 
56  void storeContact(KContacts::Addressee &contact, ContactEditor::ContactMetaDataBase &metaData) const override;
57 
62  void setReadOnly(bool readOnly) override;
63 
64 private:
65  class Private;
66  Private *const d;
67 };
68 
69 #endif
A widget for editing a contact.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Sep 25 2020 23:09:16 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.