/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Source file was org.freedesktop.PackageKit.Transaction.xml
 *
 * qdbusxml2cpp is Copyright (C) The Qt Company Ltd. and other contributors.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef TRANSACTIONPROXY_H
#define TRANSACTIONPROXY_H

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>

/*
 * Proxy class for interface org.freedesktop.PackageKit.Transaction
 */
class OrgFreedesktopPackageKitTransactionInterface: public QDBusAbstractInterface
{
    Q_OBJECT
public:
    static inline const char *staticInterfaceName()
    { return "org.freedesktop.PackageKit.Transaction"; }

public:
    OrgFreedesktopPackageKitTransactionInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = nullptr);

    ~OrgFreedesktopPackageKitTransactionInterface();

    Q_PROPERTY(bool AllowCancel READ allowCancel)
    inline bool allowCancel() const
    { return qvariant_cast< bool >(property("AllowCancel")); }

    Q_PROPERTY(bool CallerActive READ callerActive)
    inline bool callerActive() const
    { return qvariant_cast< bool >(property("CallerActive")); }

    Q_PROPERTY(qulonglong DownloadSizeRemaining READ downloadSizeRemaining)
    inline qulonglong downloadSizeRemaining() const
    { return qvariant_cast< qulonglong >(property("DownloadSizeRemaining")); }

    Q_PROPERTY(uint ElapsedTime READ elapsedTime)
    inline uint elapsedTime() const
    { return qvariant_cast< uint >(property("ElapsedTime")); }

    Q_PROPERTY(QString LastPackage READ lastPackage)
    inline QString lastPackage() const
    { return qvariant_cast< QString >(property("LastPackage")); }

    Q_PROPERTY(uint Percentage READ percentage)
    inline uint percentage() const
    { return qvariant_cast< uint >(property("Percentage")); }

    Q_PROPERTY(uint RemainingTime READ remainingTime)
    inline uint remainingTime() const
    { return qvariant_cast< uint >(property("RemainingTime")); }

    Q_PROPERTY(uint Role READ role)
    inline uint role() const
    { return qvariant_cast< uint >(property("Role")); }

    Q_PROPERTY(QString Sender READ sender)
    inline QString sender() const
    { return qvariant_cast< QString >(property("Sender")); }

    Q_PROPERTY(uint Speed READ speed)
    inline uint speed() const
    { return qvariant_cast< uint >(property("Speed")); }

    Q_PROPERTY(uint Status READ status)
    inline uint status() const
    { return qvariant_cast< uint >(property("Status")); }

    Q_PROPERTY(qulonglong TransactionFlags READ transactionFlags)
    inline qulonglong transactionFlags() const
    { return qvariant_cast< qulonglong >(property("TransactionFlags")); }

    Q_PROPERTY(uint Uid READ uid)
    inline uint uid() const
    { return qvariant_cast< uint >(property("Uid")); }

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> AcceptEula(const QString &eula_id)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(eula_id);
        return asyncCallWithArgumentList(QStringLiteral("AcceptEula"), argumentList);
    }

    inline QDBusPendingReply<> Cancel()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("Cancel"), argumentList);
    }

    inline QDBusPendingReply<> DependsOn(qulonglong filter, const QStringList &package_ids, bool recursive)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(package_ids) << QVariant::fromValue(recursive);
        return asyncCallWithArgumentList(QStringLiteral("DependsOn"), argumentList);
    }

    inline QDBusPendingReply<> DownloadPackages(bool store_in_cache, const QStringList &package_ids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(store_in_cache) << QVariant::fromValue(package_ids);
        return asyncCallWithArgumentList(QStringLiteral("DownloadPackages"), argumentList);
    }

    inline QDBusPendingReply<> GetCategories()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("GetCategories"), argumentList);
    }

    inline QDBusPendingReply<> GetDetails(const QStringList &package_ids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(package_ids);
        return asyncCallWithArgumentList(QStringLiteral("GetDetails"), argumentList);
    }

    inline QDBusPendingReply<> GetDetailsLocal(const QStringList &files)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(files);
        return asyncCallWithArgumentList(QStringLiteral("GetDetailsLocal"), argumentList);
    }

    inline QDBusPendingReply<> GetDistroUpgrades()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("GetDistroUpgrades"), argumentList);
    }

    inline QDBusPendingReply<> GetFiles(const QStringList &package_ids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(package_ids);
        return asyncCallWithArgumentList(QStringLiteral("GetFiles"), argumentList);
    }

    inline QDBusPendingReply<> GetFilesLocal(const QStringList &files)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(files);
        return asyncCallWithArgumentList(QStringLiteral("GetFilesLocal"), argumentList);
    }

    inline QDBusPendingReply<> GetOldTransactions(uint number)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(number);
        return asyncCallWithArgumentList(QStringLiteral("GetOldTransactions"), argumentList);
    }

    inline QDBusPendingReply<> GetPackages(qulonglong filter)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter);
        return asyncCallWithArgumentList(QStringLiteral("GetPackages"), argumentList);
    }

    inline QDBusPendingReply<> GetRepoList(qulonglong filter)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter);
        return asyncCallWithArgumentList(QStringLiteral("GetRepoList"), argumentList);
    }

    inline QDBusPendingReply<> GetUpdateDetail(const QStringList &package_ids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(package_ids);
        return asyncCallWithArgumentList(QStringLiteral("GetUpdateDetail"), argumentList);
    }

    inline QDBusPendingReply<> GetUpdates(qulonglong filter)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter);
        return asyncCallWithArgumentList(QStringLiteral("GetUpdates"), argumentList);
    }

    inline QDBusPendingReply<> InstallFiles(qulonglong transaction_flags, const QStringList &full_paths)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags) << QVariant::fromValue(full_paths);
        return asyncCallWithArgumentList(QStringLiteral("InstallFiles"), argumentList);
    }

    inline QDBusPendingReply<> InstallPackages(qulonglong transaction_flags, const QStringList &package_ids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags) << QVariant::fromValue(package_ids);
        return asyncCallWithArgumentList(QStringLiteral("InstallPackages"), argumentList);
    }

    inline QDBusPendingReply<> InstallSignature(uint sig_type, const QString &key_id, const QString &package_id)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(sig_type) << QVariant::fromValue(key_id) << QVariant::fromValue(package_id);
        return asyncCallWithArgumentList(QStringLiteral("InstallSignature"), argumentList);
    }

    inline QDBusPendingReply<> RefreshCache(bool force)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(force);
        return asyncCallWithArgumentList(QStringLiteral("RefreshCache"), argumentList);
    }

    inline QDBusPendingReply<> RemovePackages(qulonglong transaction_flags, const QStringList &package_ids, bool allow_deps, bool autoremove)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags) << QVariant::fromValue(package_ids) << QVariant::fromValue(allow_deps) << QVariant::fromValue(autoremove);
        return asyncCallWithArgumentList(QStringLiteral("RemovePackages"), argumentList);
    }

    inline QDBusPendingReply<> RepairSystem(qulonglong transaction_flags)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags);
        return asyncCallWithArgumentList(QStringLiteral("RepairSystem"), argumentList);
    }

    inline QDBusPendingReply<> RepoEnable(const QString &repo_id, bool enabled)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(repo_id) << QVariant::fromValue(enabled);
        return asyncCallWithArgumentList(QStringLiteral("RepoEnable"), argumentList);
    }

    inline QDBusPendingReply<> RepoRemove(qulonglong transaction_flags, const QString &repo_id, bool autoremove)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags) << QVariant::fromValue(repo_id) << QVariant::fromValue(autoremove);
        return asyncCallWithArgumentList(QStringLiteral("RepoRemove"), argumentList);
    }

    inline QDBusPendingReply<> RepoSetData(const QString &repo_id, const QString &parameter, const QString &value)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(repo_id) << QVariant::fromValue(parameter) << QVariant::fromValue(value);
        return asyncCallWithArgumentList(QStringLiteral("RepoSetData"), argumentList);
    }

    inline QDBusPendingReply<> RequiredBy(qulonglong filter, const QStringList &package_ids, bool recursive)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(package_ids) << QVariant::fromValue(recursive);
        return asyncCallWithArgumentList(QStringLiteral("RequiredBy"), argumentList);
    }

    inline QDBusPendingReply<> Resolve(qulonglong filter, const QStringList &packages)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(packages);
        return asyncCallWithArgumentList(QStringLiteral("Resolve"), argumentList);
    }

    inline QDBusPendingReply<> SearchDetails(qulonglong filter, const QStringList &values)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(values);
        return asyncCallWithArgumentList(QStringLiteral("SearchDetails"), argumentList);
    }

    inline QDBusPendingReply<> SearchFiles(qulonglong filter, const QStringList &values)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(values);
        return asyncCallWithArgumentList(QStringLiteral("SearchFiles"), argumentList);
    }

    inline QDBusPendingReply<> SearchGroups(qulonglong filter, const QStringList &values)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(values);
        return asyncCallWithArgumentList(QStringLiteral("SearchGroups"), argumentList);
    }

    inline QDBusPendingReply<> SearchNames(qulonglong filter, const QStringList &values)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(values);
        return asyncCallWithArgumentList(QStringLiteral("SearchNames"), argumentList);
    }

    inline QDBusPendingReply<> SetHints(const QStringList &hints)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(hints);
        return asyncCallWithArgumentList(QStringLiteral("SetHints"), argumentList);
    }

    inline QDBusPendingReply<> UpdatePackages(qulonglong transaction_flags, const QStringList &package_ids)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags) << QVariant::fromValue(package_ids);
        return asyncCallWithArgumentList(QStringLiteral("UpdatePackages"), argumentList);
    }

    inline QDBusPendingReply<> UpgradeSystem(qulonglong transaction_flags, const QString &distro_id, uint upgrade_kind)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(transaction_flags) << QVariant::fromValue(distro_id) << QVariant::fromValue(upgrade_kind);
        return asyncCallWithArgumentList(QStringLiteral("UpgradeSystem"), argumentList);
    }

    inline QDBusPendingReply<> WhatProvides(qulonglong filter, const QStringList &values)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(filter) << QVariant::fromValue(values);
        return asyncCallWithArgumentList(QStringLiteral("WhatProvides"), argumentList);
    }

