summaryrefslogtreecommitdiffstats
path: root/kdoctools/kio_help.h
blob: 957a0e2e51d4d83ab40deeb05c1f8f119d131057 (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 <kio/global.h>
#include <kio/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