2022-04-12 14:57:22 +08:00
|
|
|
/*
|
|
|
|
* This file was generated by qdbusxml2cpp version 0.8
|
2022-04-25 10:23:20 +08:00
|
|
|
* Command line was: qdbusxml2cpp com.ukui.search.fileindex.server.xml -a dir-watcher-adaptor
|
2022-04-12 14:57:22 +08:00
|
|
|
*
|
|
|
|
* qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
|
|
|
|
*
|
|
|
|
* This is an auto-generated file.
|
|
|
|
* Do not edit! All changes made to it will be lost.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "dir-watcher-adaptor.h"
|
|
|
|
#include <QtCore/QMetaObject>
|
|
|
|
#include <QtCore/QByteArray>
|
|
|
|
#include <QtCore/QList>
|
|
|
|
#include <QtCore/QMap>
|
|
|
|
#include <QtCore/QString>
|
|
|
|
#include <QtCore/QStringList>
|
|
|
|
#include <QtCore/QVariant>
|
|
|
|
|
|
|
|
/*
|
2022-04-25 10:23:20 +08:00
|
|
|
* Implementation of adaptor class FileindexAdaptor
|
2022-04-12 14:57:22 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
DirWatcherAdaptor::DirWatcherAdaptor(QObject *parent)
|
|
|
|
: QDBusAbstractAdaptor(parent)
|
|
|
|
{
|
|
|
|
// constructor
|
|
|
|
setAutoRelaySignals(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
DirWatcherAdaptor::~DirWatcherAdaptor()
|
|
|
|
{
|
|
|
|
// destructor
|
|
|
|
}
|
|
|
|
|
2022-12-07 14:04:21 +08:00
|
|
|
int DirWatcherAdaptor::appendIndexableListItem(const QString &path)
|
2022-04-12 14:57:22 +08:00
|
|
|
{
|
2022-04-25 10:23:20 +08:00
|
|
|
// handle method call org.ukui.search.fileindex.appendIndexableListItem
|
2022-12-07 14:04:21 +08:00
|
|
|
int out0;
|
|
|
|
QMetaObject::invokeMethod(parent(), "appendIndexableListItem", Q_RETURN_ARG(int, out0), Q_ARG(QString, path));
|
|
|
|
return out0;
|
2022-04-12 14:57:22 +08:00
|
|
|
}
|
|
|
|
|
2022-12-07 14:04:21 +08:00
|
|
|
bool DirWatcherAdaptor::removeIndexableListItem(const QString &path)
|
2022-04-12 14:57:22 +08:00
|
|
|
{
|
2022-04-25 10:23:20 +08:00
|
|
|
// handle method call org.ukui.search.fileindex.removeIndexableListItem
|
2022-12-07 14:04:21 +08:00
|
|
|
bool out0;
|
|
|
|
QMetaObject::invokeMethod(parent(), "removeIndexableListItem", Q_RETURN_ARG(bool, out0), Q_ARG(QString, path));
|
|
|
|
return out0;
|
2022-04-12 14:57:22 +08:00
|
|
|
}
|
|
|
|
|