23 #ifndef _TelepathyQt_profile_h_HEADER_GUARD_ 24 #define _TelepathyQt_profile_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/RequestableChannelClassSpec> 31 #include <TelepathyQt/Types> 33 #include <QDBusSignature> 48 static ProfilePtr createForServiceName(
const QString &serviceName);
49 static ProfilePtr createForFileName(
const QString &fileName);
53 QString serviceName()
const;
60 QString provider()
const;
62 QString iconName()
const;
63 QString cmName()
const;
64 QString protocolName()
const;
72 const QDBusSignature &dbusSignature,
73 const QVariant &value,
79 QDBusSignature dbusSignature()
const;
80 QVariant::Type type()
const;
81 QVariant value()
const;
82 QString label()
const;
84 bool isMandatory()
const;
93 TP_QT_NO_EXPORT
void setName(
const QString &name);
94 TP_QT_NO_EXPORT
void setDBusSignature(
const QDBusSignature &dbusSignature);
95 TP_QT_NO_EXPORT
void setValue(
const QVariant &value);
96 TP_QT_NO_EXPORT
void setLabel(
const QString &label);
97 TP_QT_NO_EXPORT
void setMandatory(
bool mandatory);
100 friend struct Private;
106 bool hasParameter(
const QString &name)
const;
107 Parameter parameter(
const QString &name)
const;
115 const QString &label,
116 const QString &iconName,
117 const QString &message,
122 QString label()
const;
123 QString iconName()
const;
124 bool canHaveStatusMessage()
const;
126 bool isDisabled()
const;
133 TP_QT_NO_EXPORT
void setId(
const QString &
id);
134 TP_QT_NO_EXPORT
void setLabel(
const QString &label);
135 TP_QT_NO_EXPORT
void setIconName(
const QString &iconName);
136 TP_QT_NO_EXPORT
void setMessage(
const QString &message);
137 TP_QT_NO_EXPORT
void setDisabled(
bool disabled);
140 friend struct Private;
145 bool allowOtherPresences()
const;
147 bool hasPresence(
const QString &
id)
const;
148 Presence presence(
const QString &
id)
const;
157 TP_QT_NO_EXPORT
Profile(
const QString &serviceName,
const QString &cmName,
158 const QString &protocolName,
const ProtocolInfo &protocolInfo);
160 TP_QT_NO_EXPORT
void setServiceName(
const QString &serviceName);
161 TP_QT_NO_EXPORT
void setFileName(
const QString &fileName);
163 TP_QT_NO_EXPORT
static QStringList searchDirs();
166 friend struct Private;
QList< Parameter > ParameterList
Definition: profile.h:103
The Profile class provides an easy way to read Telepathy profile files according to http://telepathy....
Definition: profile.h:43
The ProtocolInfo class represents a Telepathy Protocol.
Definition: protocol-info.h:46
The RequestableChannelClassSpecList class represents a list of RequestableChannelClassSpec.
Definition: requestable-channel-class-spec.h:101
QList< Presence > PresenceList
Definition: profile.h:143
The Account class represents a Telepathy account.
Definition: account.h:68
The ProfileManager class provides helper methods to retrieve Profile objects.
Definition: profile-manager.h:43
The Profile::Presence class represents a presence defined in .profile files.
Definition: profile.h:109
The RefCounted class is a base class for shared objects used by SharedPtr.
Definition: shared-ptr.h:42
Definition: abstract-adaptor.cpp:31
The Profile::Parameter class represents a parameter defined in .profile files.
Definition: profile.h:66