KContacts::Impp

Search for usage in LXR

#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 ()
 

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 31 of file impp.h.

Member Function Documentation

◆ isPreferred()

bool KContacts::Impp::isPreferred ( ) const

Returns whether this is the preferred messaging address.

Since
5.12

◆ parameters()

QMap< QString, QStringList > Impp::parameters ( ) const
Deprecated:
Since 5.88 for lack of usage

Definition at line 120 of file impp.cpp.

◆ serviceIcon() [1/2]

QString KContacts::Impp::serviceIcon ( ) const

Returns the name of an icon representing the service type.

Since
5.12

◆ serviceIcon() [2/2]

QString Impp::serviceIcon ( const QString serviceType)
static

Returns an icon name representing the given IM service.

Since
5.12

Definition at line 194 of file impp.cpp.

◆ serviceLabel() [1/2]

QString KContacts::Impp::serviceLabel ( ) const

Returns a translated label for the service type.

Since
5.12

◆ serviceLabel() [2/2]

QString Impp::serviceLabel ( const QString serviceType)
static

Returns a translated name of the given IM service.

Since
5.12

Definition at line 187 of file impp.cpp.

◆ serviceType()

QString KContacts::Impp::serviceType ( ) const

Returns the messaging service this address is for.

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

Since
5.12

◆ serviceTypes()

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 201 of file impp.cpp.

◆ setParameters()

void Impp::setParameters ( const QMap< QString, QStringList > &  params)
Deprecated:
Since 5.88 for lack of usage

Definition at line 113 of file impp.cpp.

◆ setPreferred()

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-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:51:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.