The Profile class provides an easy way to read Telepathy profile files according to http://telepathy.freedesktop.org/wiki/service-profile-v1.
More...
#include <TelepathyQt/Profile>
Inherits Tp::RefCounted.
The Profile class provides an easy way to read Telepathy profile files according to http://telepathy.freedesktop.org/wiki/service-profile-v1.
Note that profiles with xml element <type> different than "IM" are considered invalid.
Tp::Profile::~Profile |
( |
| ) |
|
ProfilePtr Tp::Profile::createForServiceName |
( |
const QString & |
serviceName | ) |
|
|
static |
Create a new Profile object used to read .profiles compliant files.
- Parameters
-
serviceName | The profile service name. |
- Returns
- A ProfilePtr object pointing to the newly created Profile object.
ProfilePtr Tp::Profile::createForFileName |
( |
const QString & |
fileName | ) |
|
|
static |
Create a new Profile object used to read .profiles compliant files.
- Parameters
-
fileName | The profile file name. |
- Returns
- A ProfilePtr object pointing to the newly created Profile object.
QString Tp::Profile::serviceName |
( |
| ) |
const |
Return the unique name of the service to which this profile applies.
- Returns
- The unique name of the service.
bool Tp::Profile::isValid |
( |
| ) |
const |
Return whether this profile is valid.
- Returns
true
if valid, otherwise false
.
bool Tp::Profile::isFake |
( |
| ) |
const |
Return whether this profile is fake.
Fake profiles are profiles created for services not providing a .profile file.
- Returns
true
if fake, otherwise false
.
QString Tp::Profile::type |
( |
| ) |
const |
Return the type of the service to which this profile applies.
In general, services of interest of Telepathy should be of type 'IM'. Other service types exist but are unlikely to affect Telepathy in any way.
- Returns
- The type of the service.
QString Tp::Profile::provider |
( |
| ) |
const |
Return the name of the vendor/organisation/provider who actually runs the service to which this profile applies.
- Returns
- The provider of the service.
QString Tp::Profile::name |
( |
| ) |
const |
Return the human-readable name for the service to which this profile applies.
- Returns
- The Human-readable name of the service.
QString Tp::Profile::iconName |
( |
| ) |
const |
Return the base name of the icon for the service to which this profile applies.
- Returns
- The base name of the icon for the service.
QString Tp::Profile::cmName |
( |
| ) |
const |
Return the connection manager name for the service to which this profile applies.
- Returns
- The connection manager name for the service.
QString Tp::Profile::protocolName |
( |
| ) |
const |
Return the protocol name for the service to which this profile applies.
- Returns
- The protocol name for the service.
Return a list of parameters defined for the service to which this profile applies.
- Returns
- A list of Profile::Parameter.
bool Tp::Profile::hasParameter |
( |
const QString & |
name | ) |
const |
Return whether this profile defines the parameter named name.
- Returns
true
if parameter is defined, otherwise false
.
bool Tp::Profile::allowOtherPresences |
( |
| ) |
const |
Return whether the standard CM presences not defined in presences() are supported.
- Returns
true
if standard CM presences are supported, otherwise false
.
Return a list of presences defined for the service to which this profile applies.
- Returns
- A list of Profile::Presence.
bool Tp::Profile::hasPresence |
( |
const QString & |
id | ) |
const |
Return whether this profile defines the presence with id id.
- Returns
true
if presence is defined, otherwise false
.