2
* Copyright (C) 2009 Anne-Marie Mahfouf <annma@kde.org>
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation; either version 2 of the License, or
7
* (at your option) any later version.
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Library General Public License for more details.
14
* You should have received a copy of the GNU Library General Public License
15
* along with this library; if not, write to the
16
* Free Software Foundation, Inc.,
17
* 51 Franklin Street, Fifth Floor,
18
* Boston, MA 02110-1301, USA.
21
#ifndef METADATA_ENGINE_H_
22
#define METADATA_ENGINE_H_
24
#include <Plasma/DataEngine>
27
class MetaDataEngine: public Plasma::DataEngine
32
MetaDataEngine(QObject* parent, const QVariantList& args);
37
bool sourceRequestEvent(const QString& name);
40
bool updateSourceEvent(const QString& source);
44
* Converts the meta key \a key to a readable format into \a text.
45
* Returns true, if the string \a key represents a meta information
46
* that should be shown. If false is returned, \a text is not modified.
48
bool convertMetaInfo(const QString& key, QString& text) const;
52
#endif /* METADATA_ENGINE_H_ */