Baloo Widgets

metadatafilter.h
1 /*
2  SPDX-FileCopyrightText: 2012 Vishesh Handa <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-or-later
5 */
6 
7 #ifndef _BALOO_METADATAFILTER_H
8 #define _BALOO_METADATAFILTER_H
9 
10 #include <QVariant>
11 
12 namespace Baloo
13 {
14 class Variant;
15 
16 class MetadataFilter : public QObject
17 {
18 public:
19  explicit MetadataFilter(QObject *parent = nullptr);
20  ~MetadataFilter() override;
21 
22  /**
23  * Takes all the data by the provider and filters the data
24  * according to 'baloofileinformationrc' config
25  * This acts as a filter and a data aggregator
26  */
27  QVariantMap filter(const QVariantMap &data);
28 
29 private:
30  /**
31  * Initializes the configuration file "kmetainformationrc"
32  * with proper default settings for the first start in
33  * an uninitialized environment.
34  */
35  void initMetaInformationSettings();
36 };
37 }
38 
39 #endif // _BALOO_METADATAFILTER_H
QFuture< void > filter(Sequence &sequence, KeepFunctor filterFunction)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 04:12:56 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.