blob: f0f34eea02b763dd56c88a85b1f9c6363e138a4a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
#ifndef __help_h__
#define __help_h__
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <unistd.h>
#include <qintdict.h>
#include <qstring.h>
#include <qvaluelist.h>
#include <kio/global.h>
#include <kio/slavebase.h>
class HelpProtocol : public KIO::SlaveBase
{
public:
HelpProtocol( bool ghelp, const QCString &pool, const QCString &app);
virtual ~HelpProtocol() { }
virtual void get( const KURL& url );
virtual void mimetype( const KURL& url );
private:
QString langLookup(const QString& fname);
void emitFile( const KURL &url );
void get_file( const KURL& url );
QString lookupFile(const QString &fname, const QString &query,
bool &redirect);
void unicodeError( const QString &t );
QString mParsed;
bool mGhelp;
};
#endif
|