Home · Modules · All Classes · All Namespaces
cli-connection-manager.h
1 /*
2  * This file contains D-Bus client proxy classes generated by qt-client-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 #ifndef IN_TP_QT_HEADER
9 #error IN_TP_QT_HEADER
10 #endif
11 
12 #include <TelepathyQt/Types>
13 
14 #include <QtGlobal>
15 
16 #include <QString>
17 #include <QObject>
18 #include <QVariant>
19 
20 #include <QDBusPendingReply>
21 
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
25 
26 namespace Tp
27 {
28 class PendingVariant;
29 class PendingOperation;
30 }
31 
32 namespace Tp
33 {
34 namespace Client
35 {
36 
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.ConnectionManager");
58  }
59 
68  const QString& busName,
69  const QString& objectPath,
70  QObject* parent = 0
71  );
72 
82  const QDBusConnection& connection,
83  const QString& busName,
84  const QString& objectPath,
85  QObject* parent = 0
86  );
87 
95 
121  {
122  return internalRequestProperty(QLatin1String("Protocols"));
123  }
124 
153  {
154  return internalRequestProperty(QLatin1String("Interfaces"));
155  }
156 
164  {
165  return internalRequestAllProperties();
166  }
167 
168 public Q_SLOTS:
194  inline QDBusPendingReply<Tp::ParamSpecList> GetParameters(const QString& protocol, int timeout = -1)
195  {
196  if (!invalidationReason().isEmpty()) {
197  return QDBusPendingReply<Tp::ParamSpecList>(QDBusMessage::createError(
198  invalidationReason(),
199  invalidationMessage()
200  ));
201  }
202 
203  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
204  this->staticInterfaceName(), QLatin1String("GetParameters"));
205  callMessage << QVariant::fromValue(protocol);
206  return this->connection().asyncCall(callMessage, timeout);
207  }
208 
224  inline QDBusPendingReply<QStringList> ListProtocols(int timeout = -1)
225  {
226  if (!invalidationReason().isEmpty()) {
227  return QDBusPendingReply<QStringList>(QDBusMessage::createError(
228  invalidationReason(),
229  invalidationMessage()
230  ));
231  }
232 
233  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
234  this->staticInterfaceName(), QLatin1String("ListProtocols"));
235  return this->connection().asyncCall(callMessage, timeout);
236  }
237 
315  inline QDBusPendingReply<QString, QDBusObjectPath> RequestConnection(const QString& protocol, const QVariantMap& parameters, int timeout = -1)
316  {
317  if (!invalidationReason().isEmpty()) {
318  return QDBusPendingReply<QString, QDBusObjectPath>(QDBusMessage::createError(
319  invalidationReason(),
320  invalidationMessage()
321  ));
322  }
323 
324  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
325  this->staticInterfaceName(), QLatin1String("RequestConnection"));
326  callMessage << QVariant::fromValue(protocol) << QVariant::fromValue(parameters);
327  return this->connection().asyncCall(callMessage, timeout);
328  }
329 
330 Q_SIGNALS:
348  void NewConnection(const QString& busName, const QDBusObjectPath& objectPath, const QString& protocol);
349 
350 protected:
351  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
352 };
353 
361 class TP_QT_EXPORT ProtocolInterface : public Tp::AbstractInterface
362 {
363  Q_OBJECT
364 
365 public:
372  static inline QLatin1String staticInterfaceName()
373  {
374  return QLatin1String("org.freedesktop.Telepathy.Protocol");
375  }
376 
385  const QString& busName,
386  const QString& objectPath,
387  QObject* parent = 0
388  );
389 
399  const QDBusConnection& connection,
400  const QString& busName,
401  const QString& objectPath,
402  QObject* parent = 0
403  );
404 
412 
420  explicit ProtocolInterface(const Tp::Client::ConnectionManagerInterface& mainInterface);
421 
429  ProtocolInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
430 
455  {
456  return internalRequestProperty(QLatin1String("Interfaces"));
457  }
458 
486  {
487  return internalRequestProperty(QLatin1String("Parameters"));
488  }
489 
515  {
516  return internalRequestProperty(QLatin1String("ConnectionInterfaces"));
517  }
518 
585  {
586  return internalRequestProperty(QLatin1String("RequestableChannelClasses"));
587  }
588 
639  {
640  return internalRequestProperty(QLatin1String("VCardField"));
641  }
642 
682  {
683  return internalRequestProperty(QLatin1String("EnglishName"));
684  }
685 
716  {
717  return internalRequestProperty(QLatin1String("Icon"));
718  }
719 
766  {
767  return internalRequestProperty(QLatin1String("AuthenticationTypes"));
768  }
769 
777  {
778  return internalRequestAllProperties();
779  }
780 
781 public Q_SLOTS:
819  inline QDBusPendingReply<QString> IdentifyAccount(const QVariantMap& parameters, int timeout = -1)
820  {
821  if (!invalidationReason().isEmpty()) {
822  return QDBusPendingReply<QString>(QDBusMessage::createError(
823  invalidationReason(),
824  invalidationMessage()
825  ));
826  }
827 
828  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
829  this->staticInterfaceName(), QLatin1String("IdentifyAccount"));
830  callMessage << QVariant::fromValue(parameters);
831  return this->connection().asyncCall(callMessage, timeout);
832  }
833 
888  inline QDBusPendingReply<QString> NormalizeContact(const QString& contactID, int timeout = -1)
889  {
890  if (!invalidationReason().isEmpty()) {
891  return QDBusPendingReply<QString>(QDBusMessage::createError(
892  invalidationReason(),
893  invalidationMessage()
894  ));
895  }
896 
897  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
898  this->staticInterfaceName(), QLatin1String("NormalizeContact"));
899  callMessage << QVariant::fromValue(contactID);
900  return this->connection().asyncCall(callMessage, timeout);
901  }
902 
903 protected:
904  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
905 };
906 
915 {
916  Q_OBJECT
917 
918 public:
925  static inline QLatin1String staticInterfaceName()
926  {
927  return QLatin1String("org.freedesktop.Telepathy.Protocol.Interface.Addressing");
928  }
929 
938  const QString& busName,
939  const QString& objectPath,
940  QObject* parent = 0
941  );
942 
952  const QDBusConnection& connection,
953  const QString& busName,
954  const QString& objectPath,
955  QObject* parent = 0
956  );
957 
965 
974 
983 
1047  {
1048  return internalRequestProperty(QLatin1String("AddressableVCardFields"));
1049  }
1050 
1131  {
1132  return internalRequestProperty(QLatin1String("AddressableURISchemes"));
1133  }
1134 
1142  {
1143  return internalRequestAllProperties();
1144  }
1145 
1146 public Q_SLOTS:
1189  inline QDBusPendingReply<QString> NormalizeVCardAddress(const QString& VCardField, const QString& VCardAddress, int timeout = -1)
1190  {
1191  if (!invalidationReason().isEmpty()) {
1192  return QDBusPendingReply<QString>(QDBusMessage::createError(
1193  invalidationReason(),
1194  invalidationMessage()
1195  ));
1196  }
1197 
1198  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1199  this->staticInterfaceName(), QLatin1String("NormalizeVCardAddress"));
1200  callMessage << QVariant::fromValue(VCardField) << QVariant::fromValue(VCardAddress);
1201  return this->connection().asyncCall(callMessage, timeout);
1202  }
1203 
1264  inline QDBusPendingReply<QString> NormalizeContactURI(const QString& URI, int timeout = -1)
1265  {
1266  if (!invalidationReason().isEmpty()) {
1267  return QDBusPendingReply<QString>(QDBusMessage::createError(
1268  invalidationReason(),
1269  invalidationMessage()
1270  ));
1271  }
1272 
1273  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1274  this->staticInterfaceName(), QLatin1String("NormalizeContactURI"));
1275  callMessage << QVariant::fromValue(URI);
1276  return this->connection().asyncCall(callMessage, timeout);
1277  }
1278 
1279 protected:
1280  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1281 };
1282 
1291 {
1292  Q_OBJECT
1293 
1294 public:
1301  static inline QLatin1String staticInterfaceName()
1302  {
1303  return QLatin1String("org.freedesktop.Telepathy.Protocol.Interface.Avatars");
1304  }
1305 
1314  const QString& busName,
1315  const QString& objectPath,
1316  QObject* parent = 0
1317  );
1318 
1328  const QDBusConnection& connection,
1329  const QString& busName,
1330  const QString& objectPath,
1331  QObject* parent = 0
1332  );
1333 
1341 
1350 
1358  ProtocolInterfaceAvatarsInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
1359 
1372  {
1373  return internalRequestProperty(QLatin1String("SupportedAvatarMIMETypes"));
1374  }
1375 
1388  {
1389  return internalRequestProperty(QLatin1String("MinimumAvatarHeight"));
1390  }
1391 
1404  {
1405  return internalRequestProperty(QLatin1String("MinimumAvatarWidth"));
1406  }
1407 
1420  {
1421  return internalRequestProperty(QLatin1String("RecommendedAvatarHeight"));
1422  }
1423 
1436  {
1437  return internalRequestProperty(QLatin1String("RecommendedAvatarWidth"));
1438  }
1439 
1452  {
1453  return internalRequestProperty(QLatin1String("MaximumAvatarHeight"));
1454  }
1455 
1468  {
1469  return internalRequestProperty(QLatin1String("MaximumAvatarWidth"));
1470  }
1471 
1484  {
1485  return internalRequestProperty(QLatin1String("MaximumAvatarBytes"));
1486  }
1487 
1495  {
1496  return internalRequestAllProperties();
1497  }
1498 
1499 protected:
1500  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1501 };
1502 
1511 {
1512  Q_OBJECT
1513 
1514 public:
1521  static inline QLatin1String staticInterfaceName()
1522  {
1523  return QLatin1String("org.freedesktop.Telepathy.Protocol.Interface.Presence");
1524  }
1525 
1534  const QString& busName,
1535  const QString& objectPath,
1536  QObject* parent = 0
1537  );
1538 
1548  const QDBusConnection& connection,
1549  const QString& busName,
1550  const QString& objectPath,
1551  QObject* parent = 0
1552  );
1553 
1561 
1570 
1578  ProtocolInterfacePresenceInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
1579 
1594  {
1595  return internalRequestProperty(QLatin1String("Statuses"));
1596  }
1597 
1605  {
1606  return internalRequestAllProperties();
1607  }
1608 
1609 protected:
1610  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1611 };
1612 }
1613 }
1614 Q_DECLARE_METATYPE(Tp::Client::ConnectionManagerInterface*)
1615 Q_DECLARE_METATYPE(Tp::Client::ProtocolInterface*)
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-connection-manager.h:152
Tp::PendingVariant * requestPropertyParameters() const
Definition: cli-connection-manager.h:485
QDBusPendingReply< Tp::ParamSpecList > GetParameters(const QString &protocol, int timeout=-1)
Definition: cli-connection-manager.h:194
Tp::PendingVariant * requestPropertyMinimumAvatarWidth() const
Definition: cli-connection-manager.h:1403
Tp::PendingVariant * requestPropertyIcon() const
Definition: cli-connection-manager.h:715
Definition: cli-connection-manager.h:1290
Definition: cli-connection-manager.h:44
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:925
Tp::PendingVariant * requestPropertyConnectionInterfaces() const
Definition: cli-connection-manager.h:514
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-connection-manager.h:454
Tp::PendingVariant * requestPropertyStatuses() const
Definition: cli-connection-manager.h:1593
Definition: cli-connection-manager.h:914
Tp::PendingVariant * requestPropertyAddressableVCardFields() const
Definition: cli-connection-manager.h:1046
QDBusPendingReply< QString > NormalizeContactURI(const QString &URI, int timeout=-1)
Definition: cli-connection-manager.h:1264
Tp::PendingVariant * requestPropertyMaximumAvatarWidth() const
Definition: cli-connection-manager.h:1467
QDBusPendingReply< QString > NormalizeContact(const QString &contactID, int timeout=-1)
Definition: cli-connection-manager.h:888
Tp::PendingVariant * requestPropertyRecommendedAvatarWidth() const
Definition: cli-connection-manager.h:1435
The AbstractInterface class is the base class for all client side D-Bus interfaces,...
Definition: abstract-interface.h:42
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingVariant * requestPropertySupportedAvatarMIMETypes() const
Definition: cli-connection-manager.h:1371
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1604
Tp::PendingVariant * requestPropertyAddressableURISchemes() const
Definition: cli-connection-manager.h:1130
Tp::PendingVariant * requestPropertyVCardField() const
Definition: cli-connection-manager.h:638
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:1521
QDBusPendingReply< QString > NormalizeVCardAddress(const QString &VCardField, const QString &VCardAddress, int timeout=-1)
Definition: cli-connection-manager.h:1189
Tp::PendingVariant * requestPropertyMinimumAvatarHeight() const
Definition: cli-connection-manager.h:1387
Tp::PendingVariant * requestPropertyMaximumAvatarHeight() const
Definition: cli-connection-manager.h:1451
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:1301
QDBusPendingReply< QString > IdentifyAccount(const QVariantMap &parameters, int timeout=-1)
Definition: cli-connection-manager.h:819
Tp::PendingVariant * requestPropertyProtocols() const
Definition: cli-connection-manager.h:120
Tp::PendingVariant * requestPropertyRecommendedAvatarHeight() const
Definition: cli-connection-manager.h:1419
Tp::PendingVariant * requestPropertyRequestableChannelClasses() const
Definition: cli-connection-manager.h:584
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:372
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1494
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:163
QDBusPendingReply< QStringList > ListProtocols(int timeout=-1)
Definition: cli-connection-manager.h:224
Definition: cli-connection-manager.h:1510
QDBusPendingReply< QString, QDBusObjectPath > RequestConnection(const QString &protocol, const QVariantMap &parameters, int timeout=-1)
Definition: cli-connection-manager.h:315
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: cli-connection-manager.h:361
Tp::PendingVariant * requestPropertyAuthenticationTypes() const
Definition: cli-connection-manager.h:765
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:55
Tp::PendingVariant * requestPropertyEnglishName() const
Definition: cli-connection-manager.h:681
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1141
Definition: abstract-adaptor.cpp:31
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:776
Tp::PendingVariant * requestPropertyMaximumAvatarBytes() const
Definition: cli-connection-manager.h:1483
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42