Home · Modules · All Classes · All Namespaces
svc-connection-manager.h
1 /*
2  * This file contains D-Bus adaptor classes generated by qt-svc-gen.py.
3  *
4  * This file can be distributed under the same terms as the specification from
5  * which it was generated.
6  */
7 
8 #include <TelepathyQt/AbstractAdaptor>
9 #include <TelepathyQt/Global>
10 #include <TelepathyQt/Types>
11 
12 #include <QObject>
13 #include <QtDBus>
14 
15 namespace Tp
16 {
17 namespace Service
18 {
19 
27 class TP_QT_EXPORT ConnectionManagerAdaptor : public Tp::AbstractAdaptor
28 {
29  Q_OBJECT
30  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.ConnectionManager")
31  Q_CLASSINFO("D-Bus Introspection", ""
32 " <interface name=\"org.freedesktop.Telepathy.ConnectionManager\">\n"
33 " <property access=\"read\" type=\"a{sa{sv}}\" name=\"Protocols\">\n"
34 " <annotation value=\"Tp::ProtocolPropertiesMap\" name=\"com.trolltech.QtDBus.QtTypeName\"/>\n"
35 " </property>\n"
36 " <property access=\"read\" type=\"as\" name=\"Interfaces\"/>\n"
37 " <method name=\"GetParameters\">\n"
38 " <arg direction=\"in\" type=\"s\" name=\"protocol\"/>\n"
39 " <arg direction=\"out\" type=\"a(susv)\" name=\"parameters\">\n"
40 " <annotation value=\"Tp::ParamSpecList\" name=\"com.trolltech.QtDBus.QtTypeName.Out0\"/>\n"
41 " </arg>\n"
42 " </method>\n"
43 " <method name=\"ListProtocols\">\n"
44 " <arg direction=\"out\" type=\"as\" name=\"protocols\"/>\n"
45 " </method>\n"
46 " <method name=\"RequestConnection\">\n"
47 " <arg direction=\"in\" type=\"s\" name=\"protocol\"/>\n"
48 " <arg direction=\"in\" type=\"a{sv}\" name=\"parameters\">\n"
49 " <annotation value=\"QVariantMap\" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n"
50 " </arg>\n"
51 " <arg direction=\"out\" type=\"s\" name=\"busName\"/>\n"
52 " <arg direction=\"out\" type=\"o\" name=\"objectPath\"/>\n"
53 " </method>\n"
54 " <signal name=\"NewConnection\">\n"
55 " <arg type=\"s\" name=\"busName\"/>\n"
56 " <arg type=\"o\" name=\"objectPath\"/>\n"
57 " <arg type=\"s\" name=\"protocol\"/>\n"
58 " </signal>\n"
59 " </interface>\n"
60 "")
61  Q_PROPERTY(Tp::ProtocolPropertiesMap Protocols READ Protocols )
62  Q_PROPERTY(QStringList Interfaces READ Interfaces )
63 
64 public:
65  ConnectionManagerAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
66  virtual ~ConnectionManagerAdaptor();
67 
68  typedef Tp::MethodInvocationContextPtr< Tp::ParamSpecList > GetParametersContextPtr;
69  typedef Tp::MethodInvocationContextPtr< QStringList > ListProtocolsContextPtr;
70  typedef Tp::MethodInvocationContextPtr< QString, QDBusObjectPath > RequestConnectionContextPtr;
71 
72 public: // PROPERTIES
99  Tp::ProtocolPropertiesMap Protocols() const;
129  QStringList Interfaces() const;
130 
131 public Q_SLOTS: // METHODS
158  Tp::ParamSpecList GetParameters(const QString& protocol, const QDBusMessage& dbusMessage);
176  QStringList ListProtocols(const QDBusMessage& dbusMessage);
253  QString RequestConnection(const QString& protocol, const QVariantMap& parameters, const QDBusMessage& dbusMessage, QDBusObjectPath& objectPath);
254 
255 Q_SIGNALS: // SIGNALS
274  void NewConnection(const QString& busName, const QDBusObjectPath& objectPath, const QString& protocol);
275 };
276 
284 class TP_QT_EXPORT ProtocolAdaptor : public Tp::AbstractAdaptor
285 {
286  Q_OBJECT
287  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Protocol")
288  Q_CLASSINFO("D-Bus Introspection", ""
289 " <interface name=\"org.freedesktop.Telepathy.Protocol\">\n"
290 " <property access=\"read\" type=\"as\" name=\"Interfaces\"/>\n"
291 " <property access=\"read\" type=\"a(susv)\" name=\"Parameters\">\n"
292 " <annotation value=\"Tp::ParamSpecList\" name=\"com.trolltech.QtDBus.QtTypeName\"/>\n"
293 " </property>\n"
294 " <property access=\"read\" type=\"as\" name=\"ConnectionInterfaces\"/>\n"
295 " <property access=\"read\" type=\"a(a{sv}as)\" name=\"RequestableChannelClasses\">\n"
296 " <annotation value=\"Tp::RequestableChannelClassList\" name=\"com.trolltech.QtDBus.QtTypeName\"/>\n"
297 " </property>\n"
298 " <property access=\"read\" type=\"s\" name=\"VCardField\"/>\n"
299 " <property access=\"read\" type=\"s\" name=\"EnglishName\"/>\n"
300 " <property access=\"read\" type=\"s\" name=\"Icon\"/>\n"
301 " <property access=\"read\" type=\"as\" name=\"AuthenticationTypes\"/>\n"
302 " <method name=\"IdentifyAccount\">\n"
303 " <arg direction=\"in\" type=\"a{sv}\" name=\"parameters\">\n"
304 " <annotation value=\"QVariantMap\" name=\"com.trolltech.QtDBus.QtTypeName.In0\"/>\n"
305 " </arg>\n"
306 " <arg direction=\"out\" type=\"s\" name=\"accountID\"/>\n"
307 " </method>\n"
308 " <method name=\"NormalizeContact\">\n"
309 " <arg direction=\"in\" type=\"s\" name=\"contactID\"/>\n"
310 " <arg direction=\"out\" type=\"s\" name=\"normalizedContactID\"/>\n"
311 " </method>\n"
312 " </interface>\n"
313 "")
314  Q_PROPERTY(QStringList Interfaces READ Interfaces )
315  Q_PROPERTY(Tp::ParamSpecList Parameters READ Parameters )
316  Q_PROPERTY(QStringList ConnectionInterfaces READ ConnectionInterfaces )
317  Q_PROPERTY(Tp::RequestableChannelClassList RequestableChannelClasses READ RequestableChannelClasses )
318  Q_PROPERTY(QString VCardField READ VCardField )
319  Q_PROPERTY(QString EnglishName READ EnglishName )
320  Q_PROPERTY(QString Icon READ Icon )
321  Q_PROPERTY(QStringList AuthenticationTypes READ AuthenticationTypes )
322 
323 public:
324  ProtocolAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
325  virtual ~ProtocolAdaptor();
326 
327  typedef Tp::MethodInvocationContextPtr< QString > IdentifyAccountContextPtr;
328  typedef Tp::MethodInvocationContextPtr< QString > NormalizeContactContextPtr;
329 
330 public: // PROPERTIES
356  QStringList Interfaces() const;
385  Tp::ParamSpecList Parameters() const;
412  QStringList ConnectionInterfaces() const;
480  Tp::RequestableChannelClassList RequestableChannelClasses() const;
532  QString VCardField() const;
573  QString EnglishName() const;
605  QString Icon() const;
653  QStringList AuthenticationTypes() const;
654 
655 public Q_SLOTS: // METHODS
694  QString IdentifyAccount(const QVariantMap& parameters, const QDBusMessage& dbusMessage);
750  QString NormalizeContact(const QString& contactID, const QDBusMessage& dbusMessage);
751 };
752 
761 {
762  Q_OBJECT
763  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Protocol.Interface.Addressing")
764  Q_CLASSINFO("D-Bus Introspection", ""
765 " <interface name=\"org.freedesktop.Telepathy.Protocol.Interface.Addressing\">\n"
766 " <property access=\"read\" type=\"as\" name=\"AddressableVCardFields\"/>\n"
767 " <property access=\"read\" type=\"as\" name=\"AddressableURISchemes\"/>\n"
768 " <method name=\"NormalizeVCardAddress\">\n"
769 " <arg direction=\"in\" type=\"s\" name=\"VCardField\"/>\n"
770 " <arg direction=\"in\" type=\"s\" name=\"VCardAddress\"/>\n"
771 " <arg direction=\"out\" type=\"s\" name=\"normalizedVCardAddress\"/>\n"
772 " </method>\n"
773 " <method name=\"NormalizeContactURI\">\n"
774 " <arg direction=\"in\" type=\"s\" name=\"URI\"/>\n"
775 " <arg direction=\"out\" type=\"s\" name=\"normalizedURI\"/>\n"
776 " </method>\n"
777 " </interface>\n"
778 "")
779  Q_PROPERTY(QStringList AddressableVCardFields READ AddressableVCardFields )
780  Q_PROPERTY(QStringList AddressableURISchemes READ AddressableURISchemes )
781 
782 public:
783  ProtocolInterfaceAddressingAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
785 
786  typedef Tp::MethodInvocationContextPtr< QString > NormalizeVCardAddressContextPtr;
787  typedef Tp::MethodInvocationContextPtr< QString > NormalizeContactURIContextPtr;
788 
789 public: // PROPERTIES
854  QStringList AddressableVCardFields() const;
936  QStringList AddressableURISchemes() const;
937 
938 public Q_SLOTS: // METHODS
981  QString NormalizeVCardAddress(const QString& VCardField, const QString& VCardAddress, const QDBusMessage& dbusMessage);
1043  QString NormalizeContactURI(const QString& URI, const QDBusMessage& dbusMessage);
1044 };
1045 
1054 {
1055  Q_OBJECT
1056  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Protocol.Interface.Avatars")
1057  Q_CLASSINFO("D-Bus Introspection", ""
1058 " <interface name=\"org.freedesktop.Telepathy.Protocol.Interface.Avatars\">\n"
1059 " <property access=\"read\" type=\"as\" name=\"SupportedAvatarMIMETypes\"/>\n"
1060 " <property access=\"read\" type=\"u\" name=\"MinimumAvatarHeight\"/>\n"
1061 " <property access=\"read\" type=\"u\" name=\"MinimumAvatarWidth\"/>\n"
1062 " <property access=\"read\" type=\"u\" name=\"RecommendedAvatarHeight\"/>\n"
1063 " <property access=\"read\" type=\"u\" name=\"RecommendedAvatarWidth\"/>\n"
1064 " <property access=\"read\" type=\"u\" name=\"MaximumAvatarHeight\"/>\n"
1065 " <property access=\"read\" type=\"u\" name=\"MaximumAvatarWidth\"/>\n"
1066 " <property access=\"read\" type=\"u\" name=\"MaximumAvatarBytes\"/>\n"
1067 " </interface>\n"
1068 "")
1069  Q_PROPERTY(QStringList SupportedAvatarMIMETypes READ SupportedAvatarMIMETypes )
1070  Q_PROPERTY(uint MinimumAvatarHeight READ MinimumAvatarHeight )
1071  Q_PROPERTY(uint MinimumAvatarWidth READ MinimumAvatarWidth )
1072  Q_PROPERTY(uint RecommendedAvatarHeight READ RecommendedAvatarHeight )
1073  Q_PROPERTY(uint RecommendedAvatarWidth READ RecommendedAvatarWidth )
1074  Q_PROPERTY(uint MaximumAvatarHeight READ MaximumAvatarHeight )
1075  Q_PROPERTY(uint MaximumAvatarWidth READ MaximumAvatarWidth )
1076  Q_PROPERTY(uint MaximumAvatarBytes READ MaximumAvatarBytes )
1077 
1078 public:
1079  ProtocolInterfaceAvatarsAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
1081 
1082 
1083 public: // PROPERTIES
1097  QStringList SupportedAvatarMIMETypes() const;
1111  uint MinimumAvatarHeight() const;
1125  uint MinimumAvatarWidth() const;
1139  uint RecommendedAvatarHeight() const;
1153  uint RecommendedAvatarWidth() const;
1167  uint MaximumAvatarHeight() const;
1181  uint MaximumAvatarWidth() const;
1195  uint MaximumAvatarBytes() const;
1196 };
1197 
1206 {
1207  Q_OBJECT
1208  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Protocol.Interface.Presence")
1209  Q_CLASSINFO("D-Bus Introspection", ""
1210 " <interface name=\"org.freedesktop.Telepathy.Protocol.Interface.Presence\">\n"
1211 " <property access=\"read\" type=\"a{s(ubb)}\" name=\"Statuses\">\n"
1212 " <annotation value=\"Tp::SimpleStatusSpecMap\" name=\"com.trolltech.QtDBus.QtTypeName\"/>\n"
1213 " </property>\n"
1214 " </interface>\n"
1215 "")
1216  Q_PROPERTY(Tp::SimpleStatusSpecMap Statuses READ Statuses )
1217 
1218 public:
1219  ProtocolInterfacePresenceAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
1221 
1222 
1223 public: // PROPERTIES
1239  Tp::SimpleStatusSpecMap Statuses() const;
1240 };
1241 
1242 }
1243 }
Definition: svc-connection-manager.h:284
Definition: svc-connection-manager.h:1053
Definition: svc-connection-manager.h:27
QList< ParamSpec > ParamSpecList
Definition: build/TelepathyQt/_gen/types.h:2263
Definition: build/TelepathyQt/_gen/types.h:3903
Definition: svc-connection-manager.h:760
Definition: svc-connection-manager.h:1205
Definition: build/TelepathyQt/_gen/types.h:2417
Base class for all the low-level service-side adaptors.
Definition: abstract-adaptor.h:40
Definition: abstract-adaptor.cpp:31
QList< RequestableChannelClass > RequestableChannelClassList
Definition: build/TelepathyQt/_gen/types.h:2664