TelepathyQt4: cli-account-manager.h Source File

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

# cli-account-manager.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 AccountManagerInterface : public Tp::AbstractInterface
    00047 {
    00048     Q_OBJECT
    00049
    00050 public:
    00057     static inline const char *staticInterfaceName()
    00058     {
    00059         return "org.freedesktop.Telepathy.AccountManager";
    00060     }
    00061
    00069     AccountManagerInterface(
    00070         const QString& busName,
    00071         const QString& objectPath,
    00072         QObject* parent = 0
    00073     );
    00074
    00083     AccountManagerInterface(
    00084         const QDBusConnection& connection,
    00085         const QString& busName,
    00086         const QString& objectPath,
    00087         QObject* parent = 0
    00088     );
    00089
    00096     AccountManagerInterface(Tp::DBusProxy *proxy);
    00097
    00103     Q_PROPERTY(QStringList Interfaces READ Interfaces)
    00104
    00105
    00113     inline QStringList Interfaces() const TELEPATHY_GNUC_DEPRECATED
    00114     {
    00115         return qvariant_cast<QStringList>(internalPropGet("Interfaces"));
    00116     }
    00117
    00127     Q_PROPERTY(Tp::ObjectPathList ValidAccounts READ ValidAccounts)
    00128
    00129
    00137     inline Tp::ObjectPathList ValidAccounts() const TELEPATHY_GNUC_DEPRECATED
    00138     {
    00139         return qvariant_cast<Tp::ObjectPathList>(internalPropGet("ValidAccounts"));
    00140     }
    00141
    00148     Q_PROPERTY(Tp::ObjectPathList InvalidAccounts READ InvalidAccounts)
    00149
    00150
    00158     inline Tp::ObjectPathList InvalidAccounts() const TELEPATHY_GNUC_DEPRECATED
    00159     {
    00160         return qvariant_cast<Tp::ObjectPathList>(internalPropGet("InvalidAccounts"));
    00161     }
    00162
    00208     Q_PROPERTY(QStringList SupportedAccountProperties READ SupportedAccountProperties)
    00209
    00210
    00218     inline QStringList SupportedAccountProperties() const TELEPATHY_GNUC_DEPRECATED
    00219     {
    00220         return qvariant_cast<QStringList>(internalPropGet("SupportedAccountProperties"));
    00221     }
    00222
    00223 public Q_SLOTS:
    00278     inline QDBusPendingReply<QDBusObjectPath> CreateAccount(const QString& connectionManager, const QString& protocol, const QString& displayName, const QVariantMap& parameters, const QVariantMap& properties)
    00279     {
    00280         if (!invalidationReason().isEmpty()) {
    00281             return QDBusPendingReply<QDBusObjectPath>(QDBusMessage::createError(
    00282                 invalidationReason(),
    00283                 invalidationMessage()
    00284             ));
    00285         }
    00286
    00287
    00288         QList<QVariant> argumentList;
    00289         argumentList << QVariant::fromValue(connectionManager) << QVariant::fromValue(protocol) << QVariant::fromValue(displayName) << QVariant::fromValue(parameters) << QVariant::fromValue(properties);
    00290         return asyncCallWithArgumentList(QLatin1String("CreateAccount"), argumentList);
    00291     }
    00292
    00293 Q_SIGNALS:
    00306     void AccountRemoved(const QDBusObjectPath& account);
    00307
    00324     void AccountValidityChanged(const QDBusObjectPath& account, bool valid);
    00325
    00326 protected:
    00327     virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
    00328 };
    00329 }
    00330 }