Lomiri
Loading...
Searching...
No Matches
iconcachewatcher.h
1
/*
2
* Copyright (C) 2025 UBports Foundation
3
* Author(s): Riccardo Riccio <riccardo.riccio@ubports.com>
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; version 3.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#include <QFileSystemWatcher>
19
20
class
IconCacheWatcher :
public
QObject
21
{
22
Q_OBJECT
23
public
:
24
explicit
IconCacheWatcher(QObject *parent =
nullptr
);
25
26
Q_SIGNALS:
27
void
iconCacheChanged();
28
29
private
Q_SLOTS:
30
void
onCacheFileChanged(
const
QString &path);
31
void
onIconDirectoryChanged(
const
QString &path);
32
33
private
:
34
QFileSystemWatcher *m_watcher;
35
};
plugins
Lomiri
Launcher
iconcachewatcher.h
Generated on
for Lomiri by
1.15.0