Baloo

filemonitor.h
1 /*
2  SPDX-FileCopyrightText: 2013 Vishesh Handa <[email protected]>
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 namespace Baloo {
16 
17 /**
18  * @class FileMonitor filemonitor.h <Baloo/FileMonitor>
19  */
20 class BALOO_CORE_EXPORT FileMonitor : public QObject
21 {
22  Q_OBJECT
23 public:
24  explicit FileMonitor(QObject* parent = nullptr);
25  ~FileMonitor() override;
26 
27  void addFile(const QString& fileUrl);
28  void addFile(const QUrl& url);
29 
30  void setFiles(const QStringList& fileList);
31 
32  QStringList files() const;
33 
34  void clear();
35 
36 Q_SIGNALS:
37  void fileMetaDataChanged(const QString& fileUrl);
38 
39 private Q_SLOTS:
40  BALOO_CORE_NO_EXPORT void slotFileMetaDataChanged(const QStringList& fileUrl);
41 
42 private:
43  class Private;
44  Private* d;
45 };
46 
47 }
48 #endif // BALOO_FILEMONITOR_H
Implements storage for docIds without any associated data Instantiated for:
Definition: coding.cpp:11
QAction * clear(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Nov 29 2023 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.