summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins/qfile_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/builtins/qfile_imp.cpp')
-rw-r--r--kjsembed/builtins/qfile_imp.cpp126
1 files changed, 63 insertions, 63 deletions
diff --git a/kjsembed/builtins/qfile_imp.cpp b/kjsembed/builtins/qfile_imp.cpp
index abc38d09..85d2fc6b 100644
--- a/kjsembed/builtins/qfile_imp.cpp
+++ b/kjsembed/builtins/qfile_imp.cpp
@@ -25,16 +25,16 @@
*/
namespace KJSEmbed {
-QFileImp::QFileImp( KJS::ExecState *exec, int mid, bool constructor )
+TTQFileImp::TQFileImp( KJS::ExecState *exec, int mid, bool constructor )
: JSProxyImp(exec), id(mid), cons(constructor)
{
}
-QFileImp::~QFileImp()
+TTQFileImp::~TQFileImp()
{
}
-void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
+void TQFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
{
JSProxy::MethodTable methods[] = {
@@ -71,11 +71,11 @@ void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
};
int idx = 0;
- TQCString lastName;
+ TTQCString lastName;
do {
if ( lastName != methods[idx].name ) {
- QFileImp *meth = new QFileImp( exec, methods[idx].id );
+ TQFileImp *meth = new TQFileImp( exec, methods[idx].id );
object.put( exec , methods[idx].name, KJS::Object(meth) );
lastName = methods[idx].name;
}
@@ -85,64 +85,64 @@ void QFileImp::addBindings( KJS::ExecState *exec, KJS::Object &object )
}
-TQFile *QFileImp::toQFile( KJS::Object &self )
+TTQFile *TQFileImp::toTQFile( KJS::Object &self )
{
JSObjectProxy *ob = JSProxy::toObjectProxy( self.imp() );
if ( ob ) {
- TQObject *obj = ob->object();
+ TTQObject *obj = ob->object();
if ( obj )
- return dynamic_cast<TQFile *>( obj );
+ return dynamic_cast<TTQFile *>( obj );
}
JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() );
if ( !op )
return 0;
- if ( op->typeName() != "TQFile" )
+ if ( op->typeName() != "TTQFile" )
return 0;
- return op->toNative<TQFile>();
+ return op->toNative<TTQFile>();
}
-KJS::Object QFileImp::construct( KJS::ExecState *exec, const KJS::List &args )
+KJS::Object TQFileImp::construct( KJS::ExecState *exec, const KJS::List &args )
{
switch( id ) {
case Constructor_QFile_1:
- return QFile_1( exec, args );
+ return TQFile_1( exec, args );
break;
case Constructor_QFile_2:
- return QFile_2( exec, args );
+ return TQFile_2( exec, args );
break;
default:
break;
}
- TQString msg = i18n("QFileCons has no constructor with id '%1'.").arg(id);
+ TTQString msg = i18n("TQFileCons has no constructor with id '%1'.").arg(id);
return throwError(exec, msg,KJS::ReferenceError);
}
-KJS::Object QFileImp::QFile_1( KJS::ExecState *exec, const KJS::List &args )
+KJS::Object TQFileImp::TQFile_1( KJS::ExecState *exec, const KJS::List &args )
{
return KJS::Object();
}
-KJS::Object QFileImp::QFile_2( KJS::ExecState *exec, const KJS::List &args )
+KJS::Object TQFileImp::TQFile_2( KJS::ExecState *exec, const KJS::List &args )
{
// TODO
- TQWidget *arg0 = 0L;
+ TTQWidget *arg0 = 0L;
return KJS::Object();
}
-KJS::Value QFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
+KJS::Value TQFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args )
{
- instance = QFileImp::toQFile( self );
+ instance = TQFileImp::toTQFile( self );
switch( id ) {
@@ -266,24 +266,24 @@ KJS::Value QFileImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::L
break;
}
- TQString msg = i18n( "QFileImp has no method with id '%1'." ).arg( id );
+ TTQString msg = i18n( "TQFileImp has no method with id '%1'." ).arg( id );
return throwError(exec, msg, KJS::ReferenceError );
}
-KJS::Value QFileImp::name_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::name_4( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->name( );
return KJS::String( ret );
}
-KJS::Value QFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
instance->setName(
arg0 );
@@ -291,7 +291,7 @@ KJS::Value QFileImp::setName_5( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QFileImp::exists_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::exists_6( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -300,7 +300,7 @@ KJS::Value QFileImp::exists_6( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::remove_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::remove_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -309,7 +309,7 @@ KJS::Value QFileImp::remove_7( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::open_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::open_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -321,7 +321,7 @@ KJS::Value QFileImp::open_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::
}
-KJS::Value QFileImp::open_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::open_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -339,7 +339,7 @@ KJS::Value QFileImp::open_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::
}
-KJS::Value QFileImp::open_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::open_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -354,7 +354,7 @@ KJS::Value QFileImp::open_10( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QFileImp::close_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::close_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->close( );
@@ -362,7 +362,7 @@ KJS::Value QFileImp::close_11( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::flush_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::flush_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->flush( );
@@ -370,7 +370,7 @@ KJS::Value QFileImp::flush_12( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::size_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::size_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->size( );
@@ -378,7 +378,7 @@ KJS::Value QFileImp::size_13( KJS::ExecState *exec, KJS::Object &obj, const KJS:
}
-KJS::Value QFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
instance->at( );
@@ -386,10 +386,10 @@ KJS::Value QFileImp::at_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::L
}
-KJS::Value QFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQFile::Offset arg0 = 0; // TODO (hack for qfile)
+ TTQFile::Offset arg0 = 0; // TODO (hack for qfile)
bool ret;
ret = instance->at(
@@ -398,7 +398,7 @@ KJS::Value QFileImp::at_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::L
}
-KJS::Value QFileImp::atEnd_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::atEnd_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
bool ret;
@@ -407,7 +407,7 @@ KJS::Value QFileImp::atEnd_16( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::readBlock_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::readBlock_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
// Unsupported parameter char *
@@ -427,7 +427,7 @@ KJS::Value QFileImp::readBlock_17( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
const char *arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
@@ -444,10 +444,10 @@ KJS::Value QFileImp::writeBlock_18( KJS::ExecState *exec, KJS::Object &obj, cons
}
-KJS::Value QFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQByteArray arg0; // TODO (hack for qfile)
+ TTQByteArray arg0; // TODO (hack for qfile)
instance->writeBlock(
arg0 );
@@ -455,7 +455,7 @@ KJS::Value QFileImp::writeBlock_19( KJS::ExecState *exec, KJS::Object &obj, cons
}
-KJS::Value QFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
// Unsupported parameter char *
@@ -475,10 +475,10 @@ KJS::Value QFileImp::readLine_20( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
// Unsupported parameter Q_ULONG
return KJS::Value();
@@ -492,7 +492,7 @@ KJS::Value QFileImp::readLine_21( KJS::ExecState *exec, KJS::Object &obj, const
}
-KJS::Value QFileImp::getch_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::getch_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int ret;
@@ -501,7 +501,7 @@ KJS::Value QFileImp::getch_22( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::putch_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::putch_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -513,7 +513,7 @@ KJS::Value QFileImp::putch_23( KJS::ExecState *exec, KJS::Object &obj, const KJS
}
-KJS::Value QFileImp::ungetch_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::ungetch_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1;
@@ -525,7 +525,7 @@ KJS::Value QFileImp::ungetch_24( KJS::ExecState *exec, KJS::Object &obj, const K
}
-KJS::Value QFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
int ret;
@@ -534,42 +534,42 @@ KJS::Value QFileImp::handle_25( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QFileImp::errorString_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::errorString_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString ret;
+ TTQString ret;
ret = instance->errorString( );
return KJS::String( ret );
}
-KJS::Value QFileImp::encodeName_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::encodeName_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
instance->encodeName(
arg0 );
- return KJS::Value(); // Returns 'QCString'
+ return KJS::Value(); // Returns 'TQCString'
}
-KJS::Value QFileImp::decodeName_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::decodeName_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- const TQCString arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
+ const TTQCString arg0 = (args.size() >= 1) ? args[0].toString(exec).ascii() : 0;
- TQString ret;
+ TTQString ret;
ret = instance->decodeName(
arg0 );
return KJS::String( ret );
}
-KJS::Value QFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQFile::EncoderFn arg0 = 0; // TODO (hack for qfile)
+ TTQFile::EncoderFn arg0 = 0; // TODO (hack for qfile)
instance->setEncodingFunction(
arg0 );
@@ -577,10 +577,10 @@ KJS::Value QFileImp::setEncodingFunction_29( KJS::ExecState *exec, KJS::Object &
}
-KJS::Value QFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQFile::DecoderFn arg0 = 0; // TODO (hack for qfile)
+ TTQFile::DecoderFn arg0 = 0; // TODO (hack for qfile)
instance->setDecodingFunction(
arg0 );
@@ -588,10 +588,10 @@ KJS::Value QFileImp::setDecodingFunction_30( KJS::ExecState *exec, KJS::Object &
}
-KJS::Value QFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->exists(
@@ -600,10 +600,10 @@ KJS::Value QFileImp::exists_31( KJS::ExecState *exec, KJS::Object &obj, const KJ
}
-KJS::Value QFileImp::remove_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
+KJS::Value TQFileImp::remove_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args )
{
- TQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() >= 1) ? args[0].toString(exec).qstring() : TTQString::null;
bool ret;
ret = instance->remove(