Script
Public Slots | Public Member Functions | Properties | Private Attributes | List of all members
Dir Class Reference

Interface to operating system Dir operations, ie, mkdir, rmdir, rename, etc. More...

#include <qsUtil.h>

Inheritance diagram for Dir:
Inheritance graph
[legend]
Collaboration diagram for Dir:
Collaboration graph
[legend]

Public Slots

QString filePath (const QString &file=QString::null) const
 
QString absFilePath (const QString &file=QString::null) const
 
void cd (const QString &dirName) const
 
void cdUp () const
 
QStringList entryList (const QString &filter, int filterSpec=-1, int sortSpec=-1) const
 
void mkdir (const QString &dirName=QString::null) const
 
void rmdir (const QString &dirName=QString::null) const
 
void mkdirs (const QString &dirName=QString::null) const
 
void rmdirs (const QString &dirName=QString::null) const
 
void remove (const QString &fileName) const
 
void rename (const QString &oldName, const QString &newName)
 
bool fileExists (const QString &fileName) const
 
void setCurrent () const
 

Public Member Functions

 Dir (const QString &path, QScriptContext *ct)
 
QString name () const
 
QString path () const
 
void setPath (const QString &newPath) const
 
QString absPath () const
 
QString canonicalPath () const
 
bool isReadable () const
 
bool exists () const
 

Properties

QString name
 
QString path
 
QString absPath
 
QString canonicalPath
 
bool readable
 
bool exists
 

Private Attributes

QDir * dir
 
QScriptContext * context
 

Detailed Description

Interface to operating system Dir operations, ie, mkdir, rmdir, rename, etc.

var dir = new Dir;
dir.path = this._exportDir;
dir.mkdirs();

Constructor & Destructor Documentation

Dir::Dir ( const QString &  path,
QScriptContext *  ct 
)
inline

Member Function Documentation

QString Dir::absFilePath ( const QString &  file = QString::null) const
slot
QString Dir::absPath ( ) const
inline
QString Dir::canonicalPath ( ) const
inline
void Dir::cd ( const QString &  dirName) const
slot
void Dir::cdUp ( ) const
slot
QStringList Dir::entryList ( const QString &  filter,
int  filterSpec = -1,
int  sortSpec = -1 
) const
slot
bool Dir::exists ( ) const
inline
bool Dir::fileExists ( const QString &  fileName) const
inlineslot
QString Dir::filePath ( const QString &  file = QString::null) const
slot
bool Dir::isReadable ( ) const
inline
void Dir::mkdir ( const QString &  dirName = QString::null) const
slot
void Dir::mkdirs ( const QString &  dirName = QString::null) const
slot
QString Dir::name ( ) const
inline
QString Dir::path ( ) const
inline
void Dir::remove ( const QString &  fileName) const
slot
void Dir::rename ( const QString &  oldName,
const QString &  newName 
)
slot
void Dir::rmdir ( const QString &  dirName = QString::null) const
slot
void Dir::rmdirs ( const QString &  dirName = QString::null) const
slot
void Dir::setCurrent ( ) const
slot
void Dir::setPath ( const QString &  newPath) const
inline

Member Data Documentation

QScriptContext* Dir::context
private
QDir* Dir::dir
private

Property Documentation

QString Dir::absPath
read
QString Dir::canonicalPath
read
bool Dir::exists
read
QString Dir::name
read
QString Dir::path
readwrite
bool Dir::readable
read

The documentation for this class was generated from the following file: