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

cli-channel-dispatch-operation.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 namespace Tp{
00027 class PendingVariant;
00028 class PendingOperation;
00029 }
00030 
00031 // FIXME: (API/ABI break) Remove definition of TELEPATHY_GNUC_DEPRECATED
00032 
00033 // basically the same as GLib's G_GNUC_DEPRECATED
00034 #ifndef TELEPATHY_GNUC_DEPRECATED
00035 #   if defined(Q_CC_GNUC) && __GNUC__ >= 4
00036 #       define TELEPATHY_GNUC_DEPRECATED __attribute__((__deprecated__))
00037 #   else
00038 #       define TELEPATHY_GNUC_DEPRECATED
00039 #   endif
00040 #endif
00041 namespace Tp
00042 {
00043 namespace Client
00044 {
00045 
00053 class TELEPATHY_QT4_EXPORT ChannelDispatchOperationInterface : public Tp::AbstractInterface
00054 {
00055     Q_OBJECT
00056 
00057 public:
00064     static inline const char *staticInterfaceName()
00065     {
00066         return "org.freedesktop.Telepathy.ChannelDispatchOperation";
00067     }
00068 
00076     ChannelDispatchOperationInterface(
00077         const QString& busName,
00078         const QString& objectPath,
00079         QObject* parent = 0
00080     );
00081 
00090     ChannelDispatchOperationInterface(
00091         const QDBusConnection& connection,
00092         const QString& busName,
00093         const QString& objectPath,
00094         QObject* parent = 0
00095     );
00096 
00103     ChannelDispatchOperationInterface(Tp::DBusProxy *proxy);
00104 
00111     Q_PROPERTY(QStringList Interfaces READ _deprecated_Interfaces)
00112 
00113     
00122     inline TELEPATHY_QT4_DEPRECATED QStringList Interfaces() const
00123     {
00124         return _deprecated_Interfaces();
00125     }
00126 
00127 private:
00128     inline QStringList _deprecated_Interfaces() const
00129     {
00130         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
00131     }
00132 public:
00133 
00144     inline Tp::PendingVariant *requestPropertyInterfaces() const
00145     {
00146         return internalRequestProperty(QLatin1String("Interfaces"));
00147     }
00148 
00157     Q_PROPERTY(QDBusObjectPath Connection READ _deprecated_Connection)
00158 
00159     
00168     inline TELEPATHY_QT4_DEPRECATED QDBusObjectPath Connection() const
00169     {
00170         return _deprecated_Connection();
00171     }
00172 
00173 private:
00174     inline QDBusObjectPath _deprecated_Connection() const
00175     {
00176         return qvariant_cast<QDBusObjectPath>(internalPropGet("Connection"));
00177     }
00178 public:
00179 
00192     inline Tp::PendingVariant *requestPropertyConnection() const
00193     {
00194         return internalRequestProperty(QLatin1String("Connection"));
00195     }
00196 
00203     Q_PROPERTY(QDBusObjectPath Account READ _deprecated_Account)
00204 
00205     
00214     inline TELEPATHY_QT4_DEPRECATED QDBusObjectPath Account() const
00215     {
00216         return _deprecated_Account();
00217     }
00218 
00219 private:
00220     inline QDBusObjectPath _deprecated_Account() const
00221     {
00222         return qvariant_cast<QDBusObjectPath>(internalPropGet("Account"));
00223     }
00224 public:
00225 
00236     inline Tp::PendingVariant *requestPropertyAccount() const
00237     {
00238         return internalRequestProperty(QLatin1String("Account"));
00239     }
00240 
00248     Q_PROPERTY(Tp::ChannelDetailsList Channels READ _deprecated_Channels)
00249 
00250     
00259     inline TELEPATHY_QT4_DEPRECATED Tp::ChannelDetailsList Channels() const
00260     {
00261         return _deprecated_Channels();
00262     }
00263 
00264 private:
00265     inline Tp::ChannelDetailsList _deprecated_Channels() const
00266     {
00267         return qvariant_cast<Tp::ChannelDetailsList>(internalPropGet("Channels"));
00268     }
00269 public:
00270 
00282     inline Tp::PendingVariant *requestPropertyChannels() const
00283     {
00284         return internalRequestProperty(QLatin1String("Channels"));
00285     }
00286 
00300     Q_PROPERTY(QStringList PossibleHandlers READ _deprecated_PossibleHandlers)
00301 
00302     
00311     inline TELEPATHY_QT4_DEPRECATED QStringList PossibleHandlers() const
00312     {
00313         return _deprecated_PossibleHandlers();
00314     }
00315 
00316 private:
00317     inline QStringList _deprecated_PossibleHandlers() const
00318     {
00319         return qvariant_cast<QStringList>(internalPropGet("PossibleHandlers"));
00320     }
00321 public:
00322 
00340     inline Tp::PendingVariant *requestPropertyPossibleHandlers() const
00341     {
00342         return internalRequestProperty(QLatin1String("PossibleHandlers"));
00343     }
00344 
00351     Tp::PendingVariantMap *requestAllProperties() const
00352     {
00353         return internalRequestAllProperties();
00354     }
00355 
00356 public Q_SLOTS:
00393     inline QDBusPendingReply<> HandleWith(const QString& handler)
00394     {
00395         if (!invalidationReason().isEmpty()) {
00396             return QDBusPendingReply<>(QDBusMessage::createError(
00397                 invalidationReason(),
00398                 invalidationMessage()
00399             ));
00400         }
00401 
00402         QList<QVariant> argumentList;
00403         argumentList << QVariant::fromValue(handler);
00404         return asyncCallWithArgumentList(QLatin1String("HandleWith"), argumentList);
00405     }
00406 
00453     inline QDBusPendingReply<> Claim()
00454     {
00455         if (!invalidationReason().isEmpty()) {
00456             return QDBusPendingReply<>(QDBusMessage::createError(
00457                 invalidationReason(),
00458                 invalidationMessage()
00459             ));
00460         }
00461 
00462         return asyncCall(QLatin1String("Claim"));
00463     }
00464 
00484     inline QDBusPendingReply<> HandleWithTime(const QString& handler, qlonglong userActionTime)
00485     {
00486         if (!invalidationReason().isEmpty()) {
00487             return QDBusPendingReply<>(QDBusMessage::createError(
00488                 invalidationReason(),
00489                 invalidationMessage()
00490             ));
00491         }
00492 
00493         QList<QVariant> argumentList;
00494         argumentList << QVariant::fromValue(handler) << QVariant::fromValue(userActionTime);
00495         return asyncCallWithArgumentList(QLatin1String("HandleWithTime"), argumentList);
00496     }
00497 
00498 Q_SIGNALS:
00540     void ChannelLost(const QDBusObjectPath& channel, const QString& error, const QString& message);
00541 
00582     void Finished();
00583 
00584 protected:
00585     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00586 };
00587 }
00588 }
00589 Q_DECLARE_METATYPE(Tp::Client::ChannelDispatchOperationInterface*)


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