18#include <QFileSystemWatcher>
24class XdgWatcher:
public QObject
28 XdgWatcher(QObject* parent =
nullptr);
31 void appAdded(
const QString &appId);
32 void appRemoved(
const QString &appId);
33 void appInfoChanged(
const QString &appId);
36 void onDirectoryChanged(
const QString &path);
37 void onFileChanged(
const QString &path);
40 const QString toStandardAppId(
const QFileInfo fileInfo)
const;
41 const QString getAppId(
const QFileInfo file)
const;
42 const QString stripAppIdVersion(
const QString rawAppID)
const;
44 QFileSystemWatcher* m_watcher;
45 QHash<const QString, QString> m_registry;