cli-connection-manager.h Source File

| Home · All Classes · All Namespaces · Modules · Functions · Files

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
44 class TP_QT_EXPORT ConnectionManagerInterface : public Tp::AbstractInterface
45 {
46 Q_OBJECT
47
48 public:
55 static inline QLatin1String staticInterfaceName()
56 {
57 return QLatin1String("org.freedesktop.Telepathy.ConnectionManager");
58 }
59
67 ConnectionManagerInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 ConnectionManagerInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 ConnectionManagerInterface(Tp::DBusProxy *proxy);
95
120 inline Tp::PendingVariant *requestPropertyProtocols() const
121 {
122 return internalRequestProperty(QLatin1String("Protocols"));
123 }
124
152 inline Tp::PendingVariant *requestPropertyInterfaces() const
153 {
154 return internalRequestProperty(QLatin1String("Interfaces"));
155 }
156
163 Tp::PendingVariantMap *requestAllProperties() const
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
384 ProtocolInterface(
385 const QString& busName,
386 const QString& objectPath,
387 QObject* parent = 0
388 );
389
398 ProtocolInterface(
399 const QDBusConnection& connection,
400 const QString& busName,
401 const QString& objectPath,
402 QObject* parent = 0
403 );
404
411 ProtocolInterface(Tp::DBusProxy *proxy);
412
420 explicit ProtocolInterface(const Tp::Client::ConnectionManagerInterface& mainInterface);
421
429 ProtocolInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
430
454 inline Tp::PendingVariant *requestPropertyInterfaces() const
455 {
456 return internalRequestProperty(QLatin1String("Interfaces"));
457 }
458
485 inline Tp::PendingVariant *requestPropertyParameters() const
486 {
487 return internalRequestProperty(QLatin1String("Parameters"));
488 }
489
514 inline Tp::PendingVariant *requestPropertyConnectionInterfaces() const
515 {
516 return internalRequestProperty(QLatin1String("ConnectionInterfaces"));
517 }
518
584 inline Tp::PendingVariant *requestPropertyRequestableChannelClasses() const
585 {
586 return internalRequestProperty(QLatin1String("RequestableChannelClasses"));
587 }
588
638 inline Tp::PendingVariant *requestPropertyVCardField() const
639 {
640 return internalRequestProperty(QLatin1String("VCardField"));
641 }
642
681 inline Tp::PendingVariant *requestPropertyEnglishName() const
682 {
683 return internalRequestProperty(QLatin1String("EnglishName"));
684 }
685
715 inline Tp::PendingVariant *requestPropertyIcon() const
716 {
717 return internalRequestProperty(QLatin1String("Icon"));
718 }
719
765 inline Tp::PendingVariant *requestPropertyAuthenticationTypes() const
766 {
767 return internalRequestProperty(QLatin1String("AuthenticationTypes"));
768 }
769
776 Tp::PendingVariantMap *requestAllProperties() const
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
914 class TP_QT_EXPORT ProtocolInterfaceAddressingInterface : public Tp::AbstractInterface
915 {
916 Q_OBJECT
917
918 public:
925 static inline QLatin1String staticInterfaceName()
926 {
927 return QLatin1String("org.freedesktop.Telepathy.Protocol.Interface.Addressing");
928 }
929
937 ProtocolInterfaceAddressingInterface(
938 const QString& busName,
939 const QString& objectPath,
940 QObject* parent = 0
941 );
942
951 ProtocolInterfaceAddressingInterface(
952 const QDBusConnection& connection,
953 const QString& busName,
954 const QString& objectPath,
955 QObject* parent = 0
956 );
957
964 ProtocolInterfaceAddressingInterface(Tp::DBusProxy *proxy);
965
973 explicit ProtocolInterfaceAddressingInterface(const Tp::Client::ConnectionManagerInterface& mainInterface);
974
982 ProtocolInterfaceAddressingInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
983
1046 inline Tp::PendingVariant *requestPropertyAddressableVCardFields() const
1047 {
1048 return internalRequestProperty(QLatin1String("AddressableVCardFields"));
1049 }
1050
1130 inline Tp::PendingVariant *requestPropertyAddressableURISchemes() const
1131 {
1132 return internalRequestProperty(QLatin1String("AddressableURISchemes"));
1133 }
1134
1141 Tp::PendingVariantMap *requestAllProperties() const
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
1290 class TP_QT_EXPORT ProtocolInterfaceAvatarsInterface : public Tp::AbstractInterface
1291 {
1292 Q_OBJECT
1293
1294 public:
1301 static inline QLatin1String staticInterfaceName()
1302 {
1303 return QLatin1String("org.freedesktop.Telepathy.Protocol.Interface.Avatars");
1304 }
1305
1313 ProtocolInterfaceAvatarsInterface(
1314 const QString& busName,
1315 const QString& objectPath,
1316 QObject* parent = 0
1317 );
1318
1327 ProtocolInterfaceAvatarsInterface(
1328 const QDBusConnection& connection,
1329 const QString& busName,
1330 const QString& objectPath,
1331 QObject* parent = 0
1332 );
1333
1340 ProtocolInterfaceAvatarsInterface(Tp::DBusProxy *proxy);
1341
1349 explicit ProtocolInterfaceAvatarsInterface(const Tp::Client::ConnectionManagerInterface& mainInterface);
1350
1358 ProtocolInterfaceAvatarsInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
1359
1371 inline Tp::PendingVariant *requestPropertySupportedAvatarMIMETypes() const
1372 {
1373 return internalRequestProperty(QLatin1String("SupportedAvatarMIMETypes"));
1374 }
1375
1387 inline Tp::PendingVariant *requestPropertyMinimumAvatarHeight() const
1388 {
1389 return internalRequestProperty(QLatin1String("MinimumAvatarHeight"));
1390 }
1391
1403 inline Tp::PendingVariant *requestPropertyMinimumAvatarWidth() const
1404 {
1405 return internalRequestProperty(QLatin1String("MinimumAvatarWidth"));
1406 }
1407
1419 inline Tp::PendingVariant *requestPropertyRecommendedAvatarHeight() const
1420 {
1421 return internalRequestProperty(QLatin1String("RecommendedAvatarHeight"));
1422 }
1423
1435 inline Tp::PendingVariant *requestPropertyRecommendedAvatarWidth() const
1436 {
1437 return internalRequestProperty(QLatin1String("RecommendedAvatarWidth"));
1438 }
1439
1451 inline Tp::PendingVariant *requestPropertyMaximumAvatarHeight() const
1452 {
1453 return internalRequestProperty(QLatin1String("MaximumAvatarHeight"));
1454 }
1455
1467 inline Tp::PendingVariant *requestPropertyMaximumAvatarWidth() const
1468 {
1469 return internalRequestProperty(QLatin1String("MaximumAvatarWidth"));
1470 }
1471
1483 inline Tp::PendingVariant *requestPropertyMaximumAvatarBytes() const
1484 {
1485 return internalRequestProperty(QLatin1String("MaximumAvatarBytes"));
1486 }
1487
1494 Tp::PendingVariantMap *requestAllProperties() const
1495 {
1496 return internalRequestAllProperties();
1497 }
1498
1499 protected:
1500 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1501 };
1502
1510 class TP_QT_EXPORT ProtocolInterfacePresenceInterface : public Tp::AbstractInterface
1511 {
1512 Q_OBJECT
1513
1514 public:
1521 static inline QLatin1String staticInterfaceName()
1522 {
1523 return QLatin1String("org.freedesktop.Telepathy.Protocol.Interface.Presence");
1524 }
1525
1533 ProtocolInterfacePresenceInterface(
1534 const QString& busName,
1535 const QString& objectPath,
1536 QObject* parent = 0
1537 );
1538
1547 ProtocolInterfacePresenceInterface(
1548 const QDBusConnection& connection,
1549 const QString& busName,
1550 const QString& objectPath,
1551 QObject* parent = 0
1552 );
1553
1560 ProtocolInterfacePresenceInterface(Tp::DBusProxy *proxy);
1561
1569 explicit ProtocolInterfacePresenceInterface(const Tp::Client::ConnectionManagerInterface& mainInterface);
1570
1578 ProtocolInterfacePresenceInterface(const Tp::Client::ConnectionManagerInterface& mainInterface, QObject* parent);
1579
1593 inline Tp::PendingVariant *requestPropertyStatuses() const
1594 {
1595 return internalRequestProperty(QLatin1String("Statuses"));
1596 }
1597
1604 Tp::PendingVariantMap *requestAllProperties() const
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*)
1616 Q_DECLARE_METATYPE(Tp::Client::ProtocolInterfaceAddressingInterface*)
1617 Q_DECLARE_METATYPE(Tp::Client::ProtocolInterfaceAvatarsInterface*)
1618 Q_DECLARE_METATYPE(Tp::Client::ProtocolInterfacePresenceInterface*)
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertySupportedAvatarMIMETypes
Tp::PendingVariant * requestPropertySupportedAvatarMIMETypes() const
Definition: cli-connection-manager.h:1371
Tp::Client::ProtocolInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-connection-manager.h:454
Tp::Client::ProtocolInterface::requestPropertyAuthenticationTypes
Tp::PendingVariant * requestPropertyAuthenticationTypes() const
Definition: cli-connection-manager.h:765
Tp::Client::ProtocolInterface
Definition: cli-connection-manager.h:361
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::ProtocolInterface::requestPropertyRequestableChannelClasses
Tp::PendingVariant * requestPropertyRequestableChannelClasses() const
Definition: cli-connection-manager.h:584
Tp::Client::ProtocolInterfaceAddressingInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:925
Tp::Client::ProtocolInterface::IdentifyAccount
QDBusPendingReply< QString > IdentifyAccount(const QVariantMap &parameters, int timeout=-1)
Definition: cli-connection-manager.h:819
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyMaximumAvatarBytes
Tp::PendingVariant * requestPropertyMaximumAvatarBytes() const
Definition: cli-connection-manager.h:1483
Tp::Client::ConnectionManagerInterface::GetParameters
QDBusPendingReply< Tp::ParamSpecList > GetParameters(const QString &protocol, int timeout=-1)
Definition: cli-connection-manager.h:194
Tp::Client::ProtocolInterfacePresenceInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1604
Tp::Client::ConnectionManagerInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:55
Tp::Client::ProtocolInterfaceAvatarsInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:1301
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyMinimumAvatarWidth
Tp::PendingVariant * requestPropertyMinimumAvatarWidth() const
Definition: cli-connection-manager.h:1403
Tp::AbstractInterface
The AbstractInterface class is the base class for all client side D-Bus interfaces, allowing access to remote methods/properties/signals.
Definition: abstract-interface.h:42
Tp::Client::ConnectionManagerInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:163
Tp::Client::ProtocolInterfaceAddressingInterface
Definition: cli-connection-manager.h:914
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyMaximumAvatarHeight
Tp::PendingVariant * requestPropertyMaximumAvatarHeight() const
Definition: cli-connection-manager.h:1451
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyMaximumAvatarWidth
Tp::PendingVariant * requestPropertyMaximumAvatarWidth() const
Definition: cli-connection-manager.h:1467
Tp::Client::ProtocolInterface::NormalizeContact
QDBusPendingReply< QString > NormalizeContact(const QString &contactID, int timeout=-1)
Definition: cli-connection-manager.h:888
Tp::Client::ConnectionManagerInterface::RequestConnection
QDBusPendingReply< QString, QDBusObjectPath > RequestConnection(const QString &protocol, const QVariantMap &parameters, int timeout=-1)
Definition: cli-connection-manager.h:315
Tp::Client::ProtocolInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:372
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyMinimumAvatarHeight
Tp::PendingVariant * requestPropertyMinimumAvatarHeight() const
Definition: cli-connection-manager.h:1387
Tp::Client::ConnectionManagerInterface::requestPropertyProtocols
Tp::PendingVariant * requestPropertyProtocols() const
Definition: cli-connection-manager.h:120
Tp::Client::ConnectionManagerInterface::ListProtocols
QDBusPendingReply< QStringList > ListProtocols(int timeout=-1)
Definition: cli-connection-manager.h:224
Tp::Client::ProtocolInterfaceAddressingInterface::requestPropertyAddressableVCardFields
Tp::PendingVariant * requestPropertyAddressableVCardFields() const
Definition: cli-connection-manager.h:1046
Tp::Client::ProtocolInterfacePresenceInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-connection-manager.h:1521
Tp::Client::ProtocolInterfaceAddressingInterface::requestPropertyAddressableURISchemes
Tp::PendingVariant * requestPropertyAddressableURISchemes() const
Definition: cli-connection-manager.h:1130
Tp::Client::ProtocolInterfaceAddressingInterface::NormalizeVCardAddress
QDBusPendingReply< QString > NormalizeVCardAddress(const QString &VCardField, const QString &VCardAddress, int timeout=-1)
Definition: cli-connection-manager.h:1189
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyRecommendedAvatarWidth
Tp::PendingVariant * requestPropertyRecommendedAvatarWidth() const
Definition: cli-connection-manager.h:1435
Tp::Client::ProtocolInterface::requestPropertyEnglishName
Tp::PendingVariant * requestPropertyEnglishName() const
Definition: cli-connection-manager.h:681
Tp::Client::ProtocolInterfaceAddressingInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1141
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::ProtocolInterface::requestPropertyIcon
Tp::PendingVariant * requestPropertyIcon() const
Definition: cli-connection-manager.h:715
Tp::Client::ProtocolInterfacePresenceInterface::requestPropertyStatuses
Tp::PendingVariant * requestPropertyStatuses() const
Definition: cli-connection-manager.h:1593
Tp::Client::ConnectionManagerInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-connection-manager.h:152
Tp::Client::ConnectionManagerInterface
Definition: cli-connection-manager.h:44
Tp::Client::ProtocolInterface::requestPropertyParameters
Tp::PendingVariant * requestPropertyParameters() const
Definition: cli-connection-manager.h:485
Tp::Client::ProtocolInterfacePresenceInterface
Definition: cli-connection-manager.h:1510
Tp::Client::ProtocolInterfaceAvatarsInterface
Definition: cli-connection-manager.h:1290
Tp::PendingVariantMap
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::Client::ProtocolInterface::requestPropertyVCardField
Tp::PendingVariant * requestPropertyVCardField() const
Definition: cli-connection-manager.h:638
Tp::Client::ProtocolInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:776
Tp::Client::ProtocolInterfaceAddressingInterface::NormalizeContactURI
QDBusPendingReply< QString > NormalizeContactURI(const QString &URI, int timeout=-1)
Definition: cli-connection-manager.h:1264
Tp::Client::ProtocolInterface::requestPropertyConnectionInterfaces
Tp::PendingVariant * requestPropertyConnectionInterfaces() const
Definition: cli-connection-manager.h:514
Tp::Client::ProtocolInterfaceAvatarsInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-connection-manager.h:1494
Tp::Client::ProtocolInterfaceAvatarsInterface::requestPropertyRecommendedAvatarHeight
Tp::PendingVariant * requestPropertyRecommendedAvatarHeight() const
Definition: cli-connection-manager.h:1419