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

# cli-channel-dispatcher.h

    00001 /*
    00002  * This file contains D-Bus client proxy classes generated by qt4-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_TELEPATHY_QT4_HEADER
    00009 #error IN_TELEPATHY_QT4_HEADER
    00010 #endif
    00011
    00012 #include <TelepathyQt4/Types>
    00013
    00014 #include <QtGlobal>
    00015
    00016 #include <QString>
    00017 #include <QObject>
    00018 #include <QVariant>
    00019
    00020 #include <QDBusPendingReply>
    00021
    00022 #include <TelepathyQt4/AbstractInterface>
    00023 #include <TelepathyQt4/DBusProxy>
    00024 #include <TelepathyQt4/Global>
    00025
    00026 // basically the same as GLib's G_GNUC_DEPRECATED
    00027 #ifndef TELEPATHY_GNUC_DEPRECATED
    00028 #   if defined(Q_CC_GNUC) && __GNUC__ >= 4
    00029 #       define TELEPATHY_GNUC_DEPRECATED __attribute__((__deprecated__))
    00030 #   else
    00031 #       define TELEPATHY_GNUC_DEPRECATED
    00032 #   endif
    00033 #endif
    00034 namespace Tp
    00035 {
    00036 namespace Client
    00037 {
    00038
    00046 class TELEPATHY_QT4_EXPORT ChannelDispatcherInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.ChannelDispatcher";
    00060     }
    00061
    00069     ChannelDispatcherInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     ChannelDispatcherInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     ChannelDispatcherInterface(Tp::DBusProxy *proxy);
    00097
    00103     Q_PROPERTY(QStringList Interfaces READ Interfaces)
    00104
    00105
    00113     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
    00114     {
    00115         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
    00116     }
    00117
    00118 public Q_SLOTS:
    00224     inline QDBusPendingReply<QDBusObjectPath> CreateChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler)
    00225     {
    00226         if (!invalidationReason().isEmpty()) {
    00227             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00228                 invalidationReason(),
    00229                 invalidationMessage()
    00230             ));
    00231         }
    00232
    00233
    00234         QList<QVariant> argumentList;
    00235         argumentList << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
    00236         return asyncCallWithArgumentList(QLatin1String("CreateChannel"), argumentList);
    00237     }
    00238
    00325     inline QDBusPendingReply<QDBusObjectPath> EnsureChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler)
    00326     {
    00327         if (!invalidationReason().isEmpty()) {
    00328             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00329                 invalidationReason(),
    00330                 invalidationMessage()
    00331             ));
    00332         }
    00333
    00334
    00335         QList<QVariant> argumentList;
    00336         argumentList << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
    00337         return asyncCallWithArgumentList(QLatin1String("EnsureChannel"), argumentList);
    00338     }
    00339
    00340 protected:
    00341     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00342 };
    00343 }
    00344 }