Functions | Variables
qfile.cpp File Reference
#include "qglobal.h"
#include "qfile.h"
#include "qfiledefs_p.h"

Go to the source code of this file.

Functions

bool qt_file_access (const QString &fn, int t)
 
static QCString locale_encoder (const QString &fileName)
 
static QString locale_decoder (const QCString &localFileName)
 

Variables

static QFile::EncoderFn encoder = locale_encoder
 
static QFile::DecoderFn decoder = locale_decoder
 

Function Documentation

static QString locale_decoder ( const QCString localFileName)
static

Definition at line 517 of file qfile.cpp.

518 {
519  return QString::fromLocal8Bit(localFileName);
520 }
static QString fromLocal8Bit(const char *, int len=-1)
Definition: qstring.cpp:14605
static QCString locale_encoder ( const QString fileName)
static

Definition at line 464 of file qfile.cpp.

465 {
466  return fileName.local8Bit();
467 }
QCString local8Bit() const
Definition: qstring.cpp:14569
bool qt_file_access ( const QString fn,
int  t 
)

Definition at line 54 of file qfile_unix.cpp.

55 {
56  if ( fn.isEmpty() )
57  return FALSE;
58  return ACCESS( QFile::encodeName(fn), t ) == 0;
59 }
bool isEmpty() const
Definition: qstring.h:682
const bool FALSE
Definition: qglobal.h:370
static QCString encodeName(const QString &fileName)
Definition: qfile.cpp:494
#define ACCESS
Definition: qfiledefs_p.h:216

Variable Documentation

QFile::DecoderFn decoder = locale_decoder
static

Definition at line 522 of file qfile.cpp.

QFile::EncoderFn encoder = locale_encoder
static

Definition at line 470 of file qfile.cpp.