kjsembed
fileio.cpp File Reference
#include "fileio.h"
#include <QtCore/QFile>
#include "kjseglobal.h"
#include <QtCore/QTemporaryFile>
#include <QtCore/QDebug>
Include dependency graph for fileio.cpp:

Go to the source code of this file.
Functions | |
| END_OBJECT_METHOD object | close () |
| if (file->open()) | |
| if (file->open((QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0))) | |
| END_STATIC_OBJECT_METHOD if(QFile::copy(KJSEmbed::extractQString(exec, args, 0), KJSEmbed::extractQString(exec, args, 0))) return KJS return | KJS::jsBoolean (false) |
| END_STATIC_OBJECT_METHOD return | KJS::jsBoolean (QFile::copy(KJSEmbed::extractQString(exec, args, 0), KJSEmbed::extractQString(exec, args, 0))) |
| END_STATIC_OBJECT_METHOD return | KJS::jsBoolean (QFile::remove(KJSEmbed::extractQString(exec, args, 0))) |
| return | KJS::jsNull () |
| file | setAutoRemove (KJSEmbed::extractBool(exec, args, 1)) |
| END_STATIC_OBJECT_METHOD | START_STATIC_METHOD_LUT (FileIO) |
| KJS::throwError (exec, KJS::GeneralError, i18n("Could not create temporary file.")) | |
| KJS::throwError (exec, KJS::TypeError, i18n("Could not open file '%1'", KJSEmbed::extractQString(exec, args, 0))) | |
Variables | |
| END_OBJECT_METHOD QFile * | file = new QFile( KJSEmbed::extractQString( exec, args, 0) ) |
| result = KJS::jsBoolean( object->open( (QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0))) | |
Function Documentation
| END_OBJECT_METHOD object close | ( | ) |
| if | ( | file-> | open() | ) |
Definition at line 99 of file fileio.cpp.
| if | ( | file-> | open(QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0) | ) |
Definition at line 64 of file fileio.cpp.
| file setAutoRemove | ( | KJSEmbed:: | extractBoolexec, args, 1 | ) |
| END_STATIC_OBJECT_METHOD START_STATIC_METHOD_LUT | ( | FileIO | ) |
Definition at line 107 of file fileio.cpp.
Variable Documentation
| delete file = new QFile( KJSEmbed::extractQString( exec, args, 0) ) |
Definition at line 63 of file fileio.cpp.
| END_OBJECT_METHOD result = KJS::jsBoolean( object->open( (QIODevice::OpenModeFlag) KJSEmbed::extractInt(exec, args, 0))) |
Definition at line 39 of file fileio.cpp.
KDE 4.1 API Reference