KGAPI2::People::PhoneNumber

Search for usage in LXR

KGAPI2::People::PhoneNumber Class Reference

#include <phonenumber.h>

Public Member Functions

 PhoneNumber ()
 
 PhoneNumber (const PhoneNumber &)
 
 PhoneNumber (PhoneNumber &&) noexcept
 
 ~PhoneNumber ()
 
QString canonicalForm () const
 
QString formattedType () const
 
FieldMetadata metadata () const
 
bool operator!= (const PhoneNumber &) const
 
PhoneNumberoperator= (const PhoneNumber &)
 
PhoneNumberoperator= (PhoneNumber &&) noexcept
 
bool operator== (const PhoneNumber &) const
 
void setMetadata (const FieldMetadata &value)
 
void setType (const QString &value)
 
void setValue (const QString &value)
 
QJsonValue toJSON () const
 
KContacts::PhoneNumber toKContactsPhoneNumber () const
 
QString type () const
 
QString value () const
 

Static Public Member Functions

static PhoneNumber fromJSON (const QJsonObject &)
 
static QList< PhoneNumberfromJSONArray (const QJsonArray &data)
 
static PhoneNumber fromKContactsPhoneNumber (const KContacts::PhoneNumber &phoneNumber)
 
static QList< PhoneNumberfromKContactsPhoneNumberList (const QList< KContacts::PhoneNumber > &phoneNumberList)
 

Detailed Description

A person's phone number.

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

Definition at line 37 of file phonenumber.h.

Constructor & Destructor Documentation

◆ PhoneNumber()

KGAPI2::People::PhoneNumber::PhoneNumber ( )
explicit

Constructs a new PhoneNumber.

Definition at line 54 of file phonenumber.cpp.

◆ ~PhoneNumber()

KGAPI2::People::PhoneNumber::~PhoneNumber ( )
default

Destructor.

Member Function Documentation

◆ canonicalForm()

QString KGAPI2::People::PhoneNumber::canonicalForm ( ) const
nodiscard

Output only.

The canonicalized ITU-T E.164 form of the phone number.

Definition at line 88 of file phonenumber.cpp.

◆ formattedType()

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

Output only.

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

Definition at line 84 of file phonenumber.cpp.

◆ fromJSON()

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

Definition at line 111 of file phonenumber.cpp.

◆ fromJSONArray()

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

Definition at line 127 of file phonenumber.cpp.

◆ fromKContactsPhoneNumber()

PhoneNumber KGAPI2::People::PhoneNumber::fromKContactsPhoneNumber ( const KContacts::PhoneNumber & phoneNumber)
staticnodiscard

Definition at line 153 of file phonenumber.cpp.

◆ fromKContactsPhoneNumberList()

QList< PhoneNumber > KGAPI2::People::PhoneNumber::fromKContactsPhoneNumberList ( const QList< KContacts::PhoneNumber > & phoneNumberList)
staticnodiscard

Definition at line 185 of file phonenumber.cpp.

◆ metadata()

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

Metadata about the phone number.

Definition at line 101 of file phonenumber.cpp.

◆ operator!=()

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

Definition at line 70 of file phonenumber.cpp.

◆ operator==()

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

Definition at line 65 of file phonenumber.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 106 of file phonenumber.cpp.

◆ setType()

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

Sets value of the type property.

Definition at line 97 of file phonenumber.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 80 of file phonenumber.cpp.

◆ toJSON()

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

Definition at line 141 of file phonenumber.cpp.

◆ toKContactsPhoneNumber()

KContacts::PhoneNumber KGAPI2::People::PhoneNumber::toKContactsPhoneNumber ( ) const
nodiscard

Definition at line 197 of file phonenumber.cpp.

◆ type()

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

The type of the phone number.

The type can be custom or one of these predefined values: * home * work * mobile * homeFax * workFax * otherFax * pager * workMobile * workPager * main * googleVoice * other

Definition at line 92 of file phonenumber.cpp.

◆ value()

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

The phone number.

Definition at line 75 of file phonenumber.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 Sat Dec 21 2024 17:00:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.