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.
◆ ParameterList
◆ PresenceList
◆ ~Profile()
Tp::Profile::~Profile |
( |
| ) |
|
◆ createForServiceName()
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.
◆ createForFileName()
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.
◆ serviceName()
QString Tp::Profile::serviceName |
( |
| ) |
const |
Return the unique name of the service to which this profile applies.
- Returns
- The unique name of the service.
◆ isValid()
bool Tp::Profile::isValid |
( |
| ) |
const |
Return whether this profile is valid.
- Returns
true
if valid, otherwise false
.
◆ isFake()
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
.
◆ type()
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.
◆ provider()
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.
◆ name()
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.
◆ iconName()
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.
◆ cmName()
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.
◆ protocolName()
QString Tp::Profile::protocolName |
( |
| ) |
const |
Return the protocol name for the service to which this profile applies.
- Returns
- The protocol name for the service.
◆ parameters()
Return a list of parameters defined for the service to which this profile applies.
- Returns
- A list of Profile::Parameter.
◆ hasParameter()
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
.
◆ parameter()
◆ allowOtherPresences()
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
.
◆ presences()
Return a list of presences defined for the service to which this profile applies.
- Returns
- A list of Profile::Presence.
◆ hasPresence()
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
.
◆ presence()
◆ unsupportedChannelClassSpecs()