akonadi/contact
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*)) );
QLayout * layout() const
void load(const Akonadi::Item &contact)
Loads the meta data for the given contact.
Definition: contactmetadata.cpp:52
Attribute to store contact specific meta data.
Definition: contactmetadataattribute_p.h:38
Akonadi::Item contact() const
Returns the contact that is currently displayed.
Definition: contactviewer.cpp:263
const QPixmap * icon() const
A convenience class to remove the 'Copy Link Location' action from the context menu of KTextBrowser...
Definition: textbrowser_p.h:34
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QVariantList customFieldDescriptions() const
Returns the descriptions of the custom fields of the contact.
Definition: contactmetadata.cpp:101
A helper class for storing contact specific settings.
Definition: contactmetadata_p.h:36
const char * name() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
QString fromUtf8(const char *str, int size)
void setContact(const Akonadi::Item &contact)
Sets the contact that shall be displayed in the viewer.
Definition: contactviewer.cpp:282
QPoint pos() const
void setContactFormatter(AbstractContactFormatter *formatter)
Sets the contact formatter that should be used for formatting the contact.
Definition: contactviewer.cpp:273
void setMargin(int margin)
A class that formats a contact as HTML code.
Definition: standardcontactformatter.h:53
QMap< QString, QVariant > toMap() const
QString mid(int position, int n) const
QString fromLatin1(const char *str, int size)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
The interface for all contact formatters.
Definition: abstractcontactformatter.h:46
KABC::Addressee rawContact() const
Returns the raw contact that is currently displayed.
Definition: contactviewer.cpp:268
void setRawContact(const KABC::Addressee &contact)
Sets the raw contact object that shall be displayed in the viewer.
Definition: contactviewer.cpp:287
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:19 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:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.