add more spacing
[personal-kdebase.git] / workspace / kcontrol / kfontinst / strigi-analyzer / FontThroughAnalyzer.h
blob0e0a7a8eac99c85ed21d9ab3305a2a75b18e9ec9
1 /*
2 * KFontInst - KDE Font Installer
4 * Copyright 2007 Craig Drummond <craig@kde.org>
6 * ----
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; see the file COPYING. If not, write to
20 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301, USA.
24 #ifndef FONTTHROUGHANALYZER_H
25 #define FONTTHROUGHANALYZER_H
27 #include <strigi/streamthroughanalyzer.h>
29 class FontThroughAnalyzerFactory;
30 class QString;
32 class FontThroughAnalyzer : public Strigi::StreamThroughAnalyzer
34 public:
36 FontThroughAnalyzer(const FontThroughAnalyzerFactory *f);
38 char analyze(Strigi::AnalysisResult &idx, Strigi::InputStream *in);
39 void setIndexable(Strigi::AnalysisResult *i) { analysisResult = i; }
40 Strigi::InputStream * connectInputStream(Strigi::InputStream *in);
41 bool isReadyWithStream() { return true; }
43 private:
45 void result(const QString &family, const QString &foundry, const QString &weight,
46 const QString &width, const QString &spacing, const QString &slant,
47 const QString &version, const QString &mime);
48 const char * name() const { return "FontThroughAnalyzer"; }
50 private:
52 const FontThroughAnalyzerFactory *factory;
53 Strigi::AnalysisResult *analysisResult;
56 #endif // FONTTHROUGHANALYZER_H