39 #if defined(_OS_WIN32_) 170 #if defined(CHECK_STATE) 171 qWarning(
"QFile::setName: File is open" );
211 #if defined(_OS_MAC_) || defined(_OS_MSDOS_) || defined(_OS_WIN32_) || defined(_OS_OS2_) || defined(_OS_CYGWIN_) 212 # define HAS_TEXT_FILEMODE // has translate/text filemode 214 #if defined(O_NONBLOCK) 215 # define HAS_ASYNC_FILEMODE 216 # define OPEN_ASYNC O_NONBLOCK 217 #elif defined(O_NDELAY) 218 # define HAS_ASYNC_FILEMODE 219 # define OPEN_ASYNC O_NDELAY 242 #if defined(CHECK_STATE) 243 qWarning(
"QFile::atEnd: File is not open" );
272 #if defined(CHECK_STATE) 275 qWarning(
"QFile::readLine: File not open" );
279 qWarning(
"QFile::readLine: Read operation not permitted" );
287 p = fgets( p, maxlen,
fh );
339 #if defined(CHECK_STATE) 341 qWarning(
"QFile::getch: File not open" );
345 qWarning(
"QFile::getch: Read operation not permitted" );
361 ch =
readBlock( buf, 1 ) == 1 ? buf[0] : EOF;
363 if ( (ch = getc(
fh )) != EOF )
388 #if defined(CHECK_STATE) 390 qWarning(
"QFile::putch: File not open" );
394 qWarning(
"QFile::putch: Write operation not permitted" );
403 if ( (ch = putc( ch,
fh )) != EOF ) {
427 #if defined(CHECK_STATE) 429 qWarning(
"QFile::ungetch: File not open" );
433 qWarning(
"QFile::ungetch: Read operation not permitted" );
455 if ( (ch = ungetc(ch,
fh)) != EOF )
531 return (*
decoder)(localFileName);
static QString fromLocal8Bit(const char *, int len=-1)
static QString locale_decoder(const QCString &localFileName)
virtual bool atEnd() const
int readLine(char *data, uint maxlen)
int readBlock(char *data, uint len)
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
void qWarning(const char *msg,...)
void setName(const QString &name)
QCString local8Bit() const
int writeBlock(const char *data, uint len)
Q_EXPORT uint qstrlen(const char *str)
static QFile::DecoderFn decoder
bool qt_file_access(const QString &fn, int t)
bool isSequentialAccess() const
virtual int readLine(char *data, uint maxlen)
static QCString encodeName(const QString &fileName)
QString(* DecoderFn)(const QCString &localfileName)
static QString decodeName(const QCString &localFileName)
static void setEncodingFunction(EncoderFn)
bool isDirectAccess() const
static QCString locale_encoder(const QString &fileName)
bool isTranslated() const
QCString(* EncoderFn)(const QString &fileName)
static void setDecodingFunction(DecoderFn)
static QFile::EncoderFn encoder