akonadi
contacteditor.cpp
50 Private( ContactEditor::Mode mode, ContactEditor::DisplayMode displayMode, AbstractContactEditorWidget *editorWidget, ContactEditor *parent )
57 mEditorWidget = new ContactEditorWidget(displayMode == FullMode ? ContactEditorWidget::FullMode : ContactEditorWidget::VCardMode, 0);
113 Akonadi::CollectionFetchJob *collectionFetchJob = new Akonadi::CollectionFetchJob( mItem.parentCollection(),
168 dlg->setInformativeText( i18n( "The contact has been changed by someone else.\nWhat should be done?" ) );
184 void ContactEditor::Private::loadContact( const KABC::Addressee &addr, const ContactMetaData &metaData )
209 ContactEditor::ContactEditor( Mode mode, AbstractContactEditorWidget *editorWidget, QWidget *parent )
227 Q_ASSERT_X( false, "ContactEditor::loadContact", "You are calling loadContact in CreateMode!" );
void fetchAttribute(const QByteArray &type, bool fetch=true)
Sets whether the attribute of the given type should be fetched.
Definition: itemfetchscope.cpp:78
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:175
Attribute to store contact specific meta data.
Definition: contactmetadataattribute_p.h:38
Job that fetches collections from the Akonadi storage.
Definition: collectionfetchjob.h:53
void ignoreSession(Session *session)
Ignores all change notifications caused by the given session.
Definition: monitor.cpp:166
AKONADI_CONTACT_DEPRECATED bool saveContact()
Saves the contact from the editor back to the storage.
Definition: contacteditor.cpp:296
void fetchFullPayload(bool fetch=true)
Sets whether the full payload shall be fetched.
Definition: itemfetchscope.cpp:68
static Session * defaultSession()
Returns the default session for this thread.
Definition: session.cpp:444
Only fetch the base collection.
Definition: collectionfetchjob.h:62
A helper class for storing contact specific settings.
Definition: contactmetadata_p.h:36
void setContactTemplate(const KABC::Addressee &contact)
Sets a contact that is used as template in create mode.
Definition: contacteditor.cpp:349
void loadContact(const Akonadi::Item &contact)
Loads the contact into the editor.
Definition: contacteditor.cpp:224
Only retrieve the immediate parent collection.
Definition: itemfetchscope.h:77
Can create new items in this collection.
Definition: collection.h:89
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook which shall be used to store new contacts.
Definition: contacteditor.cpp:354
Job that creates a new item in the Akonadi storage.
Definition: itemcreatejob.h:73
Rights rights() const
Returns the rights the user has on the collection.
Definition: collection.cpp:99
A QPointer which when destructed, deletes the object it points to.
Definition: autoqpointer_p.h:34
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval. ...
Definition: itemfetchscope.cpp:128
ContactEditor(Mode mode, QWidget *parent=0)
Creates a new contact editor with the standard editor widget.
Definition: contacteditor.cpp:204
Job that modifies an existing item in the Akonadi storage.
Definition: itemmodifyjob.h:97
void saveContactInAddressBook()
Save the contact from the editor back to the storage.
Definition: contacteditor.cpp:248
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.