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

kopete/protocols/messenger/libpapillon

Papillon::Contact

Papillon::Contact Class Reference

#include <Papillon/Contact>

Inheritance diagram for Papillon::Contact:

Inheritance graph
[legend]

List of all members.


Detailed Description

A Contact and all its information Hold client feature, presence for a single contact.

This is managed by ContactList.

Author:
Michaƫl Larouche <larouche@kde.org>

Definition at line 34 of file contact.h.


Public Member Functions

void addToList (const Papillon::ContactListEnums::ListFlags &list)
ClientInfo::Features clientFeatures () const
 Contact (QObject *parent=0)
QString contactId () const
QString displayName () const
Papillon::ContactListEnums::ListFlags lists () const
QString passportId () const
void removeFromList (const Papillon::ContactListEnums::ListFlags &list)
void setClientFeatures (const ClientInfo::Features &features)
void setContactId (const QString &contactId)
void setDisplayName (const QString &displayName)
void setPassportId (const QString &passportId)
 ~Contact ()

Constructor & Destructor Documentation

Papillon::Contact::Contact ( QObject *  parent = 0  ) 

Create an empty Contact.

Definition at line 38 of file contact.cpp.

Papillon::Contact::~Contact (  ) 

d-tor

Definition at line 42 of file contact.cpp.


Member Function Documentation

void Papillon::Contact::addToList ( const Papillon::ContactListEnums::ListFlags &  list  ) 

Add the contact to the given list.

You can pass multiple list flag to this method.

Parameters:
list Lists on which the contact will be added.

Definition at line 82 of file contact.cpp.

ClientInfo::Features Papillon::Contact::clientFeatures (  )  const

Get client features for this contact.

Definition at line 67 of file contact.cpp.

QString Papillon::Contact::contactId (  )  const

Get contact ID.

Contact ID is a unique GUID used to identity the contact.

Returns:
Contact ID as a GUID.

Definition at line 47 of file contact.cpp.

QString Papillon::Contact::displayName (  )  const

Get display name for this contact.

Returns:
Display name for this contact.

Definition at line 92 of file contact.cpp.

Papillon::ContactListEnums::ListFlags Papillon::Contact::lists (  )  const

Get the lists on which the contact is subscribed.

Returns:
The list flags.

Definition at line 77 of file contact.cpp.

QString Papillon::Contact::passportId (  )  const

Get Passport ID for this contact.

Passport ID is in this form: example@passport.com

Returns:
Passport ID

Definition at line 57 of file contact.cpp.

void Papillon::Contact::removeFromList ( const Papillon::ContactListEnums::ListFlags &  list  ) 

Remove the contact from the given list.

You can pass multiple list flag to this method.

Parameters:
list Lists on which the contact will be removed.

Definition at line 87 of file contact.cpp.

void Papillon::Contact::setClientFeatures ( const ClientInfo::Features &  features  ) 

Set clients features for this contact.

Parameters:
features New client features

Definition at line 72 of file contact.cpp.

void Papillon::Contact::setContactId ( const QString &  contactId  ) 

Set Contact ID (this is a GUID).

Parameters:
contactId Contact GUID.

Definition at line 52 of file contact.cpp.

void Papillon::Contact::setDisplayName ( const QString &  displayName  ) 

Set display name for this contact.

Parameters:
displayName Display name to set

Definition at line 97 of file contact.cpp.

void Papillon::Contact::setPassportId ( const QString &  passportId  ) 

Set Passport ID for this contact.

Parameters:
passportId Passport ID

Definition at line 62 of file contact.cpp.


The documentation for this class was generated from the following files:
  • contact.h
  • contact.cpp

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