Baloo Widgets

metadatafilter.h
1 /*
2  <one line to give the library's name and an idea of what it does.>
3  Copyright (C) 2012 Vishesh Handa <[email protected]>
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_METADATAFILTER_H
22 #define _BALOO_METADATAFILTER_H
23 
24 #include <QVariant>
25 
26 namespace Baloo {
27 
28  class Variant;
29 
30  class MetadataFilter : public QObject
31  {
32  public:
33  explicit MetadataFilter(QObject* parent = nullptr);
34  ~MetadataFilter() override;
35 
36  /**
37  * Takes all the data by the provider and filters the data
38  * according to 'baloofileinformationrc' config
39  * This acts as a filter and a data aggregator
40  */
41  QVariantMap filter(const QVariantMap& data);
42  private:
43  /**
44  * Initializes the configuration file "kmetainformationrc"
45  * with proper default settings for the first start in
46  * an uninitialized environment.
47  */
48  void initMetaInformationSettings();
49  };
50 }
51 
52 #endif // _BALOO_METADATAFILTER_H
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Oct 21 2021 23:07:11 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.