TelepathyQt4: cli-channel-request.h Source File

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

# cli-channel-request.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 ChannelRequestInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.ChannelRequest";
    00060     }
    00061
    00069     ChannelRequestInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     ChannelRequestInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     ChannelRequestInterface(Tp::DBusProxy *proxy);
    00097
    00103     Q_PROPERTY(QDBusObjectPath Account READ Account)
    00104
    00105
    00113     inline QDBusObjectPath Account() const TELEPATHY_GNUC_DEPRECATED
    00114     {
    00115         return qvariant_cast<QDBusObjectPath>(internalPropGet("Account"));
    00116     }
    00117
    00130     Q_PROPERTY(qlonglong UserActionTime READ UserActionTime)
    00131
    00132
    00140     inline qlonglong UserActionTime() const TELEPATHY_GNUC_DEPRECATED
    00141     {
    00142         return qvariant_cast<qlonglong>(internalPropGet("UserActionTime"));
    00143     }
    00144
    00157     Q_PROPERTY(QString PreferredHandler READ PreferredHandler)
    00158
    00159
    00167     inline QString PreferredHandler() const TELEPATHY_GNUC_DEPRECATED
    00168     {
    00169         return qvariant_cast<QString>(internalPropGet("PreferredHandler"));
    00170     }
    00171
    00186     Q_PROPERTY(Tp::QualifiedPropertyValueMapList Requests READ Requests)
    00187
    00188
    00196     inline Tp::QualifiedPropertyValueMapList Requests() const TELEPATHY_GNUC_DEPRECATED
    00197     {
    00198         return qvariant_cast<Tp::QualifiedPropertyValueMapList>(internalPropGet("Requests"));
    00199     }
    00200
    00207     Q_PROPERTY(QStringList Interfaces READ Interfaces)
    00208
    00209
    00217     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
    00218     {
    00219         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
    00220     }
    00221
    00222 public Q_SLOTS:
    00248     inline QDBusPendingReply<> Proceed()
    00249     {
    00250         if (!invalidationReason().isEmpty()) {
    00251             return QDBusPendingReply<>(QDBusMessage::createError(
    00252                 invalidationReason(),
    00253                 invalidationMessage()
    00254             ));
    00255         }
    00256
    00257
    00258         return asyncCall(QLatin1String("Proceed"));
    00259     }
    00260
    00296     inline QDBusPendingReply<> Cancel()
    00297     {
    00298         if (!invalidationReason().isEmpty()) {
    00299             return QDBusPendingReply<>(QDBusMessage::createError(
    00300                 invalidationReason(),
    00301                 invalidationMessage()
    00302             ));
    00303         }
    00304
    00305
    00306         return asyncCall(QLatin1String("Cancel"));
    00307     }
    00308
    00309 Q_SIGNALS:
    00328     void Failed(const QString& error, const QString& message);
    00329
    00336     void Succeeded();
    00337
    00338 protected:
    00339     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00340 };
    00341 }
    00342 }