Q_SIGNALS: // SIGNALS
    void Category(const QString &parent_id, const QString &cat_id, const QString &name, const QString &summary, const QString &icon);
    void Destroy();
    void Details(const QVariantMap &data);
    void DistroUpgrade(uint type, const QString &name, const QString &summary);
    void ErrorCode(uint code, const QString &details);
    void EulaRequired(const QString &eula_id, const QString &package_id, const QString &vendor_name, const QString &license_agreement);
    void Files(const QString &package_id, const QStringList &file_list);
    void Finished(uint exit, uint runtime);
    void ItemProgress(const QString &id, uint status, uint percentage);
    void MediaChangeRequired(uint media_type, const QString &media_id, const QString &media_text);
    void Package(uint info, const QString &package_id, const QString &summary);
    void Packages(const QVariantList &packages);
    void RepoDetail(const QString &repo_id, const QString &description, bool enabled);
    void RepoSignatureRequired(const QString &package_id, const QString &repository_name, const QString &key_url, const QString &key_userid, const QString &key_id, const QString &key_fingerprint, const QString &key_timestamp, uint type);
    void RequireRestart(uint type, const QString &package_id);
    void Transaction(const QDBusObjectPath &object_path, const QString &timespec, bool succeeded, uint role, uint duration, const QString &data, uint uid, const QString &cmdline);
    void UpdateDetail(const QString &package_id, const QStringList &updates, const QStringList &obsoletes, const QStringList &vendor_urls, const QStringList &bugzilla_urls, const QStringList &cve_urls, uint restart, const QString &update_text, const QString &changelog, uint state, const QString &issued, const QString &updated);
    void UpdateDetails(const QVariantList &details);
};

#endif
