• Skip to content
  • Skip to link menu
KDE API Documentation - KPeople::AbstractContact Class Reference (KPeople)
  • KDE Home
  • Contact Us
 

KPeople

  • View on LXR
  • Comments
  • KPeople
  • AbstractContact
Public Types | Public Member Functions | Static Public Attributes | List of all members
KPeople::AbstractContact Class Referenceabstract

#include <abstractcontact.h>

Inherits QSharedData.

Inherited by MetaContactProxy.

Public Types

typedef QList< AbstractContact::Ptr > List
 
typedef QExplicitlySharedDataPointer< AbstractContact > Ptr
 

Public Member Functions

virtual QVariant customProperty (const QString &key) const =0
 

Static Public Attributes

static const QString AllEmailsProperty = QStringLiteral("all-email")
 
static const QString EmailProperty = QStringLiteral("email")
 
static const QString GroupsProperty = QStringLiteral("all-groups")
 
static const QString NameProperty = QStringLiteral("name")
 
static const QString PictureProperty = QStringLiteral("picture")
 
static const QString PresenceProperty = QStringLiteral("presence")
 

Detailed Description

KPeople::AbstractContact is the class to provide the data from a given contact by the backends.

To obtain it from a front-end application PersonData and PersonsModel should be used.

Definition at line 38 of file abstractcontact.h.

Member Function Documentation

virtual QVariant KPeople::AbstractContact::customProperty ( const QString &  key) const
pure virtual

Generic method to access a random contact property.

Returns
the value for the key property.

Member Data Documentation

const QString AbstractContact::AllEmailsProperty = QStringLiteral("all-email")
static

QVariantList property that lists the emails the contact has.

Definition at line 68 of file abstractcontact.h.

const QString AbstractContact::EmailProperty = QStringLiteral("email")
static

String property representing the preferred name of the contact.

Definition at line 51 of file abstractcontact.h.

const QString AbstractContact::GroupsProperty = QStringLiteral("all-groups")
static

QVariantList property that lists the groups the contacts belongs to.

Definition at line 65 of file abstractcontact.h.

const QString AbstractContact::NameProperty = QStringLiteral("name")
static

String property representing the display name of the contact.

Definition at line 48 of file abstractcontact.h.

const QString AbstractContact::PictureProperty = QStringLiteral("picture")
static

QUrl or QPixmap property representing the contacts' avatar.

Definition at line 62 of file abstractcontact.h.

const QString AbstractContact::PresenceProperty = QStringLiteral("presence")
static

String property representing the IM presence of the contact.

See also
KPeople::iconNameForPresenceString()

Definition at line 57 of file abstractcontact.h.


The documentation for this class was generated from the following files:
  • abstractcontact.h
  • abstractcontact.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2015 The KDE developers.
Generated on Fri Feb 13 2015 15:16:39 by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KPeople

Skip menu "KPeople"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • File List

Class Picker

Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal