Home · Modules · All Classes · All Namespaces
Public Member Functions | List of all members
Tp::Contact::InfoFields Class Reference

The Contact::InfoFields class represents the information of a Telepathy contact. More...

#include <TelepathyQt/Contact>

Public Member Functions

 InfoFields ()
 
 InfoFields (const ContactInfoFieldList &fields)
 
 InfoFields (const InfoFields &other)
 
 ~InfoFields ()
 
bool isValid () const
 
InfoFieldsoperator= (const InfoFields &other)
 
ContactInfoFieldList fields (const QString &name) const
 
ContactInfoFieldList allFields () const
 

Detailed Description

The Contact::InfoFields class represents the information of a Telepathy contact.

Constructor & Destructor Documentation

◆ InfoFields() [1/3]

Tp::Contact::InfoFields::InfoFields ( )

Constructs a new invalid InfoFields instance.

◆ InfoFields() [2/3]

Tp::Contact::InfoFields::InfoFields ( const ContactInfoFieldList allFields)

Construct a info fields instance with the given fields. The instance will indicate that it is valid.

◆ InfoFields() [3/3]

Tp::Contact::InfoFields::InfoFields ( const InfoFields other)

Copy constructor.

◆ ~InfoFields()

Tp::Contact::InfoFields::~InfoFields ( )

Class destructor.

Member Function Documentation

◆ isValid()

bool Tp::Contact::InfoFields::isValid ( ) const
inline

◆ operator=()

Contact::InfoFields & Tp::Contact::InfoFields::operator= ( const InfoFields other)

Assignment operator.

◆ fields()

ContactInfoFieldList Tp::Contact::InfoFields::fields ( const QString &  name) const

Return a list containing all fields whose name are name.

Parameters
nameThe name used to match the fields.
Returns
A list of ContactInfoField objects.

◆ allFields()

ContactInfoFieldList Tp::Contact::InfoFields::allFields ( ) const

Return a list containing all fields describing the contact information.

Returns
The contact information as a list of ContactInfoField objects.