#ifndef GEN_QTEXTSTREAM_H #define GEN_QTEXTSTREAM_H #include #include #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include "../libmiqt/libmiqt.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus class QByteArray; class QChar; class QIODevice; class QLocale; class QTextCodec; class QTextStream; #else typedef struct QByteArray QByteArray; typedef struct QChar QChar; typedef struct QIODevice QIODevice; typedef struct QLocale QLocale; typedef struct QTextCodec QTextCodec; typedef struct QTextStream QTextStream; #endif QTextStream* QTextStream_new(); QTextStream* QTextStream_new2(QIODevice* device); QTextStream* QTextStream_new3(struct miqt_string array); QTextStream* QTextStream_new4(struct miqt_string array, int openMode); void QTextStream_SetCodec(QTextStream* self, QTextCodec* codec); void QTextStream_SetCodecWithCodecName(QTextStream* self, const char* codecName); QTextCodec* QTextStream_Codec(const QTextStream* self); void QTextStream_SetAutoDetectUnicode(QTextStream* self, bool enabled); bool QTextStream_AutoDetectUnicode(const QTextStream* self); void QTextStream_SetGenerateByteOrderMark(QTextStream* self, bool generate); bool QTextStream_GenerateByteOrderMark(const QTextStream* self); void QTextStream_SetLocale(QTextStream* self, QLocale* locale); QLocale* QTextStream_Locale(const QTextStream* self); void QTextStream_SetDevice(QTextStream* self, QIODevice* device); QIODevice* QTextStream_Device(const QTextStream* self); struct miqt_string QTextStream_String(const QTextStream* self); int QTextStream_Status(const QTextStream* self); void QTextStream_SetStatus(QTextStream* self, int status); void QTextStream_ResetStatus(QTextStream* self); bool QTextStream_AtEnd(const QTextStream* self); void QTextStream_Reset(QTextStream* self); void QTextStream_Flush(QTextStream* self); bool QTextStream_Seek(QTextStream* self, long long pos); long long QTextStream_Pos(const QTextStream* self); void QTextStream_SkipWhiteSpace(QTextStream* self); struct miqt_string QTextStream_ReadLine(QTextStream* self); struct miqt_string QTextStream_ReadAll(QTextStream* self); struct miqt_string QTextStream_Read(QTextStream* self, long long maxlen); void QTextStream_SetFieldAlignment(QTextStream* self, int alignment); int QTextStream_FieldAlignment(const QTextStream* self); void QTextStream_SetPadChar(QTextStream* self, QChar* ch); QChar* QTextStream_PadChar(const QTextStream* self); void QTextStream_SetFieldWidth(QTextStream* self, int width); int QTextStream_FieldWidth(const QTextStream* self); void QTextStream_SetNumberFlags(QTextStream* self, int flags); int QTextStream_NumberFlags(const QTextStream* self); void QTextStream_SetIntegerBase(QTextStream* self, int base); int QTextStream_IntegerBase(const QTextStream* self); void QTextStream_SetRealNumberNotation(QTextStream* self, int notation); int QTextStream_RealNumberNotation(const QTextStream* self); void QTextStream_SetRealNumberPrecision(QTextStream* self, int precision); int QTextStream_RealNumberPrecision(const QTextStream* self); QTextStream* QTextStream_OperatorShiftRight(QTextStream* self, QChar* ch); QTextStream* QTextStream_OperatorShiftRightWithCh(QTextStream* self, char* ch); QTextStream* QTextStream_OperatorShiftRightWithShort(QTextStream* self, int16_t* i); QTextStream* QTextStream_OperatorShiftRightWithUnsignedshort(QTextStream* self, uint16_t* i); QTextStream* QTextStream_OperatorShiftRightWithInt(QTextStream* self, int* i); QTextStream* QTextStream_OperatorShiftRightWithUnsignedint(QTextStream* self, unsigned int* i); QTextStream* QTextStream_OperatorShiftRightWithLong(QTextStream* self, long* i); QTextStream* QTextStream_OperatorShiftRightWithUnsignedlong(QTextStream* self, unsigned long* i); QTextStream* QTextStream_OperatorShiftRightWithQlonglong(QTextStream* self, long long* i); QTextStream* QTextStream_OperatorShiftRightWithQulonglong(QTextStream* self, unsigned long long* i); QTextStream* QTextStream_OperatorShiftRightWithFloat(QTextStream* self, float* f); QTextStream* QTextStream_OperatorShiftRightWithDouble(QTextStream* self, double* f); QTextStream* QTextStream_OperatorShiftRightWithQString(QTextStream* self, struct miqt_string s); QTextStream* QTextStream_OperatorShiftRightWithArray(QTextStream* self, struct miqt_string array); QTextStream* QTextStream_OperatorShiftRightWithChar(QTextStream* self, char* c); QTextStream* QTextStream_OperatorShiftLeft(QTextStream* self, QChar* ch); QTextStream* QTextStream_OperatorShiftLeftWithCh(QTextStream* self, char ch); QTextStream* QTextStream_OperatorShiftLeftWithShort(QTextStream* self, int16_t i); QTextStream* QTextStream_OperatorShiftLeftWithUnsignedshort(QTextStream* self, uint16_t i); QTextStream* QTextStream_OperatorShiftLeftWithInt(QTextStream* self, int i); QTextStream* QTextStream_OperatorShiftLeftWithUnsignedint(QTextStream* self, unsigned int i); QTextStream* QTextStream_OperatorShiftLeftWithLong(QTextStream* self, long i); QTextStream* QTextStream_OperatorShiftLeftWithUnsignedlong(QTextStream* self, unsigned long i); QTextStream* QTextStream_OperatorShiftLeftWithQlonglong(QTextStream* self, long long i); QTextStream* QTextStream_OperatorShiftLeftWithQulonglong(QTextStream* self, unsigned long long i); QTextStream* QTextStream_OperatorShiftLeftWithFloat(QTextStream* self, float f); QTextStream* QTextStream_OperatorShiftLeftWithDouble(QTextStream* self, double f); QTextStream* QTextStream_OperatorShiftLeftWithQString(QTextStream* self, struct miqt_string s); QTextStream* QTextStream_OperatorShiftLeftWithArray(QTextStream* self, struct miqt_string array); QTextStream* QTextStream_OperatorShiftLeftWithChar(QTextStream* self, const char* c); QTextStream* QTextStream_OperatorShiftLeftWithPtr(QTextStream* self, const void* ptr); struct miqt_string QTextStream_ReadLine1(QTextStream* self, long long maxlen); void QTextStream_Delete(QTextStream* self); #ifdef __cplusplus } /* extern C */ #endif #endif