KContacts::Impp

Search for usage in LXR

#include <impp.h>

Public Types

typedef QList< 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
 
QString serviceIcon () const
 
QString serviceLabel () const
 
QString serviceType () const
 
void setAddress (const QUrl &address)
 
void setPreferred (bool preferred)
 
QString toString () const
 

Static Public Member Functions

static QString serviceIcon (const QString &serviceType)
 
static QString serviceLabel (const QString &serviceType)
 
static QList< 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 Typedef Documentation

◆ List

Definition at line 53 of file impp.h.

Property Documentation

◆ address

QUrl KContacts::Impp::address
readwrite

Definition at line 35 of file impp.h.

◆ isPreferred

bool KContacts::Impp::isPreferred
readwrite

Definition at line 36 of file impp.h.

◆ isValid

bool KContacts::Impp::isValid
read

Definition at line 34 of file impp.h.

◆ serviceIcon

QString KContacts::Impp::serviceIcon
read

Definition at line 39 of file impp.h.

◆ serviceLabel

QString KContacts::Impp::serviceLabel
read

Definition at line 38 of file impp.h.

◆ serviceType

QString KContacts::Impp::serviceType
read

Definition at line 37 of file impp.h.

Constructor & Destructor Documentation

◆ Impp() [1/3]

Impp::Impp ( )

Definition at line 36 of file impp.cpp.

◆ Impp() [2/3]

Impp::Impp ( const Impp & other)

Definition at line 41 of file impp.cpp.

◆ Impp() [3/3]

Impp::Impp ( const QUrl & address)

Definition at line 46 of file impp.cpp.

◆ ~Impp()

Impp::~Impp ( )

Definition at line 52 of file impp.cpp.

Member Function Documentation

◆ address()

QUrl Impp::address ( ) const

Definition at line 66 of file impp.cpp.

◆ isPreferred()

bool Impp::isPreferred ( ) const

Returns whether this is the preferred messaging address.

Since
5.12

Definition at line 86 of file impp.cpp.

◆ isValid()

bool Impp::isValid ( ) const

Definition at line 56 of file impp.cpp.

◆ operator!=()

bool Impp::operator!= ( const Impp & other) const

Definition at line 127 of file impp.cpp.

◆ operator=()

Impp & Impp::operator= ( const Impp & other)

Definition at line 132 of file impp.cpp.

◆ operator==()

bool Impp::operator== ( const Impp & other) const

Definition at line 122 of file impp.cpp.

◆ serviceIcon() [1/2]

QString Impp::serviceIcon ( ) const

Returns the name of an icon representing the service type.

Since
5.12

Definition at line 81 of file impp.cpp.

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

◆ serviceLabel() [1/2]

QString Impp::serviceLabel ( ) const

Returns a translated label for the service type.

Since
5.12

Definition at line 76 of file impp.cpp.

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

◆ serviceType()

QString Impp::serviceType ( ) const

Returns the messaging service this address is for.

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

Since
5.12

Definition at line 71 of file impp.cpp.

◆ serviceTypes()

QList< 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.

◆ setAddress()

void Impp::setAddress ( const QUrl & address)

Definition at line 61 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.

◆ toString()

QString Impp::toString ( ) const

Definition at line 141 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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.