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 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 ChannelDispatcherInterface : public Tp::AbstractInterface
00054 {
00055     Q_OBJECT
00056 
00057 public:
00064     static inline const char *staticInterfaceName()
00065     {
00066         return "org.freedesktop.Telepathy.ChannelDispatcher";
00067     }
00068 
00076     ChannelDispatcherInterface(
00077         const QString& busName,
00078         const QString& objectPath,
00079         QObject* parent = 0
00080     );
00081 
00090     ChannelDispatcherInterface(
00091         const QDBusConnection& connection,
00092         const QString& busName,
00093         const QString& objectPath,
00094         QObject* parent = 0
00095     );
00096 
00103     ChannelDispatcherInterface(Tp::DBusProxy *proxy);
00104 
00110     Q_PROPERTY(QStringList Interfaces READ _deprecated_Interfaces)
00111 
00112     
00121     inline TELEPATHY_QT4_DEPRECATED QStringList Interfaces() const
00122     {
00123         return _deprecated_Interfaces();
00124     }
00125 
00126 private:
00127     inline QStringList _deprecated_Interfaces() const
00128     {
00129         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
00130     }
00131 public:
00132 
00142     inline Tp::PendingVariant *requestPropertyInterfaces() const
00143     {
00144         return internalRequestProperty(QLatin1String("Interfaces"));
00145     }
00146 
00153     Tp::PendingVariantMap *requestAllProperties() const
00154     {
00155         return internalRequestAllProperties();
00156     }
00157 
00158 public Q_SLOTS:
00272     inline QDBusPendingReply<QDBusObjectPath> CreateChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler)
00273     {
00274         if (!invalidationReason().isEmpty()) {
00275             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
00276                 invalidationReason(),
00277                 invalidationMessage()
00278             ));
00279         }
00280 
00281         QList<QVariant> argumentList;
00282         argumentList << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
00283         return asyncCallWithArgumentList(QLatin1String("CreateChannel"), argumentList);
00284     }
00285 
00372     inline QDBusPendingReply<QDBusObjectPath> EnsureChannel(const QDBusObjectPath& account, const QVariantMap& requestedProperties, qlonglong userActionTime, const QString& preferredHandler)
00373     {
00374         if (!invalidationReason().isEmpty()) {
00375             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
00376                 invalidationReason(),
00377                 invalidationMessage()
00378             ));
00379         }
00380 
00381         QList<QVariant> argumentList;
00382         argumentList << QVariant::fromValue(account) << QVariant::fromValue(requestedProperties) << QVariant::fromValue(userActionTime) << QVariant::fromValue(preferredHandler);
00383         return asyncCallWithArgumentList(QLatin1String("EnsureChannel"), argumentList);
00384     }
00385 
00386 protected:
00387     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00388 };
00389 }
00390 }
00391 Q_DECLARE_METATYPE(Tp::Client::ChannelDispatcherInterface*)


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