KGAPI2::People::SipAddress

Search for usage in LXR

KGAPI2::People::SipAddress Class Reference

#include <sipaddress.h>

Public Member Functions

 SipAddress ()
 
 SipAddress (const SipAddress &)
 
 SipAddress (SipAddress &&) noexcept
 
 ~SipAddress ()
 
QString formattedType () const
 
FieldMetadata metadata () const
 
bool operator!= (const SipAddress &) const
 
SipAddressoperator= (const SipAddress &)
 
SipAddressoperator= (SipAddress &&) noexcept
 
bool operator== (const SipAddress &) const
 
void setMetadata (const FieldMetadata &value)
 
void setType (const QString &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
QString type () const
 
QString value () const
 

Static Public Member Functions

static SipAddress fromJSON (const QJsonObject &)
 
static QList< SipAddressfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's SIP address.

Session Initial Protocol addresses are used for VoIP communications to make voice or video calls over the internet.

See also
https://developers.google.com/people/api/rest/v1/people#sipaddress
Since
5.23.0

Definition at line 34 of file sipaddress.h.

Constructor & Destructor Documentation

◆ SipAddress()

KGAPI2::People::SipAddress::SipAddress ( )
explicit

Constructs a new SipAddress.

Definition at line 50 of file sipaddress.cpp.

◆ ~SipAddress()

KGAPI2::People::SipAddress::~SipAddress ( )
default

Destructor.

Member Function Documentation

◆ formattedType()

QString KGAPI2::People::SipAddress::formattedType ( ) const
nodiscard

Output only.

The type of the SIP address translated and formatted in the viewer's account locale or the Accept-Language HTTP header locale.

Definition at line 98 of file sipaddress.cpp.

◆ fromJSON()

SipAddress KGAPI2::People::SipAddress::fromJSON ( const QJsonObject & obj)
staticnodiscard

Definition at line 103 of file sipaddress.cpp.

◆ fromJSONArray()

QList< SipAddress > KGAPI2::People::SipAddress::fromJSONArray ( const QJsonArray & data)
staticnodiscard

Definition at line 117 of file sipaddress.cpp.

◆ metadata()

FieldMetadata KGAPI2::People::SipAddress::metadata ( ) const
nodiscard

Metadata about the SIP address.

Definition at line 80 of file sipaddress.cpp.

◆ operator!=()

bool KGAPI2::People::SipAddress::operator!= ( const SipAddress & other) const

Definition at line 66 of file sipaddress.cpp.

◆ operator==()

bool KGAPI2::People::SipAddress::operator== ( const SipAddress & other) const

Definition at line 61 of file sipaddress.cpp.

◆ setMetadata()

void KGAPI2::People::SipAddress::setMetadata ( const FieldMetadata & value)

Sets value of the metadata property.

Definition at line 85 of file sipaddress.cpp.

◆ setType()

void KGAPI2::People::SipAddress::setType ( const QString & value)

Sets value of the type property.

Definition at line 94 of file sipaddress.cpp.

◆ setValue()

void KGAPI2::People::SipAddress::setValue ( const QString & value)

Sets value of the value property.

Definition at line 76 of file sipaddress.cpp.

◆ toJSON()

QJsonValue KGAPI2::People::SipAddress::toJSON ( ) const
nodiscard

Definition at line 131 of file sipaddress.cpp.

◆ type()

QString KGAPI2::People::SipAddress::type ( ) const
nodiscard

The type of the SIP address.

The type can be custom or or one of these predefined values: * home * work * mobile * other

Definition at line 89 of file sipaddress.cpp.

◆ value()

QString KGAPI2::People::SipAddress::value ( ) const
nodiscard

The SIP address in the RFC 3261 19.1 SIP URI format.

Definition at line 71 of file sipaddress.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 Fri Oct 11 2024 12:19:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.