• Skip to content
  • Skip to link menu
KDE API Documentation - abstractcontact.h Source File (KPeople)
  • KDE Home
  • Contact Us
 

KPeople

  • frameworks
  • kpeople
  • src
  • backends
abstractcontact.h
1 /*
2  Copyright (C) 2014 Aleix Pol i Gonzalez <aleixpol@blue-systems.com>
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 
19 #ifndef KPEOPLE_CONTACT
20 #define KPEOPLE_CONTACT
21 
22 #include <QSharedData>
23 #include <QVariant>
24 #include <kpeople/kpeople_export.h>
25 
26 namespace KPeople
27 {
38 class KPEOPLE_EXPORT AbstractContact : public QSharedData
39 {
40 public:
41  typedef QExplicitlySharedDataPointer<AbstractContact> Ptr;
42  typedef QList<AbstractContact::Ptr> List;
43  AbstractContact();
44  virtual ~AbstractContact();
45 
46 // well-known properties
48  static const QString NameProperty;
49 
51  static const QString EmailProperty;
52 
57  static const QString PresenceProperty;
58 
62  static const QString PictureProperty;
63 
65  static const QString GroupsProperty;
66 
68  static const QString AllEmailsProperty;
69 
75  virtual QVariant customProperty(const QString &key) const = 0;
76 
77 private:
78  Q_DISABLE_COPY(AbstractContact)
79 };
80 
81 }
82 
83 Q_DECLARE_METATYPE(KPeople::AbstractContact::List)
84 Q_DECLARE_METATYPE(KPeople::AbstractContact::Ptr)
85 
86 #endif
KPeople::AbstractContact::PictureProperty
static const QString PictureProperty
QUrl or QPixmap property representing the contacts' avatar.
Definition: abstractcontact.h:62
KPeople::AbstractContact::AllEmailsProperty
static const QString AllEmailsProperty
QVariantList property that lists the emails the contact has.
Definition: abstractcontact.h:68
KPeople::AbstractContact
KPeople::AbstractContact is the class to provide the data from a given contact by the backends...
Definition: abstractcontact.h:38
KPeople::AbstractContact::NameProperty
static const QString NameProperty
String property representing the display name of the contact.
Definition: abstractcontact.h:48
KPeople
The KPeople namespace contains all the classes for Libkpeople.
KPeople::AbstractContact::PresenceProperty
static const QString PresenceProperty
String property representing the IM presence of the contact.
Definition: abstractcontact.h:57
KPeople::AbstractContact::EmailProperty
static const QString EmailProperty
String property representing the preferred name of the contact.
Definition: abstractcontact.h:51
KPeople::AbstractContact::GroupsProperty
static const QString GroupsProperty
QVariantList property that lists the groups the contacts belongs to.
Definition: abstractcontact.h:65
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