• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • sources
  • kde-4.14
  • kdenetwork
  • kopete
  • libkopete
kopetemetacontact_p.h
Go to the documentation of this file.
1 /*
2  kopetemetacontact_p.h - Kopete Meta Contact Private
3 
4  Copyright (c) 2002-2003 by Martijn Klingens <klingens@kde.org>
5  Copyright (c) 2002-2005 by Olivier Goffart <ogoffart@kde.org>
6  Copyright (c) 2002-2004 by Duncan Mac-Vicar Prett <duncan@kde.org>
7  Copyright (c) 2005 by MichaĆ«l Larouche <larouche@kde.org>
8 
9  Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
10 
11  *************************************************************************
12  * *
13  * This library is free software; you can redistribute it and/or *
14  * modify it under the terms of the GNU Lesser General Public *
15  * License as published by the Free Software Foundation; either *
16  * version 2 of the License, or (at your option) any later version. *
17  * *
18  *************************************************************************
19 */
20 
21 #ifndef KOPETEMETACONTACT_P_H
22 #define KOPETEMETACONTACT_P_H
23 
24 #include "kopetemetacontact.h"
25 
26 #include "kopetepicture.h"
27 
28 namespace Kopete {
29 
30 class MetaContact::Private
31 { public:
32  Private() :
33  photoSource(MetaContact::SourceCustom), displayNameSource(MetaContact::SourceCustom),
34  displayNameSourceContact(0L), photoSourceContact(0L), temporary(false),
35  onlineStatus(Kopete::OnlineStatus::Offline), photoSyncedWithKABC(false)
36  {}
37 
38  QList<Contact *> contacts;
39  ~Private()
40  {}
41 
42  QUuid metaContactId;
43  // property sources
44  PropertySource photoSource;
45  PropertySource displayNameSource;
46 
47  // when source is contact
48  Contact *displayNameSourceContact;
49  Contact *photoSourceContact;
50 
51  // used when source is kabc
52  QString kabcId;
53 
54  // used when source is custom
55  QString displayName;
56  KUrl photoUrl;
57 
58  QList<Group *> groups;
59  QMap<QString, QMap<QString, QString> > addressBook;
60  bool temporary;
61 
62  OnlineStatus::StatusType onlineStatus;
63  bool photoSyncedWithKABC;
64  OnlineStatus notifyOnlineStatus;
65 
66  // Used to set contact source at load.
67  QString nameSourcePID, nameSourceAID, nameSourceCID;
68  QString photoSourcePID, photoSourceAID, photoSourceCID;
69 
70  // The photo cache. Reduce disk access and CPU usage.
71  Picture customPicture, contactPicture, kabcPicture;
72 
73  Kopete::StatusMessage statusMessage;
74 };
75 
76 } //END namespace Kopete
77 
78 #endif
79 
80 // vim: set noet ts=4 sts=4 sw=4:
kopetemetacontact.h
Kopete::OnlineStatus
Definition: kopeteonlinestatus.h:68
Kopete::MetaContact::Private::contactPicture
Picture contactPicture
Definition: kopetemetacontact_p.h:71
Kopete::MetaContact::Private::nameSourceCID
QString nameSourceCID
Definition: kopetemetacontact_p.h:67
Kopete::Picture
Represent a picture in Kopete context.
Definition: kopetepicture.h:61
Kopete::MetaContact::Private::temporary
bool temporary
Definition: kopetemetacontact_p.h:60
Kopete::StatusMessage
This class encapsulate a status message.
Definition: kopetestatusmessage.h:48
Kopete::MetaContact::Private::photoSourceAID
QString photoSourceAID
Definition: kopetemetacontact_p.h:68
Kopete::MetaContact::Private::nameSourceAID
QString nameSourceAID
Definition: kopetemetacontact_p.h:67
Kopete::MetaContact::Private::kabcPicture
Picture kabcPicture
Definition: kopetemetacontact_p.h:71
Kopete::MetaContact::Private::~Private
~Private()
Definition: kopetemetacontact_p.h:39
QMap
QUuid
Kopete::MetaContact::Private::kabcId
QString kabcId
Definition: kopetemetacontact_p.h:52
Kopete::MetaContact::PropertySource
PropertySource
Enumeration of possible sources for a property (which may be photos, see setPhotoSource() for instanc...
Definition: kopetemetacontact.h:75
Kopete::MetaContact::Private::photoSource
PropertySource photoSource
Definition: kopetemetacontact_p.h:44
Kopete::MetaContact::SourceCustom
Data comes from somewhere else.
Definition: kopetemetacontact.h:78
Kopete::ContactListElement::Offline
Definition: kopetecontactlistelement.h:158
Kopete::MetaContact::Private::customPicture
Picture customPicture
Definition: kopetemetacontact_p.h:71
Kopete::MetaContact::Private::photoSourcePID
QString photoSourcePID
Definition: kopetemetacontact_p.h:68
kopetepicture.h
Kopete::MetaContact::Private::Private
Private()
Definition: kopetemetacontact_p.h:32
Kopete::MetaContact::Private::photoSourceCID
QString photoSourceCID
Definition: kopetemetacontact_p.h:68
Kopete::MetaContact::Private::metaContactId
QUuid metaContactId
Definition: kopetemetacontact_p.h:42
QString
QList< Contact * >
Kopete::MetaContact::Private::displayNameSource
PropertySource displayNameSource
Definition: kopetemetacontact_p.h:45
Kopete::MetaContact::Private::displayNameSourceContact
Contact * displayNameSourceContact
Definition: kopetemetacontact_p.h:48
Kopete::Contact
Definition: kopetecontact.h:58
Kopete::MetaContact::Private::photoSyncedWithKABC
bool photoSyncedWithKABC
Definition: kopetemetacontact_p.h:63
Kopete::MetaContact::Private::notifyOnlineStatus
OnlineStatus notifyOnlineStatus
Definition: kopetemetacontact_p.h:64
Kopete::MetaContact::Private
Definition: kopetemetacontact_p.h:30
Kopete::MetaContact::Private::nameSourcePID
QString nameSourcePID
Definition: kopetemetacontact_p.h:67
Kopete::MetaContact::Private::photoSourceContact
Contact * photoSourceContact
Definition: kopetemetacontact_p.h:49
Kopete::MetaContact::Private::statusMessage
Kopete::StatusMessage statusMessage
Definition: kopetemetacontact_p.h:73
Kopete::MetaContact::Private::groups
QList< Group * > groups
Definition: kopetemetacontact_p.h:58
Kopete::MetaContact::Private::displayName
QString displayName
Definition: kopetemetacontact_p.h:55
Kopete::MetaContact::Private::onlineStatus
OnlineStatus::StatusType onlineStatus
Definition: kopetemetacontact_p.h:62
Kopete::MetaContact
Definition: kopetemetacontact.h:54
Kopete::MetaContact::Private::photoUrl
KUrl photoUrl
Definition: kopetemetacontact_p.h:56
Kopete::OnlineStatus::StatusType
StatusType
The available global states.
Definition: kopeteonlinestatus.h:78
Kopete::MetaContact::Private::contacts
QList< Contact * > contacts
Definition: kopetemetacontact_p.h:38
Kopete::MetaContact::Private::addressBook
QMap< QString, QMap< QString, QString > > addressBook
Definition: kopetemetacontact_p.h:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



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