source: trunk/tools/assistant/lib/fulltextsearch/qreader_p.h

Last change on this file was 846, checked in by Dmitry A. Kuminov, 14 years ago

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

File size: 2.6 KB
Line 
1/****************************************************************************
2**
3** Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team.
4** All rights reserved.
5**
6** Portion Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
7** All rights reserved.
8**
9** This file may be used under the terms of the GNU Lesser General Public
10** License version 2.1 as published by the Free Software Foundation and
11** appearing in the file LICENSE.LGPL included in the packaging of this file.
12** Please review the following information to ensure the GNU Lesser General
13** Public License version 2.1 requirements will be met:
14** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
15**
16****************************************************************************/
17
18#ifndef QREADER_P_H
19#define QREADER_P_H
20
21//
22// W A R N I N G
23// -------------
24//
25// This file is not part of the Qt API. It exists for the convenience
26// of the help generator tools. This header file may change from version
27// to version without notice, or even be removed.
28//
29// We mean it.
30//
31
32#include "qclucene_global_p.h"
33
34#include <QtCore/QString>
35#include <QtCore/QSharedDataPointer>
36#include <QtCore/QSharedData>
37
38CL_NS_DEF(util)
39 class Reader;
40CL_NS_END
41CL_NS_USE(util)
42
43QT_BEGIN_NAMESPACE
44
45class QCLuceneField;
46class QCLuceneAnalyzer;
47class QCLuceneDocument;
48class QCLuceneQueryParser;
49class QCLuceneStandardTokenizer;
50
51class QHELP_EXPORT QCLuceneReaderPrivate : public QSharedData
52{
53public:
54 QCLuceneReaderPrivate();
55 QCLuceneReaderPrivate(const QCLuceneReaderPrivate &other);
56
57 ~QCLuceneReaderPrivate();
58
59 Reader* reader;
60 bool deleteCLuceneReader;
61
62private:
63 QCLuceneReaderPrivate &operator=(const QCLuceneReaderPrivate &other);
64};
65
66class QHELP_EXPORT QCLuceneReader
67{
68public:
69 QCLuceneReader();
70 virtual ~QCLuceneReader();
71
72protected:
73 friend class QCLuceneField;
74 friend class QCLuceneAnalyzer;
75 friend class QCLuceneDocument;
76 friend class QCLuceneQueryParser;
77 friend class QCLuceneStandardTokenizer;
78 QSharedDataPointer<QCLuceneReaderPrivate> d;
79};
80
81class QCLuceneStringReader : public QCLuceneReader
82{
83public:
84 QCLuceneStringReader(const QString &value);
85 QCLuceneStringReader(const QString &value, qint32 length);
86 QCLuceneStringReader(const QString &value, qint32 length, bool copyData);
87
88 ~QCLuceneStringReader();
89
90private:
91 TCHAR *string;
92};
93
94class QHELP_EXPORT QCLuceneFileReader : public QCLuceneReader
95{
96public:
97 QCLuceneFileReader(const QString &path, const QString &encoding,
98 qint32 cacheLength = 13, qint32 cacheBuffer = 14);
99 ~QCLuceneFileReader();
100};
101
102QT_END_NAMESPACE
103
104#endif // QREADER_P_H
Note: See TracBrowser for help on using the repository browser.