23 #ifndef _TelepathyQt_protocol_info_h_HEADER_GUARD_ 24 #define _TelepathyQt_protocol_info_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/AvatarSpec> 31 #include <TelepathyQt/Global> 32 #include <TelepathyQt/PresenceSpec> 33 #include <TelepathyQt/ProtocolParameter> 34 #include <TelepathyQt/Types> 36 #include <QSharedDataPointer> 43 class ConnectionCapabilities;
53 bool isValid()
const {
return mPriv.constData() != 0; }
57 QString cmName()
const;
62 bool hasParameter(
const QString &name)
const;
64 bool canRegister()
const;
68 QString vcardField()
const;
70 QString englishName()
const;
72 QString iconName()
const;
78 QStringList addressableVCardFields()
const;
79 QStringList addressableUriSchemes()
const;
81 PendingString *normalizeVCardAddress(
const QString &vcardField,
const QString &vcardAddress);
87 TP_QT_NO_EXPORT
ProtocolInfo(
const ConnectionManagerPtr &cm,
const QString &name);
89 TP_QT_NO_EXPORT
void addParameter(
const ParamSpec &spec);
90 TP_QT_NO_EXPORT
void setVCardField(
const QString &vcardField);
91 TP_QT_NO_EXPORT
void setEnglishName(
const QString &englishName);
92 TP_QT_NO_EXPORT
void setIconName(
const QString &iconName);
94 TP_QT_NO_EXPORT
void setAllowedPresenceStatuses(
const PresenceSpecList &statuses);
95 TP_QT_NO_EXPORT
void setAvatarRequirements(
const AvatarSpec &avatarRequirements);
96 TP_QT_NO_EXPORT
void setAddressableVCardFields(
const QStringList &vcardFields);
97 TP_QT_NO_EXPORT
void setAddressableUriSchemes(
const QStringList &uriSchemes);
100 friend struct Private;
101 QSharedDataPointer<Private> mPriv;
Definition: build/TelepathyQt/_gen/types.h:2227
The ProtocolInfo class represents a Telepathy Protocol.
Definition: protocol-info.h:46
The ConnectionCapabilities class represents the capabilities of a Connection.
Definition: connection-capabilities.h:38
The PresenceSpecList class represents a list of PresenceSpec.
Definition: presence.h:125
QList< ProtocolInfo > ProtocolInfoList
Definition: protocol-info.h:104
The PendingString class is a generic subclass of PendingOperation representing a pending D-Bus method...
Definition: pending-string.h:37
The ConnectionManager class represents a Telepathy connection manager.
Definition: connection-manager.h:52
bool isValid() const
Definition: protocol-info.h:53
Definition: abstract-adaptor.cpp:31
The AvatarSpec class represents a Telepathy avatar information supported by a protocol.
Definition: avatar.h:51
QList< ProtocolParameter > ProtocolParameterList
Definition: protocol-parameter.h:85
QList< RequestableChannelClass > RequestableChannelClassList
Definition: build/TelepathyQt/_gen/types.h:2664