Baloo

filemonitor.h
1/*
2 SPDX-FileCopyrightText: 2013 Vishesh Handa <me@vhanda.in>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7#ifndef BALOO_FILEMONITOR_H
8#define BALOO_FILEMONITOR_H
9
10#include <QObject>
11#include <QUrl>
12
13#include "core_export.h"
14
15#include <memory>
16
17namespace Baloo {
18
19/**
20 * @class FileMonitor filemonitor.h <Baloo/FileMonitor>
21 */
22class BALOO_CORE_EXPORT FileMonitor : public QObject
23{
24 Q_OBJECT
25public:
26 explicit FileMonitor(QObject* parent = nullptr);
27 ~FileMonitor() override;
28
29 void addFile(const QString& fileUrl);
30 void addFile(const QUrl& url);
31
32 void setFiles(const QStringList& fileList);
33
34 QStringList files() const;
35
36 void clear();
37
38Q_SIGNALS:
39 void fileMetaDataChanged(const QString& fileUrl);
40
41private Q_SLOTS:
42 BALOO_CORE_NO_EXPORT void slotFileMetaDataChanged(const QStringList& fileUrl);
43
44private:
45 class Private;
46 std::unique_ptr<Private> const d;
47};
48
49}
50#endif // BALOO_FILEMONITOR_H
Implements storage for docIds without any associated data Instantiated for:
Definition coding.cpp:11
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.