home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / include / qtsciicodec.h < prev    next >
C/C++ Source or Header  |  2001-10-11  |  923b  |  36 lines

  1. /****************************************************************************
  2. ** $Id:  qt/qtsciicodec.h   3.0.0   edited Jun 22 14:55 $
  3. **
  4. ** Definition of QTSCIICodec class
  5. **
  6. *****************************************************************************/
  7.  
  8. // Contributed by Hans Petter Bieker <bieker@kde.org>
  9. // See the documentation for their license statement for the code as
  10. // it was at the time of contribution.
  11.  
  12. #ifndef QTSCIICODEC_H
  13. #define QTSCIICODEC_H
  14.  
  15. #ifndef QT_H
  16. #include "qtextcodec.h"
  17. #endif // QT_H
  18.  
  19. #ifndef QT_NO_CODECS
  20.  
  21. class Q_EXPORT QTsciiCodec : public QTextCodec {
  22. public:
  23.     virtual int mibEnum() const;
  24.     const char* name() const;
  25.  
  26.     QCString fromUnicode(const QString& uc, int& len_in_out) const;
  27.     QString toUnicode(const char* chars, int len) const;
  28.  
  29.     int heuristicContentMatch(const char* chars, int len) const;
  30.     int heuristicNameMatch(const char* hint) const;
  31. };
  32.  
  33. #endif
  34.  
  35. #endif
  36.