KGAPI2::People::ImClient
#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 | 
| ImClient & | operator= (const ImClient &) | 
| ImClient & | operator= (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< ImClient > | fromJSONArray (const QJsonArray &data) | 
Detailed Description
Constructor & Destructor Documentation
◆ ImClient() [1/2]
      
  | 
  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()
      
  | 
  default | 
Destructor.
Member Function Documentation
◆ formattedProtocol()
      
  | 
  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()
      
  | 
  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()
      
  | 
  staticnodiscard | 
Definition at line 140 of file imclient.cpp.
◆ fromJSONArray()
      
  | 
  staticnodiscard | 
Definition at line 159 of file imclient.cpp.
◆ metadata()
      
  | 
  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()
      
  | 
  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()
      
  | 
  nodiscard | 
Definition at line 173 of file imclient.cpp.
◆ type()
      
  | 
  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()
      
  | 
  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:
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.