Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSTextCodec_p.h 00003 ------------------- 00004 begin : 05/11/2011 00005 copyright : (C) 2003-2011 by InfoSiAL S.L. 00006 email : mail@infosial.com 00007 ***************************************************************************/ 00008 /*************************************************************************** 00009 * This program is free software; you can redistribute it and/or modify * 00010 * it under the terms of the GNU General Public License as published by * 00011 * the Free Software Foundation; version 2 of the License. * 00012 ***************************************************************************/ 00013 /*************************************************************************** 00014 Este programa es software libre. Puede redistribuirlo y/o modificarlo 00015 bajo los términos de la Licencia Pública General de GNU en su 00016 versión 2, publicada por la Free Software Foundation. 00017 ***************************************************************************/ 00018 00019 #ifndef AQSTEXTCODEC_P_H_ 00020 #define AQSTEXTCODEC_P_H_ 00021 00022 #include "AQSByteArray_p.h" 00023 #include <qtextcodec.h> 00024 00025 class AQSTextCodec : public AQSVoidPtr 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_VOID(TextCodec, VoidPtr); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 virtual const char *name() const; 00034 virtual const char *mimeName() const; 00035 virtual int mibEnum() const; 00036 virtual QTextDecoder *makeDecoder() const; 00037 virtual QTextEncoder *makeEncoder() const; 00038 virtual QString toUnicode(const char *, int) const; 00039 virtual QCString fromUnicode(const QString &, int &) const; 00040 QCString fromUnicode(const QString &) const; 00041 QString toUnicode(QByteArray *, int) const; 00042 QString toUnicode(AQSByteArray *, int) const; 00043 QString toUnicode(QByteArray *) const; 00044 QString toUnicode(AQSByteArray *) const; 00045 QString toUnicode(const QCString &, int) const; 00046 QString toUnicode(const QCString &) const; 00047 QString toUnicode(const char *) const; 00048 virtual bool canEncode(QChar) const; 00049 virtual bool canEncode(const QString &) const; 00050 virtual int heuristicContentMatch(const char *, int) const; 00051 virtual int heuristicNameMatch(const char *) const; 00052 00053 protected: 00054 static void *construct(const QSArgumentList &args) { 00055 return 0; 00056 } 00057 //@AQ_END_DEF_PUB_SLOTS@ 00058 }; 00059 00060 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00061 inline const char *AQSTextCodec::name() const 00062 { 00063 AQ_CALL_RET(name()); 00064 } 00065 inline const char *AQSTextCodec::mimeName() const 00066 { 00067 AQ_CALL_RET(mimeName()); 00068 } 00069 inline int AQSTextCodec::mibEnum() const 00070 { 00071 AQ_CALL_RET_V(mibEnum(), int); 00072 } 00073 inline QTextDecoder *AQSTextCodec::makeDecoder() const 00074 { 00075 AQ_CALL_RET(makeDecoder()); 00076 } 00077 inline QTextEncoder *AQSTextCodec::makeEncoder() const 00078 { 00079 AQ_CALL_RET(makeEncoder()); 00080 } 00081 inline QString AQSTextCodec::toUnicode(const char *arg0, int arg1) const 00082 { 00083 AQ_CALL_RET_V(toUnicode(arg0, arg1), QString); 00084 } 00085 inline QCString AQSTextCodec::fromUnicode(const QString &arg0, int &arg1) const 00086 { 00087 AQ_CALL_RET_V(fromUnicode(arg0, arg1), QCString); 00088 } 00089 inline QCString AQSTextCodec::fromUnicode(const QString &arg0) const 00090 { 00091 AQ_CALL_RET_V(fromUnicode(arg0), QCString); 00092 } 00093 inline QString AQSTextCodec::toUnicode(QByteArray *arg0, int arg1) const 00094 { 00095 AQ_CALL_RET_V(toUnicode(*arg0, arg1), QString); 00096 } 00097 inline QString AQSTextCodec::toUnicode(AQSByteArray *arg0, int arg1) const 00098 { 00099 AQ_CALL_RET_V(toUnicode(*arg0, arg1), QString); 00100 } 00101 inline QString AQSTextCodec::toUnicode(QByteArray *arg0) const 00102 { 00103 AQ_CALL_RET_V(toUnicode(*arg0), QString); 00104 } 00105 inline QString AQSTextCodec::toUnicode(AQSByteArray *arg0) const 00106 { 00107 AQ_CALL_RET_V(toUnicode(*arg0), QString); 00108 } 00109 inline QString AQSTextCodec::toUnicode(const QCString &arg0, int arg1) const 00110 { 00111 AQ_CALL_RET_V(toUnicode(arg0, arg1), QString); 00112 } 00113 inline QString AQSTextCodec::toUnicode(const QCString &arg0) const 00114 { 00115 AQ_CALL_RET_V(toUnicode(arg0), QString); 00116 } 00117 inline QString AQSTextCodec::toUnicode(const char *arg0) const 00118 { 00119 AQ_CALL_RET_V(toUnicode(arg0), QString); 00120 } 00121 inline bool AQSTextCodec::canEncode(QChar arg0) const 00122 { 00123 AQ_CALL_RET_V(canEncode(arg0), bool); 00124 } 00125 inline bool AQSTextCodec::canEncode(const QString &arg0) const 00126 { 00127 AQ_CALL_RET_V(canEncode(arg0), bool); 00128 } 00129 inline int AQSTextCodec::heuristicContentMatch(const char *arg0, int arg1) const 00130 { 00131 AQ_CALL_RET_V(heuristicContentMatch(arg0, arg1), int); 00132 } 00133 inline int AQSTextCodec::heuristicNameMatch(const char *arg0) const 00134 { 00135 AQ_CALL_RET_V(heuristicNameMatch(arg0), int); 00136 } 00137 //@AQ_END_IMP_PUB_SLOTS@ 00138 00139 #endif /* AQSTEXTCODEC_P_H_ */ 00140 // @AQSVOIDPTR@