summaryrefslogtreecommitdiffstats
path: root/kpackage/kio.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:25:18 +0000
commitaa3a1ca934bc541bddd3fa136a85f106f7da266e (patch)
tree9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kpackage/kio.cpp
parentb10cf7066791a2f362495890cd50c984e8025412 (diff)
downloadtdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz
tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kpackage/kio.cpp')
-rw-r--r--kpackage/kio.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpackage/kio.cpp b/kpackage/kio.cpp
index 1eb6f52..f11ed53 100644
--- a/kpackage/kio.cpp
+++ b/kpackage/kio.cpp
@@ -32,11 +32,11 @@ Kio::Kio()
{
}
-bool Kio::download(const KURL & from, const QString & to)
+bool Kio::download(const KURL & from, const TQString & to)
{
KIO::Job *iojob = KIO::file_copy(from, to);
- connect( iojob, SIGNAL( result(KIO::Job*) ),
- SLOT( slotIOJobFinished( KIO::Job* )));
+ connect( iojob, TQT_SIGNAL( result(KIO::Job*) ),
+ TQT_SLOT( slotIOJobFinished( KIO::Job* )));
// missing modal widget hack here.
// I'd recommend using KIO::NetAccess instead (David).
kapp->enter_loop();
@@ -61,13 +61,13 @@ Kiod::~Kiod()
delete fileT;
}
-bool Kiod::listDir(const QString &url, const QString &fname, bool subdirs)
+bool Kiod::listDir(const TQString &url, const TQString &fname, bool subdirs)
{
delete file;
- file = new QFile(fname);
+ file = new TQFile(fname);
if (file->open(IO_WriteOnly)) {
delete fileT;
- fileT = new QTextStream(file);
+ fileT = new TQTextStream(file);
KIO::ListJob *job;
if (!subdirs)
job = KIO::listDir( url );
@@ -76,10 +76,10 @@ bool Kiod::listDir(const QString &url, const QString &fname, bool subdirs)
kdDebug() << "started " << job << " " << subdirs << endl;
- QObject::connect( job, SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
- SLOT( slotListEntries( KIO::Job*, const KIO::UDSEntryList& ) ) );
- QObject::connect( job, SIGNAL( result( KIO::Job * ) ),
- SLOT( slotFinished( KIO::Job* ) ) );
+ TQObject::connect( job, TQT_SIGNAL( entries( KIO::Job*, const KIO::UDSEntryList& ) ),
+ TQT_SLOT( slotListEntries( KIO::Job*, const KIO::UDSEntryList& ) ) );
+ TQObject::connect( job, TQT_SIGNAL( result( KIO::Job * ) ),
+ TQT_SLOT( slotFinished( KIO::Job* ) ) );
kapp->enter_loop();
@@ -95,7 +95,7 @@ bool Kiod::listDir(const QString &url, const QString &fname, bool subdirs)
void Kiod::slotListEntries( KIO::Job *, const KIO::UDSEntryList& entries )
{
long size = 0;
- QString text;
+ TQString text;
KIO::UDSEntryList::ConstIterator entryIt = entries.begin();