1/*
2 * <one line to give the library's name and an idea of what it does.>
3 * Copyright (C) 2013 Vishesh Handa <me@vhanda.in>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 *
19 */
20
21#ifndef _BALOO_FILEMONITOR_H
22#define _BALOO_FILEMONITOR_H
23
24#include <QObject>
25#include <QUrl>
26
27#include "file_export.h"
28
29namespace Baloo {
30
31class BALOO_FILE_EXPORT FileMonitor : public QObject
32{
33 Q_OBJECT
34public:
35 explicit FileMonitor(QObject* parent = 0);
36 virtual ~FileMonitor();
37
38 void addFile(const QString& fileUrl);
39 void addFile(const QUrl& url);
40
41 void setFiles(const QStringList& fileList);
42
43 QStringList files() const;
44
45 void clear();
46
47Q_SIGNALS:
48 void fileMetaDataChanged(const QString& fileUrl);
49
50private Q_SLOTS:
51 void slotFileMetaDataChanged(const QStringList& fileUrl);
52
53private:
54 class Private;
55 Private* d;
56};
57
58}
59#endif // _BALOO_FILEMONITOR_H
60