akonadi
contactgroupeditor.cpp
87 Akonadi::CollectionFetchJob *collectionFetchJob = new Akonadi::CollectionFetchJob( mItem.parentCollection(),
143 dlg->setInformativeText( i18n( "The contact group has been changed by someone else.\nWhat should be done?" ) );
216 d->mGui.membersView->setItemDelegate( new ContactGroupEditorDelegate( d->mGui.membersView, this ) );
237 Q_ASSERT_X( false, "ContactGroupEditor::loadContactGroup", "You are calling loadContactGroup in CreateMode!" );
281 dlg->setDescription( i18n( "Select the address book the new contact group shall be saved in:" ) );
309 d->mGui.membersView->header()->setDefaultSectionSize( d->mGui.membersView->header()->width() / 2 );
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
QString styleSheet() const
virtual int rowCount(const QModelIndex &parent) const =0
Definition: waitingoverlay_p.h:34
void setupUi(QWidget *widget)
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const =0
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
void setContactGroupTemplate(const KABC::ContactGroup &group)
Sets a contact group that is used as template in create mode.
Definition: contactgroupeditor.cpp:306
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
void loadContactGroup(const Akonadi::Item &group)
Loads the contact group into the editor.
Definition: contactgroupeditor.cpp:234
void fetchFullPayload(bool fetch=true)
Sets whether the full payload shall be fetched.
Definition: itemfetchscope.cpp:70
virtual ~ContactGroupEditor()
Destroys the contact group editor.
Definition: contactgroupeditor.cpp:229
Only fetch the base collection.
Definition: collectionfetchjob.h:62
Creates a new contact group.
Definition: contactgroupeditor.h:91
Only retrieve the immediate parent collection.
Definition: itemfetchscope.h:78
void setFocus()
Can create new items in this collection.
Definition: collection.h:89
void setInformativeText(const QString &text)
T & first()
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
int exec()
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
void setDescription(const QString &text)
Sets the text that will be shown in the dialog.
Definition: collectiondialog_desktop.cpp:372
An widget to edit contact groups in Akonadi.
Definition: contactgroupeditor.h:82
Edits an existing contact group.
Definition: contactgroupeditor.h:92
Job that modifies an existing item in the Akonadi storage.
Definition: itemmodifyjob.h:97
QString fromLatin1(const char *str, int size)
void addButton(QAbstractButton *button, ButtonRole role)
void setDefaultAddressBook(const Akonadi::Collection &addressbook)
Sets the addressbook which shall be used to store new contact groups.
Definition: contactgroupeditor.cpp:313
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool saveContactGroup()
Saves the contact group from the editor back to the storage.
Definition: contactgroupeditor.cpp:252
singleShot
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.