diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 15:55:57 -0600 |
commit | 9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch) | |
tree | c81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/builtins/qdir_imp.cpp | |
parent | 1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff) | |
download | tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip |
Initial TQt conversion
Diffstat (limited to 'kjsembed/builtins/qdir_imp.cpp')
-rw-r--r-- | kjsembed/builtins/qdir_imp.cpp | 266 |
1 files changed, 133 insertions, 133 deletions
diff --git a/kjsembed/builtins/qdir_imp.cpp b/kjsembed/builtins/qdir_imp.cpp index 55895a59..4a1d6bde 100644 --- a/kjsembed/builtins/qdir_imp.cpp +++ b/kjsembed/builtins/qdir_imp.cpp @@ -22,14 +22,14 @@ */ namespace KJSEmbed { namespace Bindings { - KJS::Object QDirLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const + KJS::Object TQDirLoader::createBinding(KJSEmbedPart *jspart, KJS::ExecState *exec, const KJS::List &args) const { JSOpaqueProxy * prx; if ( args.size() == 0 ) { - prx = new JSOpaqueProxy( new TQDir( TQDir::current() ), "TQDir" ); + prx = new JSOpaqueProxy( new TTQDir( TTQDir::current() ), "TTQDir" ); } else { - TQString arg0 = ( args.size() >= 1 ) ? args[ 0 ].toString( exec ).qstring() : TQString::null; - prx = new JSOpaqueProxy( new TQDir( arg0 ), "TQDir" ); + TTQString arg0 = ( args.size() >= 1 ) ? args[ 0 ].toString( exec ).qstring() : TTQString::null; + prx = new JSOpaqueProxy( new TTQDir( arg0 ), "TTQDir" ); } prx->setOwner( JSProxy::JavaScript ); KJS::Object proxyObj( prx ); @@ -37,23 +37,23 @@ namespace Bindings { return proxyObj; } - void QDirLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const + void TQDirLoader::addBindings( KJSEmbedPart *jspart, KJS::ExecState *exec, KJS::Object &proxy ) const { - QDirImp::addBindings( exec, proxy ); + TQDirImp::addBindings( exec, proxy ); } } -QDirImp::QDirImp( KJS::ExecState *exec, int id ) +TTQDirImp::TQDirImp( KJS::ExecState *exec, int id ) : JSProxyImp(exec), mid(id) { } -QDirImp::~QDirImp() +TTQDirImp::~TQDirImp() { } -void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) +void TQDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) { JSProxy::MethodTable methods[] = { @@ -160,7 +160,7 @@ void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) int idx = 0; do { - QDirImp *meth = new QDirImp( exec, methods[idx].id ); + TQDirImp *meth = new TQDirImp( exec, methods[idx].id ); object.put( exec , methods[idx].name, KJS::Object(meth) ); ++idx; } while( methods[idx].id ); @@ -177,31 +177,31 @@ void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) EnumValue enums[] = { // enum FilterSpec - { "Dirs", TQDir::Dirs }, - { "Files", TQDir::Files }, - { "Drives", TQDir::Drives }, - { "NoSymLinks", TQDir::NoSymLinks }, - { "All", TQDir::All }, - { "TypeMask", TQDir::TypeMask }, - { "Readable", TQDir::Readable }, - { "Writable", TQDir::Writable }, - { "Executable", TQDir::Executable }, - { "RWEMask", TQDir::RWEMask }, - { "Modified", TQDir::Modified }, - { "Hidden", TQDir::Hidden }, - { "System", TQDir::System }, - { "AccessMask", TQDir::AccessMask }, - { "DefaultFilter", TQDir::DefaultFilter }, + { "Dirs", TTQDir::Dirs }, + { "Files", TTQDir::Files }, + { "Drives", TTQDir::Drives }, + { "NoSymLinks", TTQDir::NoSymLinks }, + { "All", TTQDir::All }, + { "TypeMask", TTQDir::TypeMask }, + { "Readable", TTQDir::Readable }, + { "Writable", TTQDir::Writable }, + { "Executable", TTQDir::Executable }, + { "RWEMask", TTQDir::RWEMask }, + { "Modified", TTQDir::Modified }, + { "Hidden", TTQDir::Hidden }, + { "System", TTQDir::System }, + { "AccessMask", TTQDir::AccessMask }, + { "DefaultFilter", TTQDir::DefaultFilter }, // enum SortSpec - { "Name", TQDir::Name }, - { "Time", TQDir::Time }, - { "Size", TQDir::Size }, - { "Unsorted", TQDir::Unsorted }, - { "SortByMask", TQDir::SortByMask }, - { "DirsFirst", TQDir::DirsFirst }, - { "Reversed", TQDir::Reversed }, - { "IgnoreCase", TQDir::IgnoreCase }, - { "DefaultSort", TQDir::DefaultSort }, + { "Name", TTQDir::Name }, + { "Time", TTQDir::Time }, + { "Size", TTQDir::Size }, + { "Unsorted", TTQDir::Unsorted }, + { "SortByMask", TTQDir::SortByMask }, + { "DirsFirst", TTQDir::DirsFirst }, + { "Reversed", TTQDir::Reversed }, + { "IgnoreCase", TTQDir::IgnoreCase }, + { "DefaultSort", TTQDir::DefaultSort }, { 0, 0 } }; @@ -214,20 +214,20 @@ void QDirImp::addBindings( KJS::ExecState *exec, KJS::Object &object ) } -KJS::Value QDirImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) +KJS::Value TQDirImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::List &args ) { JSOpaqueProxy *op = JSProxy::toOpaqueProxy( self.imp() ); if ( !op ) { - kdWarning() << "QDirImp::call() failed, not a JSOpaqueProxy" << endl; + kdWarning() << "TQDirImp::call() failed, not a JSOpaqueProxy" << endl; return KJS::Value(); } - if ( op->typeName() != "TQDir" ) { - kdWarning() << "QDirImp::call() failed, type is " << op->typeName() << endl; + if ( op->typeName() != "TTQDir" ) { + kdWarning() << "TQDirImp::call() failed, type is " << op->typeName() << endl; return KJS::Value(); } - instance = op->toNative<TQDir>(); + instance = op->toNative<TTQDir>(); switch( mid ) { @@ -431,15 +431,15 @@ KJS::Value QDirImp::call( KJS::ExecState *exec, KJS::Object &self, const KJS::Li break; } - TQString msg = i18n( "QDirImp has no method with id '%1'." ).arg( mid ); + TTQString msg = i18n( "TQDirImp has no method with id '%1'." ).arg( mid ); return throwError(exec, msg,KJS::ReferenceError); } -KJS::Value QDirImp::setPath_7( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::setPath_7( 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->setPath( arg0 ); @@ -447,50 +447,50 @@ KJS::Value QDirImp::setPath_7( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::path_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::path_8( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->path( ); return KJS::String( ret ); } -KJS::Value QDirImp::absPath_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::absPath_9( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->absPath( ); return KJS::String( ret ); } -KJS::Value QDirImp::canonicalPath_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::canonicalPath_10( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->canonicalPath( ); return KJS::String( ret ); } -KJS::Value QDirImp::dirName_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::dirName_11( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->dirName( ); return KJS::String( ret ); } -KJS::Value QDirImp::filePath_12( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::filePath_12( 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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; - TQString ret; + TTQString ret; ret = instance->filePath( arg0, arg1 ); @@ -498,14 +498,14 @@ KJS::Value QDirImp::filePath_12( KJS::ExecState *exec, KJS::Object &obj, const K } -KJS::Value QDirImp::absFilePath_13( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::absFilePath_13( 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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; - TQString ret; + TTQString ret; ret = instance->absFilePath( arg0, arg1 ); @@ -513,10 +513,10 @@ KJS::Value QDirImp::absFilePath_13( KJS::ExecState *exec, KJS::Object &obj, cons } -KJS::Value QDirImp::cd_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::cd_14( 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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -528,7 +528,7 @@ KJS::Value QDirImp::cd_14( KJS::ExecState *exec, KJS::Object &obj, const KJS::Li } -KJS::Value QDirImp::cdUp_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::cdUp_15( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -537,19 +537,19 @@ KJS::Value QDirImp::cdUp_15( KJS::ExecState *exec, KJS::Object &obj, const KJS:: } -KJS::Value QDirImp::nameFilter_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::nameFilter_16( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->nameFilter( ); return KJS::String( ret ); } -KJS::Value QDirImp::setNameFilter_17( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::setNameFilter_17( 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->setNameFilter( arg0 ); @@ -557,7 +557,7 @@ KJS::Value QDirImp::setNameFilter_17( KJS::ExecState *exec, KJS::Object &obj, co } -KJS::Value QDirImp::filter_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::filter_18( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->filter( ); @@ -565,7 +565,7 @@ KJS::Value QDirImp::filter_18( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::setFilter_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::setFilter_19( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -576,7 +576,7 @@ KJS::Value QDirImp::setFilter_19( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::sorting_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::sorting_20( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->sorting( ); @@ -584,7 +584,7 @@ KJS::Value QDirImp::sorting_20( KJS::ExecState *exec, KJS::Object &obj, const KJ } -KJS::Value QDirImp::setSorting_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::setSorting_21( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -595,7 +595,7 @@ KJS::Value QDirImp::setSorting_21( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::matchAllDirs_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::matchAllDirs_22( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -604,7 +604,7 @@ KJS::Value QDirImp::matchAllDirs_22( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QDirImp::setMatchAllDirs_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::setMatchAllDirs_23( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool arg0 = (args.size() >= 1) ? args[0].toBoolean(exec) : false; @@ -615,7 +615,7 @@ KJS::Value QDirImp::setMatchAllDirs_23( KJS::ExecState *exec, KJS::Object &obj, } -KJS::Value QDirImp::count_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::count_24( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { uint ret; @@ -624,7 +624,7 @@ KJS::Value QDirImp::count_24( KJS::ExecState *exec, KJS::Object &obj, const KJS: } -KJS::Value QDirImp::encodedEntryList_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::encodedEntryList_26( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -634,14 +634,14 @@ KJS::Value QDirImp::encodedEntryList_26( KJS::ExecState *exec, KJS::Object &obj, instance->encodedEntryList( arg0, arg1 ); - return KJS::Value(); // Returns 'QStrList' + return KJS::Value(); // Returns 'TQStrList' } -KJS::Value QDirImp::encodedEntryList_27( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::encodedEntryList_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; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; @@ -651,18 +651,18 @@ KJS::Value QDirImp::encodedEntryList_27( KJS::ExecState *exec, KJS::Object &obj, arg0, arg1, arg2 ); - return KJS::Value(); // Returns 'QStrList' + return KJS::Value(); // Returns 'TQStrList' } -KJS::Value QDirImp::entryList_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::entryList_28( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; - TQStringList ret; + TTQStringList ret; ret = instance->entryList( arg0, arg1 ); @@ -671,16 +671,16 @@ KJS::Value QDirImp::entryList_28( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::entryList_29( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::entryList_29( 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; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; int arg2 = (args.size() >= 3) ? args[2].toInteger(exec) : -1; - TQStringList ret; + TTQStringList ret; ret = instance->entryList( arg0, arg1, @@ -690,7 +690,7 @@ KJS::Value QDirImp::entryList_29( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::entryInfoList_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::entryInfoList_30( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { int arg0 = (args.size() >= 1) ? args[0].toInteger(exec) : -1; @@ -700,14 +700,14 @@ KJS::Value QDirImp::entryInfoList_30( KJS::ExecState *exec, KJS::Object &obj, co instance->entryInfoList( arg0, arg1 ); - return KJS::Value(); // Returns 'const QFileInfoList *' + return KJS::Value(); // Returns 'const TQFileInfoList *' } -KJS::Value QDirImp::entryInfoList_31( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::entryInfoList_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; int arg1 = (args.size() >= 2) ? args[1].toInteger(exec) : -1; @@ -717,14 +717,14 @@ KJS::Value QDirImp::entryInfoList_31( KJS::ExecState *exec, KJS::Object &obj, co arg0, arg1, arg2 ); - return KJS::Value(); // Returns 'const QFileInfoList *' + return KJS::Value(); // Returns 'const TQFileInfoList *' } -KJS::Value QDirImp::mkdir_32( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::mkdir_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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -736,10 +736,10 @@ KJS::Value QDirImp::mkdir_32( KJS::ExecState *exec, KJS::Object &obj, const KJS: } -KJS::Value QDirImp::rmdir_33( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::rmdir_33( 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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -751,7 +751,7 @@ KJS::Value QDirImp::rmdir_33( KJS::ExecState *exec, KJS::Object &obj, const KJS: } -KJS::Value QDirImp::isReadable_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::isReadable_34( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -760,7 +760,7 @@ KJS::Value QDirImp::isReadable_34( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::exists_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::exists_35( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -769,7 +769,7 @@ KJS::Value QDirImp::exists_35( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::isRoot_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::isRoot_36( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -778,7 +778,7 @@ KJS::Value QDirImp::isRoot_36( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::isRelative_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::isRelative_37( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { bool ret; @@ -787,7 +787,7 @@ KJS::Value QDirImp::isRelative_37( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::convertToAbs_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::convertToAbs_38( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->convertToAbs( ); @@ -795,10 +795,10 @@ KJS::Value QDirImp::convertToAbs_38( KJS::ExecState *exec, KJS::Object &obj, con } -KJS::Value QDirImp::remove_41( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::remove_41( 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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -810,12 +810,12 @@ KJS::Value QDirImp::remove_41( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::rename_42( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::rename_42( 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; - TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; + TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; bool arg2 = (args.size() >= 3) ? args[2].toBoolean(exec) : false; @@ -828,10 +828,10 @@ KJS::Value QDirImp::rename_42( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::exists_43( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::exists_43( 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 arg1 = (args.size() >= 2) ? args[1].toBoolean(exec) : false; @@ -843,7 +843,7 @@ KJS::Value QDirImp::exists_43( KJS::ExecState *exec, KJS::Object &obj, const KJS } -KJS::Value QDirImp::refresh_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::refresh_44( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->refresh( ); @@ -851,27 +851,27 @@ KJS::Value QDirImp::refresh_44( KJS::ExecState *exec, KJS::Object &obj, const KJ } -KJS::Value QDirImp::convertSeparators_45( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::convertSeparators_45( 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; - TQString ret; + TTQString ret; ret = instance->convertSeparators( arg0 ); return KJS::String( ret ); } -KJS::Value QDirImp::drives_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::drives_46( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->drives( ); - return KJS::Value(); // Returns 'const QFileInfoList *' + return KJS::Value(); // Returns 'const TQFileInfoList *' } -KJS::Value QDirImp::separator_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::separator_47( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->separator( ); @@ -879,10 +879,10 @@ KJS::Value QDirImp::separator_47( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::setCurrent_48( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::setCurrent_48( 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->setCurrent( @@ -891,66 +891,66 @@ KJS::Value QDirImp::setCurrent_48( KJS::ExecState *exec, KJS::Object &obj, const } -KJS::Value QDirImp::current_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::current_49( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->current( ); - return KJS::Value(); // Returns 'QDir' + return KJS::Value(); // Returns 'TQDir' } -KJS::Value QDirImp::home_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::home_50( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->home( ); - return KJS::Value(); // Returns 'QDir' + return KJS::Value(); // Returns 'TQDir' } -KJS::Value QDirImp::root_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::root_51( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { instance->root( ); - return KJS::Value(); // Returns 'QDir' + return KJS::Value(); // Returns 'TQDir' } -KJS::Value QDirImp::currentDirPath_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::currentDirPath_52( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->currentDirPath( ); return KJS::String( ret ); } -KJS::Value QDirImp::homeDirPath_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::homeDirPath_53( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->homeDirPath( ); return KJS::String( ret ); } -KJS::Value QDirImp::rootDirPath_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::rootDirPath_54( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQString ret; + TTQString ret; ret = instance->rootDirPath( ); return KJS::String( ret ); } -KJS::Value QDirImp::match_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::match_55( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) { - TQStringList arg0; + TTQStringList arg0; if ( args.size() >= 1 ) { // TODO: populate the list } - TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; + TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; bool ret; ret = instance->match( @@ -960,12 +960,12 @@ KJS::Value QDirImp::match_55( KJS::ExecState *exec, KJS::Object &obj, const KJS: } -KJS::Value QDirImp::match_56( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::match_56( 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; - TQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TQString::null; + TTQString arg1 = (args.size() >= 2) ? args[1].toString(exec).qstring() : TTQString::null; bool ret; ret = instance->match( @@ -975,22 +975,22 @@ KJS::Value QDirImp::match_56( KJS::ExecState *exec, KJS::Object &obj, const KJS: } -KJS::Value QDirImp::cleanDirPath_57( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::cleanDirPath_57( 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; - TQString ret; + TTQString ret; ret = instance->cleanDirPath( arg0 ); return KJS::String( ret ); } -KJS::Value QDirImp::isRelativePath_58( KJS::ExecState *exec, KJS::Object &obj, const KJS::List &args ) +KJS::Value TQDirImp::isRelativePath_58( 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->isRelativePath( |