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 
00127     Q_PROPERTY(qlonglong UserActionTime READ UserActionTime)
00128 
00129     
00137     inline qlonglong UserActionTime() const TELEPATHY_GNUC_DEPRECATED
00138     {
00139         return qvariant_cast<qlonglong>(internalPropGet("UserActionTime"));
00140     }
00141 
00154     Q_PROPERTY(QString PreferredHandler READ PreferredHandler)
00155 
00156     
00164     inline QString PreferredHandler() const TELEPATHY_GNUC_DEPRECATED
00165     {
00166         return qvariant_cast<QString>(internalPropGet("PreferredHandler"));
00167     }
00168 
00183     Q_PROPERTY(Tp::QualifiedPropertyValueMapList Requests READ Requests)
00184 
00185     
00193     inline Tp::QualifiedPropertyValueMapList Requests() const TELEPATHY_GNUC_DEPRECATED
00194     {
00195         return qvariant_cast<Tp::QualifiedPropertyValueMapList>(internalPropGet("Requests"));
00196     }
00197 
00204     Q_PROPERTY(QStringList Interfaces READ Interfaces)
00205 
00206     
00214     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
00215     {
00216         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
00217     }
00218 
00219 public Q_SLOTS:
00245     inline QDBusPendingReply<> Proceed()
00246     {
00247         if (!invalidationReason().isEmpty()) {
00248             return QDBusPendingReply<>(QDBusMessage::createError(
00249                 invalidationReason(),
00250                 invalidationMessage()
00251             ));
00252         }
00253 
00254 
00255         return asyncCall(QLatin1String("Proceed"));
00256     }
00257 
00293     inline QDBusPendingReply<> Cancel()
00294     {
00295         if (!invalidationReason().isEmpty()) {
00296             return QDBusPendingReply<>(QDBusMessage::createError(
00297                 invalidationReason(),
00298                 invalidationMessage()
00299             ));
00300         }
00301 
00302 
00303         return asyncCall(QLatin1String("Cancel"));
00304     }
00305 
00306 Q_SIGNALS:
00325     void Failed(const QString& error, const QString& message);
00326 
00333     void Succeeded();
00334 
00335 protected:
00336     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00337 };
00338 }
00339 }
00340 Q_DECLARE_METATYPE(Tp::Client::ChannelRequestInterface*)


Copyright © 2008-2010 Collabora Ltd. and Nokia Corporation
Telepathy-Qt4 0.3.6