fix tricky regression noticed by Vyacheslav Tokarev on Google Reader.
[kdelibs.git] / kio / kio / kfilemetainfo_p.h
blob160fc399946cae790f225908e8cb78daf6e0fc58
1 /* This file is part of the KDE libraries
3 Copyright (c) 2007 Jos van den Oever <jos@vandenoever.info>
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License (LGPL) as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
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 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
20 #ifndef KFILEMETAINFO_P_H
21 #define KFILEMETAINFO_P_H
23 #include "kfilewriteplugin.h"
24 #include "predicateproperties.h"
25 #include "kfilemetainfoitem.h"
26 #include "kfilemetainfo.h"
27 #include <QHash>
29 namespace Strigi {
30 class StreamAnalyzer;
33 class KFileWriterProvider {
34 private:
35 QHash<QString, QHash<QString, KFileWritePlugin*> > loadedWriters;
36 public:
37 KFileWritePlugin* loadPlugin(const QString& key);
38 QHash<QString, KFileWritePlugin*> plugins;
39 ~KFileWriterProvider();
40 static KFileWriterProvider* self();
43 class PredicatePropertyProvider {
44 private:
45 class Private;
46 Private* p;
47 public:
48 PredicatePropertyProvider();
49 ~PredicatePropertyProvider();
50 static PredicatePropertyProvider* self();
51 Strigi::StreamAnalyzer& indexer();
52 static PredicateProperties getPredicateProperties(const QString& key);
55 class KFileMetaInfoItemPrivate : public QSharedData {
56 public:
57 KFileMetaInfoItemPrivate() : writer(0) {}
58 static const QVariant null;
59 PredicateProperties pp;
60 QVariant value;
61 KFileWritePlugin* writer;
62 bool embedded;
63 bool modified;
66 #endif