Akonadi Contacts
contactgroupviewer.cpp
38 static QPixmap groupPixmap = QIcon::fromTheme(QStringLiteral("x-mail-distribution-list")).pixmap(QSize(100, 100));
39 mBrowser->document()->addResource(QTextDocument::ImageResource, QUrl(QStringLiteral("group_photo")), groupPixmap);
93 mParentCollectionFetchJob = new CollectionFetchJob(mCurrentItem.parentCollection(), CollectionFetchJob::Base, mParent);
94 mCollectionFetchJobConnection = mParent->connect(mParentCollectionFetchJob, &CollectionFetchJob::result, mParent, [this](KJob *job) {
136 connect(d->mBrowser, &Akonadi::TextBrowser::anchorClicked, this, &ContactGroupViewer::urlClicked);
187 d->mJobConnection = connect(d->mExpandJob, &ContactGroupExpandJob::result, this, [this](KJob *job) {
The interface for all contact group formatters.
Definition abstractcontactgroupformatter.h:38
virtual QString toHtml(HtmlForm form=SelfcontainedForm) const =0
This method must be reimplemented to return the contact group formatted as HTML according to the requ...
void setContactGroup(const KContacts::ContactGroup &group)
Sets the contact group that will be formatted.
Definition abstractcontactgroupformatter.cpp:31
void setAdditionalFields(const QList< QVariantMap > &fields)
Sets the additional fields that will be shown.
Definition abstractcontactgroupformatter.cpp:51
QString displayName() const
Job that expands a ContactGroup to a list of contacts.
Definition contactgroupexpandjob.h:55
A viewer component for contact groups in Akonadi.
Definition contactgroupviewer.h:47
void setContactGroup(const Akonadi::Item &group)
Sets the contact group that shall be displayed in the viewer.
Definition contactgroupviewer.cpp:152
void setContactGroupFormatter(Akonadi::AbstractContactGroupFormatter *formatter)
Sets the contact group formatter that should be used for formatting the contact group.
Definition contactgroupviewer.cpp:157
void urlClicked(const QUrl &url)
This signal is emitted whenever the user has clicked on a URL in the viewer (e.g.
~ContactGroupViewer() override
Destroys the contact group viewer.
ContactGroupViewer(QWidget *parent=nullptr)
Creates a new contact group viewer.
Definition contactgroupviewer.cpp:129
Akonadi::Item contactGroup() const
Returns the contact group that is currently displayed.
Definition contactgroupviewer.cpp:147
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
void fetchFullPayload(bool fetch=true)
void setItem(const Item &item)
Item item() const
ItemFetchScope & fetchScope()
Collection & parentCollection()
bool hasPayload() const
T payload() const
A class that formats a contact group as HTML code.
Definition standardcontactgroupformatter.h:44
AddresseeList List
void setName(const QString &name)
void append(const ContactGroupReference &reference)
QString name() const
int error() const
void result(KJob *job)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
A widget for editing the display name of a contact.
QPixmap pixmap(QWindow *window, const QSize &size, Mode mode, State state) const const
QIcon fromTheme(const QString &name)
void addWidget(QWidget *w)
void setContentsMargins(const QMargins &margins)
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
bool disconnect(const QMetaObject::Connection &connection)
void clear()
bool isEmpty() const const
ImageResource
QLayout * layout() const const
void setWindowTitle(const QString &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:05:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.