19 #ifndef KREMOTEENCODING_H
20 #define KREMOTEENCODING_H
24 #include <tqcstring.h>
25 #include <tqtextcodec.h>
27 class KRemoteEncodingPrivate;
65 TQString decode(
const TQCString& name)
const;
72 TQCString encode(
const TQString& name)
const;
77 TQCString encode(
const KURL& url)
const;
86 TQCString directory(
const KURL& url,
bool ignore_trailing_slash =
true)
const;
91 TQCString fileName(
const KURL& url)
const;
97 {
return codec->name(); }
103 {
return codec->mibEnum(); }
112 void setEncoding(
const char* name);
117 virtual void virtual_hook(
int id,
void* data);
124 KRemoteEncodingPrivate *d;
Allows encoding and decoding properly remote filenames into Unicode.
int encodingMib() const
Returns the MIB for the codec being used.
const char * encoding() const
Returns the encoding being used.