tdelibs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

tdeio_help.h 851B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef __help_h__
  2. #define __help_h__
  3. #include <sys/types.h>
  4. #include <sys/stat.h>
  5. #include <stdio.h>
  6. #include <unistd.h>
  7. #include <tqintdict.h>
  8. #include <tqstring.h>
  9. #include <tqvaluelist.h>
  10. #include <tdeio/global.h>
  11. #include <tdeio/slavebase.h>
  12. class HelpProtocol : public TDEIO::SlaveBase
  13. {
  14. public:
  15. HelpProtocol( bool ghelp, const TQCString &pool, const TQCString &app);
  16. virtual ~HelpProtocol() { }
  17. virtual void get( const KURL& url );
  18. virtual void mimetype( const KURL& url );
  19. private:
  20. TQString langLookup(const TQString& fname);
  21. void emitFile( const KURL &url );
  22. void get_file( const KURL& url );
  23. TQString lookupFile(const TQString &fname, const TQString &query,
  24. bool &redirect);
  25. void unicodeError( const TQString &t );
  26. TQString mParsed;
  27. bool mGhelp;
  28. };
  29. #endif