KContacts::ContactGroup::Data Class
class KContacts::ContactGroup::DataPublic Types
Public Functions
Data() | |
Data(const QString &name, const QString &email) | |
Data(const KContacts::ContactGroup::Data &other) | |
~Data() | |
QString | custom(const QString &key) const |
QString | email() const |
void | insertCustom(const QString &key, const QString &value) |
QString | name() const |
void | removeCustom(const QString &key) |
void | setEmail(const QString &email) |
void | setName(const QString &name) |
Detailed Description
This class represents a contact data object
Member Type Documentation
Data::List
A list of contact data.
Member Function Documentation
Data::Data()
Creates an empty contact data object.
Data::Data(const QString &name, const QString &email)
Creates a contact data object with the given name and email address.
Data::Data(const KContacts::ContactGroup::Data &other)
Creates a contact data object from an other data object.
[noexcept]
Data::~Data()
Destroys the contact data object.
QString Data::custom(const QString &key) const
Returns the value for the given key, or an empty string if the entry for that key does not exists.
QString Data::email() const
Returns the email address of the contact data object.
See also setEmail().
void Data::insertCustom(const QString &key, const QString &value)
Inserts a custom entry. If an entry with the same key already exists, it is overwritten.
key The unique key.
value The value.
QString Data::name() const
Returns the name of the contact data object.
See also setName().
void Data::removeCustom(const QString &key)
Removes the custom entry with the given key.
void Data::setEmail(const QString &email)
Sets the email address of the contact data object.
See also email().
void Data::setName(const QString &name)
Sets the name of the contact data object.
See also name().