tdeio_help.h
00001 #ifndef __help_h__ 00002 #define __help_h__ 00003 00004 00005 #include <sys/types.h> 00006 #include <sys/stat.h> 00007 00008 00009 #include <stdio.h> 00010 #include <unistd.h> 00011 00012 00013 #include <tqintdict.h> 00014 #include <tqstring.h> 00015 #include <tqvaluelist.h> 00016 00017 00018 #include <tdeio/global.h> 00019 #include <tdeio/slavebase.h> 00020 00021 class HelpProtocol : public TDEIO::SlaveBase 00022 { 00023 public: 00024 00025 HelpProtocol( bool ghelp, const TQCString &pool, const TQCString &app); 00026 virtual ~HelpProtocol() { } 00027 00028 virtual void get( const KURL& url ); 00029 00030 virtual void mimetype( const KURL& url ); 00031 00032 private: 00033 00034 TQString langLookup(const TQString& fname); 00035 void emitFile( const KURL &url ); 00036 void get_file( const KURL& url ); 00037 TQString lookupFile(const TQString &fname, const TQString &query, 00038 bool &redirect); 00039 00040 void unicodeError( const TQString &t ); 00041 00042 TQString mParsed; 00043 bool mGhelp; 00044 }; 00045 00046 00047 #endif