ContactEditorWidget

ContactEditorWidget Class Reference

#include <contacteditorwidget.h>

Inherits AbstractContactEditorWidget.

Public Types

enum  DisplayMode { FullMode, VCardMode }
 

Public Member Functions

 ContactEditorWidget (QWidget *parent=nullptr)
 
 ContactEditorWidget (DisplayMode displayMode, QWidget *parent)
 
 ~ContactEditorWidget () override
 
void loadContact (const KContacts::Addressee &contact, const ContactEditor::ContactMetaDataBase &metaData) override
 
void setReadOnly (bool readOnly) override
 
void storeContact (KContacts::Addressee &contact, ContactEditor::ContactMetaDataBase &metaData) const override
 

Detailed Description

A widget for editing a contact.

Author
Tobias Koenig tokoe[email protected]@kde[email protected].org

Definition at line 23 of file contacteditorwidget.h.

Member Enumeration Documentation

Enumerator
FullMode 

Show all pages.

VCardMode 

Show just pages with elements stored in vcard.

Definition at line 27 of file contacteditorwidget.h.

Constructor & Destructor Documentation

ContactEditorWidget::ContactEditorWidget ( QWidget parent = nullptr)
explicit

Creates a new contact editor widget.

Parameters
parentThe parent widget.

Definition at line 176 of file contacteditorwidget.cpp.

ContactEditorWidget::~ContactEditorWidget ( )
override

Destroys the contact editor widget.

Definition at line 190 of file contacteditorwidget.cpp.

Member Function Documentation

void ContactEditorWidget::loadContact ( const KContacts::Addressee contact,
const ContactEditor::ContactMetaDataBase &  metaData 
)
override

Initializes the fields of the contact editor with the values from a contact.

Definition at line 195 of file contacteditorwidget.cpp.

void ContactEditorWidget::setReadOnly ( bool  readOnly)
override

Sets whether the contact in the editor allows the user to edit the contact or not.

Definition at line 249 of file contacteditorwidget.cpp.

void ContactEditorWidget::storeContact ( KContacts::Addressee contact,
ContactEditor::ContactMetaDataBase &  metaData 
) const
override

Stores back the fields of the contact editor into the given contact.

Definition at line 221 of file contacteditorwidget.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Dec 3 2020 23:10:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.