summaryrefslogtreecommitdiffstats
path: root/kdoctools/kio_help.h
blob: df002df15ac61633c613dd7420a8a7fc92952fc0 (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 <tqintdict.h>
#include <tqstring.h>
#include <tqvaluelist.h>


#include <tdeio/global.h>
#include <tdeio/slavebase.h>

class HelpProtocol : public TDEIO::SlaveBase
{
public:

    HelpProtocol( bool ghelp, const TQCString &pool, const TQCString &app);
    virtual ~HelpProtocol() { }

    virtual void get( const KURL& url );

    virtual void mimetype( const KURL& url );

private:

    TQString langLookup(const TQString& fname);
    void emitFile( const KURL &url );
    void get_file( const KURL& url );
    TQString lookupFile(const TQString &fname, const TQString &query,
                       bool &redirect);

    void unicodeError( const TQString &t );

    TQString mParsed;
    bool mGhelp;
};


#endif