KGAPI2::People::Url

Search for usage in LXR

#include <url.h>

Public Member Functions

 Url ()
 
 Url (const Url &)
 
 Url (Url &&) noexcept
 
 ~Url ()
 
QString formattedType () const
 
FieldMetadata metadata () const
 
bool operator!= (const Url &) const
 
Urloperator= (const Url &)
 
Urloperator= (Url &&) noexcept
 
bool operator== (const Url &) 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 Url fromJSON (const QJsonObject &)
 
static QList< UrlfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's associated URLs.

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

Definition at line 33 of file url.h.

Constructor & Destructor Documentation

◆ Url()

KGAPI2::People::Url::Url ( )
explicit

Constructs a new Url.

Definition at line 50 of file url.cpp.

◆ ~Url()

KGAPI2::People::Url::~Url ( )
default

Destructor.

Member Function Documentation

◆ formattedType()

QString KGAPI2::People::Url::formattedType ( ) const

Output only.

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

Definition at line 98 of file url.cpp.

◆ fromJSON()

Url KGAPI2::People::Url::fromJSON ( const QJsonObject & obj)
static

Definition at line 103 of file url.cpp.

◆ fromJSONArray()

QList< Url > KGAPI2::People::Url::fromJSONArray ( const QJsonArray & data)
static

Definition at line 118 of file url.cpp.

◆ metadata()

FieldMetadata KGAPI2::People::Url::metadata ( ) const

Metadata about the URL.

Definition at line 89 of file url.cpp.

◆ operator!=()

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

Definition at line 66 of file url.cpp.

◆ operator==()

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

Definition at line 61 of file url.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 94 of file url.cpp.

◆ setType()

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

Sets value of the type property.

Definition at line 85 of file url.cpp.

◆ setValue()

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

Sets value of the value property.

Definition at line 76 of file url.cpp.

◆ toJSON()

QJsonValue KGAPI2::People::Url::toJSON ( ) const

Definition at line 132 of file url.cpp.

◆ type()

QString KGAPI2::People::Url::type ( ) const

The type of the URL.

The type can be custom or one of these predefined values:

  • home
  • work
  • blog
  • profile
  • homePage
  • ftp
  • reservations
  • appInstallPage: website for a Currents application.
  • other

Definition at line 80 of file url.cpp.

◆ value()

QString KGAPI2::People::Url::value ( ) const

The URL.

Definition at line 71 of file url.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 May 3 2024 11:50:42 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.