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

kopete/protocols/messenger/libpapillon

contact.cpp

Go to the documentation of this file.
00001 /*
00002    contact.cpp - Information for a Windows Live Messenger contact.
00003 
00004    Copyright (c) 2006-2007 by Michaƫl Larouche <larouche@kde.org>
00005 
00006    *************************************************************************
00007    *                                                                       *
00008    * This library is free software; you can redistribute it and/or         *
00009    * modify it under the terms of the GNU Lesser General Public            *
00010    * License as published by the Free Software Foundation; either          *
00011    * version 2 of the License, or (at your option) any later version.      *
00012    *                                                                       *
00013    *************************************************************************
00014 */
00015 #include "Papillon/Contact"
00016 
00017 // Qt includes
00018 #include <QtCore/QStringList>
00019 
00020 namespace Papillon
00021 {
00022 
00023 class Contact::Private
00024 {
00025 public:
00026     Private()
00027      : clientFeatures(0), lists(0)
00028     {}
00029 
00030     QString contactId;
00031     QString passportId;
00032     
00033     Papillon::ClientInfo::Features clientFeatures;
00034     ContactListEnums::ListFlags lists;
00035     QString displayName;
00036 };
00037 
00038 Contact::Contact(QObject *parent)
00039  : QObject(parent), d(new Private)
00040 {}
00041 
00042 Contact::~Contact()
00043 {
00044     delete d;
00045 }
00046 
00047 QString Contact::contactId() const
00048 {
00049     return d->contactId;
00050 }
00051 
00052 void Contact::setContactId(const QString &contactId)
00053 {
00054     d->contactId = contactId;
00055 }
00056 
00057 QString Contact::passportId() const
00058 {
00059     return d->passportId;
00060 }
00061 
00062 void Contact::setPassportId(const QString &passportId)
00063 {
00064     d->passportId = passportId;
00065 }
00066 
00067 ClientInfo::Features Contact::clientFeatures() const
00068 {
00069     return d->clientFeatures;
00070 }
00071 
00072 void Contact::setClientFeatures(const ClientInfo::Features &features)
00073 {
00074     d->clientFeatures = features;
00075 }
00076 
00077 Papillon::ContactListEnums::ListFlags Contact::lists() const
00078 {
00079     return d->lists;
00080 }
00081 
00082 void Contact::addToList(const Papillon::ContactListEnums::ListFlags &list)
00083 {
00084     d->lists |= list;
00085 }
00086 
00087 void Contact::removeFromList(const Papillon::ContactListEnums::ListFlags &list)
00088 {
00089     d->lists |= ~list;
00090 }
00091 
00092 QString Contact::displayName() const
00093 {
00094     return d->displayName;
00095 }
00096 
00097 void Contact::setDisplayName(const QString &displayName)
00098 {
00099     d->displayName = displayName;
00100 }
00101 
00102 }
00103 
00104 #include "contact.moc"

kopete/protocols/messenger/libpapillon

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal