KGAPI2::People::PhoneNumber
#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 | 
| PhoneNumber & | operator= (const PhoneNumber &) | 
| PhoneNumber & | operator= (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< PhoneNumber > | fromJSONArray (const QJsonArray &data) | 
| static PhoneNumber | fromKContactsPhoneNumber (const KContacts::PhoneNumber &phoneNumber) | 
| static QList< PhoneNumber > | fromKContactsPhoneNumberList (const QList< KContacts::PhoneNumber > &phoneNumberList) | 
Detailed Description
Constructor & Destructor Documentation
◆ PhoneNumber()
      
  | 
  explicit | 
Constructs a new PhoneNumber.
Definition at line 54 of file phonenumber.cpp.
◆ ~PhoneNumber()
      
  | 
  default | 
Destructor.
Member Function Documentation
◆ canonicalForm()
      
  | 
  nodiscard | 
Output only.
The canonicalized ITU-T E.164 form of the phone number.
Definition at line 88 of file phonenumber.cpp.
◆ formattedType()
      
  | 
  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()
      
  | 
  staticnodiscard | 
Definition at line 111 of file phonenumber.cpp.
◆ fromJSONArray()
      
  | 
  staticnodiscard | 
Definition at line 127 of file phonenumber.cpp.
◆ fromKContactsPhoneNumber()
      
  | 
  staticnodiscard | 
Definition at line 153 of file phonenumber.cpp.
◆ fromKContactsPhoneNumberList()
      
  | 
  staticnodiscard | 
Definition at line 185 of file phonenumber.cpp.
◆ metadata()
      
  | 
  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()
      
  | 
  nodiscard | 
Definition at line 141 of file phonenumber.cpp.
◆ toKContactsPhoneNumber()
      
  | 
  nodiscard | 
Definition at line 197 of file phonenumber.cpp.
◆ type()
      
  | 
  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()
      
  | 
  nodiscard | 
The phone number.
Definition at line 75 of file phonenumber.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri May 2 2025 12:03:45 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.