TDE 0.1.0
 
Loading...
Searching...
No Matches
fetcher.hpp
Go to the documentation of this file.
1
12#pragma once
13
14#include <qfile.h>
15#include <qfilesystemwatcher.h>
16#include <qobject.h>
17
18#include "tde/app/info.hpp"
19#include "tde/common.hpp"
20
21namespace tde::app {
22
27class TDE_PUBLIC Fetcher : public QObject
28{
29 Q_OBJECT
30
31private:
32 QFileSystemWatcher* _watcher;
33 QString _target_path;
34
35public:
42 Fetcher(QString target_path, QObject* parent = nullptr);
43 ~Fetcher() override = default;
44
49 void refresh();
50
51private:
59 void _remount_watcher(const QFile& file, const QString& path);
60
61signals:
67 void apps_changed(const QList<Info>& apps);
68
74 void dock_apps_changed(const QList<Info>& apps);
75
76private slots:
82 void _on_file_changed(const QString& path);
83};
84
85}
Application fetcher from local config file.
Definition fetcher.hpp:28
void apps_changed(const QList< Info > &apps)
Emitted when the application list changed.
void dock_apps_changed(const QList< Info > &apps)
Emitted when the dock app list changed.
Some utility macros.
Application information.