Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.26 KB | None | 0 0
  1. /*
  2. * This file was generated by qdbusxml2cpp version 0.8
  3. * Command line was: qdbusxml2cpp -p connman_manager_interface.h: ../../libconnman-qt/libconnman-qt/connman_manager.xml
  4. *
  5. * qdbusxml2cpp is Copyright (C) 2015 Digia Plc and/or its subsidiary(-ies).
  6. *
  7. * This is an auto-generated file.
  8. * Do not edit! All changes made to it will be lost.
  9. */
  10.  
  11. #ifndef CONNMAN_MANAGER_INTERFACE_H_1384471413
  12. #define CONNMAN_MANAGER_INTERFACE_H_1384471413
  13.  
  14. #include <QtCore/QObject>
  15. #include <QtCore/QByteArray>
  16. #include <QtCore/QList>
  17. #include <QtCore/QMap>
  18. #include <QtCore/QString>
  19. #include <QtCore/QStringList>
  20. #include <QtCore/QVariant>
  21. #include <QtDBus/QtDBus>
  22.  
  23. /*
  24. * Proxy class for interface net.connman.Manager
  25. */
  26. class NetConnmanManagerInterface: public QDBusAbstractInterface
  27. {
  28. Q_OBJECT
  29. public:
  30. static inline const char *staticInterfaceName()
  31. { return "net.connman.Manager"; }
  32.  
  33. public:
  34. NetConnmanManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);
  35.  
  36. ~NetConnmanManagerInterface();
  37.  
  38. public Q_SLOTS: // METHODS
  39. inline QDBusPendingReply<QDBusObjectPath> CreateSession(const QVariantMap &settings, const QDBusObjectPath &notifier)
  40. {
  41. QList<QVariant> argumentList;
  42. argumentList << QVariant::fromValue(settings) << QVariant::fromValue(notifier);
  43. return asyncCallWithArgumentList(QStringLiteral("CreateSession"), argumentList);
  44. }
  45.  
  46. inline QDBusPendingReply<> DestroySession(const QDBusObjectPath &session)
  47. {
  48. QList<QVariant> argumentList;
  49. argumentList << QVariant::fromValue(session);
  50. return asyncCallWithArgumentList(QStringLiteral("DestroySession"), argumentList);
  51. }
  52.  
  53. inline QDBusPendingReply<QVariantMap> GetProperties()
  54. {
  55. QList<QVariant> argumentList;
  56. return asyncCallWithArgumentList(QStringLiteral("GetProperties"), argumentList);
  57. }
  58.  
  59. inline QDBusPendingReply<ConnmanObjectList> GetSavedServices()
  60. {
  61. QList<QVariant> argumentList;
  62. return asyncCallWithArgumentList(QStringLiteral("GetSavedServices"), argumentList);
  63. }
  64.  
  65. inline QDBusPendingReply<ConnmanObjectList> GetServices()
  66. {
  67. QList<QVariant> argumentList;
  68. return asyncCallWithArgumentList(QStringLiteral("GetServices"), argumentList);
  69. }
  70.  
  71. inline QDBusPendingReply<ConnmanObjectList> GetTechnologies()
  72. {
  73. QList<QVariant> argumentList;
  74. return asyncCallWithArgumentList(QStringLiteral("GetTechnologies"), argumentList);
  75. }
  76.  
  77. inline QDBusPendingReply<> RegisterAgent(const QDBusObjectPath &path)
  78. {
  79. QList<QVariant> argumentList;
  80. argumentList << QVariant::fromValue(path);
  81. return asyncCallWithArgumentList(QStringLiteral("RegisterAgent"), argumentList);
  82. }
  83.  
  84. inline QDBusPendingReply<> RegisterCounter(const QDBusObjectPath &path, uint accuracy, uint period)
  85. {
  86. QList<QVariant> argumentList;
  87. argumentList << QVariant::fromValue(path) << QVariant::fromValue(accuracy) << QVariant::fromValue(period);
  88. return asyncCallWithArgumentList(QStringLiteral("RegisterCounter"), argumentList);
  89. }
  90.  
  91. inline QDBusPendingReply<> ReleasePrivateNetwork(const QDBusObjectPath &path)
  92. {
  93. QList<QVariant> argumentList;
  94. argumentList << QVariant::fromValue(path);
  95. return asyncCallWithArgumentList(QStringLiteral("ReleasePrivateNetwork"), argumentList);
  96. }
  97.  
  98. inline QDBusPendingReply<> RemoveSavedService(const QString &identifier)
  99. {
  100. QList<QVariant> argumentList;
  101. argumentList << QVariant::fromValue(identifier);
  102. return asyncCallWithArgumentList(QStringLiteral("RemoveSavedService"), argumentList);
  103. }
  104.  
  105. inline QDBusPendingReply<QDBusObjectPath, QVariantMap, int> RequestPrivateNetwork(const QVariantMap &options)
  106. {
  107. QList<QVariant> argumentList;
  108. argumentList << QVariant::fromValue(options);
  109. return asyncCallWithArgumentList(QStringLiteral("RequestPrivateNetwork"), argumentList);
  110. }
  111. inline QDBusReply<QDBusObjectPath> RequestPrivateNetwork(const QVariantMap &options, QVariantMap &dict, int &fd)
  112. {
  113. QList<QVariant> argumentList;
  114. argumentList << QVariant::fromValue(options);
  115. QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("RequestPrivateNetwork"), argumentList);
  116. if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 3) {
  117. dict = qdbus_cast<QVariantMap>(reply.arguments().at(1));
  118. fd = qdbus_cast<int>(reply.arguments().at(2));
  119. }
  120. return reply;
  121. }
  122.  
  123. inline QDBusPendingReply<> ResetCounters(const QString &type)
  124. {
  125. QList<QVariant> argumentList;
  126. argumentList << QVariant::fromValue(type);
  127. return asyncCallWithArgumentList(QStringLiteral("ResetCounters"), argumentList);
  128. }
  129.  
  130. inline QDBusPendingReply<> SetProperty(const QString &name, const QDBusVariant &value)
  131. {
  132. QList<QVariant> argumentList;
  133. argumentList << QVariant::fromValue(name) << QVariant::fromValue(value);
  134. return asyncCallWithArgumentList(QStringLiteral("SetProperty"), argumentList);
  135. }
  136.  
  137. inline QDBusPendingReply<> UnregisterAgent(const QDBusObjectPath &path)
  138. {
  139. QList<QVariant> argumentList;
  140. argumentList << QVariant::fromValue(path);
  141. return asyncCallWithArgumentList(QStringLiteral("UnregisterAgent"), argumentList);
  142. }
  143.  
  144. inline QDBusPendingReply<> UnregisterCounter(const QDBusObjectPath &path)
  145. {
  146. QList<QVariant> argumentList;
  147. argumentList << QVariant::fromValue(path);
  148. return asyncCallWithArgumentList(QStringLiteral("UnregisterCounter"), argumentList);
  149. }
  150.  
  151. Q_SIGNALS: // SIGNALS
  152. void PropertyChanged(const QString &name, const QDBusVariant &value);
  153. void SavedServicesChanged(ConnmanObjectList changed);
  154. void ServicesChanged(ConnmanObjectList changed, const QList<QDBusObjectPath> &removed);
  155. void TechnologyAdded(const QDBusObjectPath &technology, const QVariantMap &properties);
  156. void TechnologyRemoved(const QDBusObjectPath &technology);
  157. };
  158.  
  159. namespace net {
  160. namespace connman {
  161. typedef ::NetConnmanManagerInterface Manager;
  162. }
  163. }
  164. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement