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!" );
QLayout * layout() const
void setAccessRightsFilter(Collection::Rights rights)
Sets the access rights that the listed collections shall match with.
Definition: collectiondialog_desktop.cpp:359
Akonadi::Collection selectedCollection() const
Returns the selected collection if the selection mode is QAbstractItemView::SingleSelection.
Definition: collectiondialog_desktop.cpp:309
void fetchAttribute(const QByteArray &type, bool fetch=true)
Sets whether the attribute of the given type should be fetched.
Definition: itemfetchscope.cpp:80
Collection::List collections() const
Returns the list of fetched collection.
Definition: collectionfetchjob.cpp:169
void setMimeTypeFilter(const QStringList &mimeTypes)
Sets the mime types any of which the selected collection(s) shall support.
Definition: collectiondialog_desktop.cpp:338
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:206
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:70
static Session * defaultSession()
Returns the default session for this thread.
Definition: session.cpp:496
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Show just pages with elements stored in vcard.
Definition: contacteditorwidget.h:42
A helper class for storing contact specific settings.
Definition: contactmetadata_p.h:36
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
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:78
Can create new items in this collection.
Definition: collection.h:89
T & first()
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook which shall be used to store new contacts.
Definition: contacteditor.cpp:354
void setMargin(int margin)
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:132
ContactEditor(Mode mode, QWidget *parent=0)
Creates a new contact editor with the standard editor widget.
Definition: contacteditor.cpp:204
void setDescription(const QString &text)
Sets the text that will be shown in the dialog.
Definition: collectiondialog_desktop.cpp:372
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
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setSpacing(int spacing)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.