KContacts::Impp

#include <impp.h>

Public Types

typedef QVector< ImppList
 

Properties

QUrl address
 
bool isPreferred
 
bool isValid
 
QString serviceIcon
 
QString serviceLabel
 
QString serviceType
 

Public Member Functions

 Impp (const Impp &other)
 
 Impp (const QUrl &address)
 
QUrl address () const
 
bool isPreferred () const
 
bool isValid () const
 
bool operator!= (const Impp &other) const
 
Imppoperator= (const Impp &other)
 
bool operator== (const Impp &other) const
 
QMap< QString, QStringListparameters () const
 
QString serviceIcon () const
 
QString serviceLabel () const
 
QString serviceType () const
 
void setAddress (const QUrl &address)
 
void setParameters (const QMap< QString, QStringList > &params)
 
void setPreferred (bool preferred)
 
QString toString () const
 

Static Public Member Functions

static QString serviceIcon (const QString &serviceType)
 
static QString serviceLabel (const QString &serviceType)
 
static QVector< QStringserviceTypes ()
 

Friends

KCONTACTS_EXPORT QDataStreamoperator<< (QDataStream &, const Impp &)
 
KCONTACTS_EXPORT QDataStreamoperator>> (QDataStream &, Impp &)
 

Detailed Description

Class that holds a IMPP for a contact.

IMPP stands for "Instant Messaging and Presence Protocol". This field is defined in the vCard 3.0 extension RFC 4770 and is part of vCard 4.0 (RFC 6350).

Since
4.14.5

Definition at line 26 of file impp.h.

Member Function Documentation

bool KContacts::Impp::isPreferred ( ) const

Returns whether this is the preferred messaging address.

Since
5.12
QString KContacts::Impp::serviceIcon ( ) const

Returns the name of an icon representing the service type.

Since
5.12
QString Impp::serviceIcon ( const QString serviceType)
static

Returns an icon name representing the given IM service.

Since
5.12

Definition at line 180 of file impp.cpp.

QString KContacts::Impp::serviceLabel ( ) const

Returns a translated label for the service type.

Since
5.12
QString Impp::serviceLabel ( const QString serviceType)
static

Returns a translated name of the given IM service.

Since
5.12

Definition at line 173 of file impp.cpp.

QString KContacts::Impp::serviceType ( ) const

Returns the messaging service this address is for.

This is equivalent to address().scheme().

Since
5.12
QVector< QString > Impp::serviceTypes ( )
static

List all known service types.

Don't use these strings directly for display, instead use serviceLabel and serviceIcon.

Since
5.12

Definition at line 187 of file impp.cpp.

void Impp::setPreferred ( bool  preferred)

Sets that this is the preferred messaging address.

Since
5.12

Definition at line 95 of file impp.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Nov 30 2020 22:55:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.