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

cli-channel-dispatcher.h

    00001 /*
    00002  * This file contains D-Bus client proxy classes generated by qt-client-gen.py.
    00003  *
    00004  * This file can be distributed under the same terms as the specification from
    00005  * which it was generated.
    00006  */
    00007
    00008 #ifndef IN_TP_QT_HEADER
    00009 #error IN_TP_QT_HEADER
    00010 #endif
    00011
    00012 #include <TelepathyQt/Types>
    00013
    00014 #include <QtGlobal>
    00015
    00016 #include <QString>
    00017 #include <QObject>
    00018 #include <QVariant>
    00019
    00020 #include <QDBusPendingReply>
    00021
    00022 #include <TelepathyQt/AbstractInterface>
    00023 #include <TelepathyQt/DBusProxy>
    00024 #include <TelepathyQt/Global>
    00025
    00026 namespace Tp
    00027 {
    00028 class PendingVariant;
    00029 class PendingOperation;
    00030 }
    00031
    00032 namespace Tp
    00033 {
    00034 namespace Client
    00035 {
    00036
    00044 class TP_QT_EXPORT ChannelDispatcherInterface : public Tp::AbstractInterface
    00045 {
    00046     Q_OBJECT
    00047
    00048 public:
    00055     static inline QLatin1String staticInterfaceName()
    00056     {
    00057         return QLatin1String("org.freedesktop.Telepathy.ChannelDispatcher");
    00058     }
    00059
    00067     ChannelDispatcherInterface(
    00068         const QString& busName,
    00069         const QString& objectPath,
    00070         QObject* parent = 0
    00071     );
    00072
    00081     ChannelDispatcherInterface(
    00082         const QDBusConnection& connection,
    00083         const QString& busName,
    00084         const QString& objectPath,
    00085         QObject* parent = 0
    00086     );
    00087
    00094     ChannelDispatcherInterface(Tp::DBusProxy *proxy);
    00095
    00105     inline Tp::PendingVariant *requestPropertyInterfaces() const
    00106     {
    00107         return internalRequestProperty(QLatin1String("Interfaces"));
    00108     }
    00109
    00123     inline Tp::PendingVariant *requestPropertySupportsRequestHints() const
    00124     {
    00125         return internalRequestProperty(QLatin1String("SupportsRequestHints"));
    00126     }
    00127
    00134     Tp::PendingVariantMap *requestAllProperties() const
    00135     {
    00136         return internalRequestAllProperties();
    00137     }
    00138
    00139 public Q_SLOTS:
    00197     inline QDBusPendingReply<QDBusObjectPath> CreateChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, int timeout = -1)
    00198     {
    00199         if (!invalidationReason().isEmpty()) {
    00200             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00201                 invalidationReason(),
    00202                 invalidationMessage()
    00203             ));
    00204         }
    00205
    00206         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00207                 this->staticInterfaceName(), QLatin1String("CreateChannel"));
    00208         callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
    00209         return this->connection().asyncCall(callMessage, timeout);
    00210     }
    00211
    00267     inline QDBusPendingReply<QDBusObjectPath> EnsureChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, int timeout = -1)
    00268     {
    00269         if (!invalidationReason().isEmpty()) {
    00270             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00271                 invalidationReason(),
    00272                 invalidationMessage()
    00273             ));
    00274         }
    00275
    00276         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00277                 this->staticInterfaceName(), QLatin1String("EnsureChannel"));
    00278         callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
    00279         return this->connection().asyncCall(callMessage, timeout);
    00280     }
    00281
    00414     inline QDBusPendingReply<QDBusObjectPath> CreateChannelWithHints(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, const QVariantMap& hints, int timeout = -1)
    00415     {
    00416         if (!invalidationReason().isEmpty()) {
    00417             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00418                 invalidationReason(),
    00419                 invalidationMessage()
    00420             ));
    00421         }
    00422
    00423         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00424                 this->staticInterfaceName(), QLatin1String("CreateChannelWithHints"));
    00425         callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler) << QVariant::fromValue(hints);
    00426         return this->connection().asyncCall(callMessage, timeout);
    00427     }
    00428
    00534     inline QDBusPendingReply<QDBusObjectPath> EnsureChannelWithHints(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler, const QVariantMap& hints, int timeout = -1)
    00535     {
    00536         if (!invalidationReason().isEmpty()) {
    00537             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00538                 invalidationReason(),
    00539                 invalidationMessage()
    00540             ));
    00541         }
    00542
    00543         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00544                 this->staticInterfaceName(), QLatin1String("EnsureChannelWithHints"));
    00545         callMessage << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler) << QVariant::fromValue(hints);
    00546         return this->connection().asyncCall(callMessage, timeout);
    00547     }
    00548
    00628     inline QDBusPendingReply<Tp::ObjectPathList, Tp::NotDelegatedMap> DelegateChannels(const Tp::ObjectPathList& channels, qlonglong userActionTime, const QString& preferredHandler, int timeout = -1)
    00629     {
    00630         if (!invalidationReason().isEmpty()) {
    00631             return QDBusPendingReply<Tp::ObjectPathList, Tp::NotDelegatedMap>(QDBusMessage::createError(
    00632                 invalidationReason(),
    00633                 invalidationMessage()
    00634             ));
    00635         }
    00636
    00637         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00638                 this->staticInterfaceName(), QLatin1String("DelegateChannels"));
    00639         callMessage << QVariant::fromValue(channels) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
    00640         return this->connection().asyncCall(callMessage, timeout);
    00641     }
    00642
    00678     inline QDBusPendingReply<> PresentChannel(const QDBusObjectPath& channel, qlonglong userActionTime, int timeout = -1)
    00679     {
    00680         if (!invalidationReason().isEmpty()) {
    00681             return QDBusPendingReply<>(QDBusMessage::createError(
    00682                 invalidationReason(),
    00683                 invalidationMessage()
    00684             ));
    00685         }
    00686
    00687         QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
    00688                 this->staticInterfaceName(), QLatin1String("PresentChannel"));
    00689         callMessage << QVariant::fromValue(channel) << QVariant::fromValue(userActionTime);
    00690         return this->connection().asyncCall(callMessage, timeout);
    00691     }
    00692
    00693 protected:
    00694     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00695 };
    00696 }
    00697 }
    00698 Q_DECLARE_METATYPE(Tp::Client::ChannelDispatcherInterface*)