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 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 ChannelRequestInterface : public Tp::AbstractInterface
00054 {
00055     Q_OBJECT
00056 
00057 public:
00064     static inline const char *staticInterfaceName()
00065     {
00066         return "org.freedesktop.Telepathy.ChannelRequest";
00067     }
00068 
00076     ChannelRequestInterface(
00077         const QString& busName,
00078         const QString& objectPath,
00079         QObject* parent = 0
00080     );
00081 
00090     ChannelRequestInterface(
00091         const QDBusConnection& connection,
00092         const QString& busName,
00093         const QString& objectPath,
00094         QObject* parent = 0
00095     );
00096 
00103     ChannelRequestInterface(Tp::DBusProxy *proxy);
00104 
00110     Q_PROPERTY(QDBusObjectPath Account READ _deprecated_Account)
00111 
00112     
00121     inline TELEPATHY_QT4_DEPRECATED QDBusObjectPath Account() const
00122     {
00123         return _deprecated_Account();
00124     }
00125 
00126 private:
00127     inline QDBusObjectPath _deprecated_Account() const
00128     {
00129         return qvariant_cast<QDBusObjectPath>(internalPropGet("Account"));
00130     }
00131 public:
00132 
00142     inline Tp::PendingVariant *requestPropertyAccount() const
00143     {
00144         return internalRequestProperty(QLatin1String("Account"));
00145     }
00146 
00156     Q_PROPERTY(qlonglong UserActionTime READ _deprecated_UserActionTime)
00157 
00158     
00167     inline TELEPATHY_QT4_DEPRECATED qlonglong UserActionTime() const
00168     {
00169         return _deprecated_UserActionTime();
00170     }
00171 
00172 private:
00173     inline qlonglong _deprecated_UserActionTime() const
00174     {
00175         return qvariant_cast<qlonglong>(internalPropGet("UserActionTime"));
00176     }
00177 public:
00178 
00192     inline Tp::PendingVariant *requestPropertyUserActionTime() const
00193     {
00194         return internalRequestProperty(QLatin1String("UserActionTime"));
00195     }
00196 
00209     Q_PROPERTY(QString PreferredHandler READ _deprecated_PreferredHandler)
00210 
00211     
00220     inline TELEPATHY_QT4_DEPRECATED QString PreferredHandler() const
00221     {
00222         return _deprecated_PreferredHandler();
00223     }
00224 
00225 private:
00226     inline QString _deprecated_PreferredHandler() const
00227     {
00228         return qvariant_cast<QString>(internalPropGet("PreferredHandler"));
00229     }
00230 public:
00231 
00248     inline Tp::PendingVariant *requestPropertyPreferredHandler() const
00249     {
00250         return internalRequestProperty(QLatin1String("PreferredHandler"));
00251     }
00252 
00267     Q_PROPERTY(Tp::QualifiedPropertyValueMapList Requests READ _deprecated_Requests)
00268 
00269     
00278     inline TELEPATHY_QT4_DEPRECATED Tp::QualifiedPropertyValueMapList Requests() const
00279     {
00280         return _deprecated_Requests();
00281     }
00282 
00283 private:
00284     inline Tp::QualifiedPropertyValueMapList _deprecated_Requests() const
00285     {
00286         return qvariant_cast<Tp::QualifiedPropertyValueMapList>(internalPropGet("Requests"));
00287     }
00288 public:
00289 
00308     inline Tp::PendingVariant *requestPropertyRequests() const
00309     {
00310         return internalRequestProperty(QLatin1String("Requests"));
00311     }
00312 
00319     Q_PROPERTY(QStringList Interfaces READ _deprecated_Interfaces)
00320 
00321     
00330     inline TELEPATHY_QT4_DEPRECATED QStringList Interfaces() const
00331     {
00332         return _deprecated_Interfaces();
00333     }
00334 
00335 private:
00336     inline QStringList _deprecated_Interfaces() const
00337     {
00338         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
00339     }
00340 public:
00341 
00352     inline Tp::PendingVariant *requestPropertyInterfaces() const
00353     {
00354         return internalRequestProperty(QLatin1String("Interfaces"));
00355     }
00356 
00363     Tp::PendingVariantMap *requestAllProperties() const
00364     {
00365         return internalRequestAllProperties();
00366     }
00367 
00368 public Q_SLOTS:
00394     inline QDBusPendingReply<> Proceed()
00395     {
00396         if (!invalidationReason().isEmpty()) {
00397             return QDBusPendingReply<>(QDBusMessage::createError(
00398                 invalidationReason(),
00399                 invalidationMessage()
00400             ));
00401         }
00402 
00403         return asyncCall(QLatin1String("Proceed"));
00404     }
00405 
00441     inline QDBusPendingReply<> Cancel()
00442     {
00443         if (!invalidationReason().isEmpty()) {
00444             return QDBusPendingReply<>(QDBusMessage::createError(
00445                 invalidationReason(),
00446                 invalidationMessage()
00447             ));
00448         }
00449 
00450         return asyncCall(QLatin1String("Cancel"));
00451     }
00452 
00453 Q_SIGNALS:
00472     void Failed(const QString& error, const QString& message);
00473 
00480     void Succeeded();
00481 
00482 protected:
00483     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00484 };
00485 }
00486 }
00487 Q_DECLARE_METATYPE(Tp::Client::ChannelRequestInterface*)


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