akonadi
contactviewer.cpp
78 void updateView( const QVariantList &localCustomFieldDescriptions = QVariantList(), const QString &addressBookName = QString() )
80 static QPixmap defaultPixmap = KIcon( QLatin1String( "user-identity" ) ).pixmap( QSize( 100, 100 ) );
81 static QPixmap defaultMapPixmap = KIcon( QLatin1String( "document-open-remote" ) ).pixmap( QSize( 16, 16 ) );
82 static QPixmap defaultSmsPixmap = KIcon( IMProtocols::self()->icon( QString::fromLatin1( "messaging/sms" ) ) ).pixmap( QSize( 16, 16 ) );
141 const CustomField::List globalCustomFields = CustomFieldManager::globalCustomFieldDescriptions();
152 contact.insertCustom( QLatin1String( "KADDRESSBOOK" ), QLatin1String( "AddressBook" ), addressBookName );
305 disconnect( d->mParentCollectionFetchJob, SIGNAL(result(KJob*)), this, SLOT(slotParentCollectionFetched(KJob*)) );
310 d->mParentCollectionFetchJob = new CollectionFetchJob( contactItem.parentCollection(), CollectionFetchJob::Base, this );
311 connect( d->mParentCollectionFetchJob, SIGNAL(result(KJob*)), SLOT(slotParentCollectionFetched(KJob*)) );
The interface for all contact formatters.
Definition abstractcontactformatter.h:47
virtual QString toHtml(HtmlForm form=SelfcontainedForm) const =0
This method must be reimplemented to return the contact formatted as HTML according to the requested ...
void setContact(const KABC::Addressee &contact)
Sets the contact that will be formatted.
Definition abstractcontactformatter.cpp:47
void setCustomFieldDescriptions(const QList< QVariantMap > &descriptions)
Sets the custom field descriptions that will be used.
Definition abstractcontactformatter.cpp:67
Job that fetches collections from the Akonadi storage.
Definition collectionfetchjob.h:54
Collection::List collections() const
Returns the list of fetched collection.
Definition collectionfetchjob.cpp:169
Attribute to store contact specific meta data.
Definition contactmetadataattribute_p.h:39
A helper class for storing contact specific settings.
Definition contactmetadata_p.h:37
QVariantList customFieldDescriptions() const
Returns the descriptions of the custom fields of the contact.
Definition contactmetadata.cpp:101
void load(const Akonadi::Item &contact)
Loads the meta data for the given contact.
Definition contactmetadata.cpp:52
void emailClicked(const QString &name, const QString &email)
This signal is emitted whenever the user has clicked on an email address in the viewer.
KABC::Addressee rawContact() const
Returns the raw contact that is currently displayed.
Definition contactviewer.cpp:268
Akonadi::Item contact() const
Returns the contact that is currently displayed.
Definition contactviewer.cpp:263
void phoneNumberClicked(const KABC::PhoneNumber &number)
This signal is emitted whenever the user has clicked on a phone number (that includes fax numbers as ...
void smsClicked(const KABC::PhoneNumber &number)
This signal is emitted whenever the user has clicked on a SMS link of a phone number in the viewer.
void urlClicked(const KUrl &url)
This signal is emitted whenever the user has clicked on a url (e.g.
void setRawContact(const KABC::Addressee &contact)
Sets the raw contact object that shall be displayed in the viewer.
Definition contactviewer.cpp:287
void addressClicked(const KABC::Address &address)
This signal is emitted whenever the user has clicked on an address in the viewer.
void setContact(const Akonadi::Item &contact)
Sets the contact that shall be displayed in the viewer.
Definition contactviewer.cpp:282
void setContactFormatter(AbstractContactFormatter *formatter)
Sets the contact formatter that should be used for formatting the contact.
Definition contactviewer.cpp:273
void fetchAttribute(const QByteArray &type, bool fetch=true)
Sets whether the attribute of the given type should be fetched.
Definition itemfetchscope.cpp:80
void setAncestorRetrieval(AncestorRetrieval ancestorDepth)
Sets how many levels of ancestor collections should be included in the retrieval.
Definition itemfetchscope.cpp:132
void fetchFullPayload(bool fetch=true)
Sets whether the full payload shall be fetched.
Definition itemfetchscope.cpp:70
A class that formats a contact as HTML code.
Definition standardcontactformatter.h:54
A convenience class to remove the 'Copy Link Location' action from the context menu of KTextBrowser.
Definition textbrowser_p.h:35
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.