/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c anything -p generated/com_deepin_anything /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-5.0.1/xml/com.deepin.anything.xml
 *
 * qdbusxml2cpp-fix is Copyright (C) 2016 Deepin Technology Co., Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef COM_DEEPIN_ANYTHING_H
#define COM_DEEPIN_ANYTHING_H

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

#include <DBusExtendedAbstractInterface>
#include <QtDBus/QtDBus>


/*
 * Proxy class for interface com.deepin.anything
 */
class __anythingPrivate;
class __anything : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "com.deepin.anything"; }

public:
    explicit __anything(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);

    ~__anything();

    Q_PROPERTY(bool autoIndexExternal READ autoIndexExternal WRITE setAutoIndexExternal NOTIFY AutoIndexExternalChanged)
    bool autoIndexExternal();
    void setAutoIndexExternal(bool value);

    Q_PROPERTY(bool autoIndexInternal READ autoIndexInternal WRITE setAutoIndexInternal NOTIFY AutoIndexInternalChanged)
    bool autoIndexInternal();
    void setAutoIndexInternal(bool value);

    Q_PROPERTY(int logLevel READ logLevel WRITE setLogLevel NOTIFY LogLevelChanged)
    int logLevel();
    void setLogLevel(int value);

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



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



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



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



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



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



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



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



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

    inline void quitQueued()
    {
        QList<QVariant> argumentList;

        CallQueued(QStringLiteral("quit"), argumentList);
    }


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



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



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



    inline QDBusPendingReply<QStringList> renameFileOfLFTBuf(const QByteArray &fromFilePath, const QByteArray &toFilePath)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(fromFilePath) << QVariant::fromValue(toFilePath);
        return asyncCallWithArgumentList(QStringLiteral("renameFileOfLFTBuf"), argumentList);
    }



    inline QDBusPendingReply<QStringList, uint, uint> search(int maxCount, qlonglong maxTime, uint startOffset, uint endOffset, const QString &path, const QString &keyword, bool useRegExp)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(maxCount) << QVariant::fromValue(maxTime) << QVariant::fromValue(startOffset) << QVariant::fromValue(endOffset) << QVariant::fromValue(path) << QVariant::fromValue(keyword) << QVariant::fromValue(useRegExp);
        return asyncCallWithArgumentList(QStringLiteral("search"), argumentList);
    }


    inline QDBusReply<QStringList> search(int maxCount, qlonglong maxTime, uint startOffset, uint endOffset, const QString &path, const QString &keyword, bool useRegExp, uint &startOffset_, uint &endOffset_)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(maxCount) << QVariant::fromValue(maxTime) << QVariant::fromValue(startOffset) << QVariant::fromValue(endOffset) << QVariant::fromValue(path) << QVariant::fromValue(keyword) << QVariant::fromValue(useRegExp);
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QStringLiteral("search"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 3) {
            startOffset_ = qdbus_cast<uint>(reply.arguments().at(1));
            endOffset_ = qdbus_cast<uint>(reply.arguments().at(2));
        }
        return reply;
    }

    inline QDBusPendingReply<QStringList> search(const QString &path, const QString &keyword, bool useRegExp)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(path) << QVariant::fromValue(keyword) << QVariant::fromValue(useRegExp);
        return asyncCallWithArgumentList(QStringLiteral("search"), argumentList);
    }



    inline QDBusPendingReply<QByteArray> setCodecNameForLocale(const QByteArray &name)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(name);
        return asyncCallWithArgumentList(QStringLiteral("setCodecNameForLocale"), argumentList);
    }



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




Q_SIGNALS: // SIGNALS
    void addPathFinished(const QString &path, bool success);
    // begin property changed signals
    void AutoIndexExternalChanged(bool  value) const;
    void AutoIndexInternalChanged(bool  value) const;
    void LogLevelChanged(int  value) const;

public Q_SLOTS:
    void CallQueued(const QString &callName, const QList<QVariant> &args);

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);
    void onPropertyChanged(const QString &propName, const QVariant &value);

private:
    __anythingPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    typedef ::__anything anything;
  }
}
#endif
