~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kcontrol/kfontinst/strigi-analyzer/FontThroughAnalyzer.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * KFontInst - KDE Font Installer
 
3
 *
 
4
 * Copyright 2007 Craig Drummond <craig@kde.org>
 
5
 *
 
6
 * ----
 
7
 *
 
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.
 
12
 *
 
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.
 
17
 *
 
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.
 
22
 */
 
23
 
 
24
#ifndef FONTTHROUGHANALYZER_H
 
25
#define FONTTHROUGHANALYZER_H
 
26
 
 
27
#include <strigi/streamthroughanalyzer.h>
 
28
 
 
29
class FontThroughAnalyzerFactory;
 
30
class QString;
 
31
 
 
32
class FontThroughAnalyzer : public Strigi::StreamThroughAnalyzer
 
33
{
 
34
    public:
 
35
 
 
36
    FontThroughAnalyzer(const FontThroughAnalyzerFactory *f);
 
37
 
 
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; }
 
42
 
 
43
    private:
 
44
 
 
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"; }
 
49
 
 
50
    private:
 
51
 
 
52
    const FontThroughAnalyzerFactory *factory;
 
53
    Strigi::AnalysisResult           *analysisResult;
 
54
};
 
55
 
 
56
#endif // FONTTHROUGHANALYZER_H