Show invite menu in wlm chat window immediately
[kdenetwork.git] / kopete / libkopete / kopetemetacontact_p.h
blobfa576ee8196bab4a6b3037f7ca3f6ccbbba10962
1 /*
2 kopetemetacontact_p.h - Kopete Meta Contact Private
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>
9 Kopete (c) 2002-2007 by the Kopete developers <kopete-devel@kde.org>
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 *************************************************************************
21 #ifndef KOPETEMETACONTACT_P_H
22 #define KOPETEMETACONTACT_P_H
24 #include "kopetemetacontact.h"
26 #include "kopetepicture.h"
28 namespace Kopete {
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)
38 QList<Contact *> contacts;
39 ~Private()
43 // property sources
44 PropertySource photoSource;
45 PropertySource displayNameSource;
47 // when source is contact
48 Contact *displayNameSourceContact;
49 Contact *photoSourceContact;
51 // used when source is kabc
52 QString metaContactId;
54 // used when source is custom
55 QString displayName;
56 KUrl photoUrl;
58 QList<Group *> groups;
59 QMap<QString, QMap<QString, QString> > addressBook;
60 bool temporary;
62 OnlineStatus::StatusType onlineStatus;
63 bool photoSyncedWithKABC;
65 // Used to set contact source at load.
66 QString nameSourcePID, nameSourceAID, nameSourceCID;
67 QString photoSourcePID, photoSourceAID, photoSourceCID;
69 // The photo cache. Reduce disk access and CPU usage.
70 Picture customPicture, contactPicture, kabcPicture;
73 } //END namespace Kopete
75 #endif
77 // vim: set noet ts=4 sts=4 sw=4: