KDocTools
kio_help.h
Go to the documentation of this file.00001 #ifndef __help_h__
00002 #define __help_h__
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #include <sys/types.h>
00027 #include <sys/stat.h>
00028
00029
00030 #include <stdio.h>
00031 #include <unistd.h>
00032
00033
00034 #include <QtCore/QString>
00035
00036
00037 #include <kio/global.h>
00038 #include <kio/slavebase.h>
00039
00040 class HelpProtocol : public KIO::SlaveBase
00041 {
00042 public:
00043
00044 HelpProtocol( bool ghelp, const QByteArray &pool, const QByteArray &app);
00045 virtual ~HelpProtocol() { }
00046
00047 virtual void get( const KUrl& url );
00048
00049 virtual void mimetype( const KUrl& url );
00050
00051 private:
00052
00053 QString langLookup(const QString &fname);
00054 void emitFile( const KUrl &url );
00055 void get_file( const KUrl& url );
00056 QString lookupFile(const QString &fname, const QString &query,
00057 bool &redirect);
00058
00059 void unicodeError( const QString &t );
00060
00061 QString mParsed;
00062 bool mGhelp;
00063 };
00064
00065
00066 #endif