diff options
author | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-03-15 01:40:55 -0300 |
---|---|---|
committer | Andre Moreira Magalhaes (andrunko) <andre.magalhaes@collabora.co.uk> | 2012-04-02 10:26:32 -0300 |
commit | f821bc8dc3f8fc7d57c437503eb56375451b7046 (patch) | |
tree | 671ea58ebba0437e0184b81371042a62dbb684f6 | |
parent | 635f804067487717adc0360872f093ed97c68c1f (diff) |
BaseProtocol: Add skeleton (commented) protocol interfaces.
-rw-r--r-- | TelepathyQt/base-protocol.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/TelepathyQt/base-protocol.h b/TelepathyQt/base-protocol.h index a8b323ac..bca1ea5a 100644 --- a/TelepathyQt/base-protocol.h +++ b/TelepathyQt/base-protocol.h @@ -27,8 +27,10 @@ #error IN_TP_QT_HEADER #endif +#include <TelepathyQt/AvatarSpec> #include <TelepathyQt/DBusService> #include <TelepathyQt/Global> +#include <TelepathyQt/PresenceSpecList> #include <TelepathyQt/ProtocolParameterList> #include <TelepathyQt/RequestableChannelClassSpecList> #include <TelepathyQt/Types> @@ -106,6 +108,64 @@ private: Private *mPriv; }; +/* +class TP_QT_EXPORT BaseProtocolAddressingInterface : public QObject +{ + Q_OBJECT + +public: + BaseProtocolAddressingInterface(); + virtual ~BaseProtocolAddressingInterface(); + + QStringList addressableVCardFields() const; + void setAddressableVCardFields(const QStringList &vcardFields); + + QStringList addressableUriSchemes() const; + void setAddressableUriSchemes(const QStringList &uriSchemes); + +protected Q_SLOTS: + // normalizeVCardAddress + // normalizeContactURI + +private: + struct Private; + friend struct Private; + Private *mPriv; +}; + +class TP_QT_EXPORT BaseProtocolAvatarsInterface : public QObject +{ + Q_OBJECT + +public: + BaseProtocolAvatarsInterface(const AvatarSpec &details); + virtual ~BaseProtocolAvatarsInterface(); + + AvatarSpec details() const; + +private: + struct Private; + friend struct Private; + Private *mPriv; +}; + +class TP_QT_EXPORT BaseProtocolPresenceInterface : public QObject +{ + Q_OBJECT + +public: + BaseProtocolPresenceInterface(const PresenceSpecList &statuses); + virtual ~BaseProtocolPresenceInterface(); + + PresenceSpecList statuses() const; + +private: + struct Private; + friend struct Private; + Private *mPriv; +}; +*/ + } #endif |