KGAPI2::People::ImClient

Search for usage in LXR

KGAPI2::People::ImClient Class Reference

#include <imclient.h>

Public Member Functions

 ImClient ()
 
 ImClient (const ImClient &)
 
 ImClient (const ImClientDefinition &definition)
 
 ImClient (ImClient &&) noexcept
 
 ~ImClient ()
 
QString formattedProtocol () const
 
QString formattedType () const
 
FieldMetadata metadata () const
 
bool operator!= (const ImClient &) const
 
ImClientoperator= (const ImClient &)
 
ImClientoperator= (ImClient &&) noexcept
 
bool operator== (const ImClient &) const
 
QString protocol () const
 
void setMetadata (const FieldMetadata &value)
 
void setProtocol (const QString &value)
 
void setType (const QString &value)
 
void setUsername (const QString &value)
 
QJsonValue toJSON () const
 
QString type () const
 
QString username () const
 

Static Public Member Functions

static ImClient fromJSON (const QJsonObject &)
 
static QList< ImClientfromJSONArray (const QJsonArray &data)
 

Detailed Description

A person's instant messaging client.

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

Definition at line 34 of file imclient.h.

Constructor & Destructor Documentation

◆ ImClient() [1/2]

KGAPI2::People::ImClient::ImClient ( )
explicit

Constructs a new ImClient.

Definition at line 63 of file imclient.cpp.

◆ ImClient() [2/2]

KGAPI2::People::ImClient::ImClient ( const ImClientDefinition & definition)

Definition at line 68 of file imclient.cpp.

◆ ~ImClient()

KGAPI2::People::ImClient::~ImClient ( )
default

Destructor.

Member Function Documentation

◆ formattedProtocol()

QString KGAPI2::People::ImClient::formattedProtocol ( ) const
nodiscard

Output only.

The protocol of the IM client formatted in the viewer's account locale or the Accept-Language HTTP header locale.

Definition at line 135 of file imclient.cpp.

◆ formattedType()

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

Output only.

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

Definition at line 131 of file imclient.cpp.

◆ fromJSON()

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

Definition at line 140 of file imclient.cpp.

◆ fromJSONArray()

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

Definition at line 159 of file imclient.cpp.

◆ metadata()

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

Metadata about the IM client.

Definition at line 122 of file imclient.cpp.

◆ operator!=()

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

Definition at line 90 of file imclient.cpp.

◆ operator==()

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

Definition at line 85 of file imclient.cpp.

◆ protocol()

QString KGAPI2::People::ImClient::protocol ( ) const
nodiscard

The protocol of the IM client.

The protocol can be custom or one of these predefined values: * aim * msn * yahoo * skype * qq * googleTalk * icq * jabber * netMeeting

Definition at line 95 of file imclient.cpp.

◆ setMetadata()

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

Sets value of the metadata property.

Definition at line 127 of file imclient.cpp.

◆ setProtocol()

void KGAPI2::People::ImClient::setProtocol ( const QString & value)

Sets value of the protocol property.

Definition at line 100 of file imclient.cpp.

◆ setType()

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

Sets value of the type property.

Definition at line 118 of file imclient.cpp.

◆ setUsername()

void KGAPI2::People::ImClient::setUsername ( const QString & value)

Sets value of the username property.

Definition at line 109 of file imclient.cpp.

◆ toJSON()

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

Definition at line 173 of file imclient.cpp.

◆ type()

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

The type of the IM client.

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

Definition at line 113 of file imclient.cpp.

◆ username()

QString KGAPI2::People::ImClient::username ( ) const
nodiscard

The user name used in the IM client.

Definition at line 104 of file imclient.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 4 2024 16:36:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.