summaryrefslogtreecommitdiffstats
path: root/lib/compatibility/knewstuff/downloaddialog.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:39:24 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 00:39:24 -0600
commitf9ced3b3f13f3136ef63c33ef163042010d6e80b (patch)
tree293ce93dfb0dcfd79f83674116d7b3bc56f29af2 /lib/compatibility/knewstuff/downloaddialog.cpp
parent29df04c24350cc76a41e2410d1c92445f9338b98 (diff)
downloadtdewebdev-f9ced3b3f13f3136ef63c33ef163042010d6e80b.tar.gz
tdewebdev-f9ced3b3f13f3136ef63c33ef163042010d6e80b.zip
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'lib/compatibility/knewstuff/downloaddialog.cpp')
-rw-r--r--lib/compatibility/knewstuff/downloaddialog.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/lib/compatibility/knewstuff/downloaddialog.cpp b/lib/compatibility/knewstuff/downloaddialog.cpp
index d2516134..c5f402e1 100644
--- a/lib/compatibility/knewstuff/downloaddialog.cpp
+++ b/lib/compatibility/knewstuff/downloaddialog.cpp
@@ -195,7 +195,7 @@ void DownloadDialog::addProvider(Provider *p)
ret = true;
if(!p->icon().isValid()) ret = false;
- else ret = KIO::NetAccess::download(p->icon(), tmp, this);
+ else ret = TDEIO::NetAccess::download(p->icon(), tmp, this);
if(ret) pix = TQPixmap(tmp);
else pix = TDEGlobal::iconLoader()->loadIcon("knewstuff", KIcon::Panel);
frame = addPage(p->name(), p->name(), pix);
@@ -280,7 +280,7 @@ void DownloadDialog::addProvider(Provider *p)
TQTimer::singleShot(100, this, TQT_SLOT(slotFinish()));
}
-void DownloadDialog::slotResult(KIO::Job *job)
+void DownloadDialog::slotResult(TDEIO::Job *job)
{
TQDomDocument dom;
TQDomElement knewstuff;
@@ -379,7 +379,7 @@ void DownloadDialog::addEntry(Entry *entry)
kdDebug() << "added entry " << entry->name() << endl;
}
-void DownloadDialog::slotData(KIO::Job *job, const TQByteArray &a)
+void DownloadDialog::slotData(TDEIO::Job *job, const TQByteArray &a)
{
TQCString tmp(a, a.size() + 1);
m_data[job].append(TQString::fromUtf8(tmp));
@@ -446,8 +446,8 @@ void DownloadDialog::slotInstall()
KURL source = e->payload();
KURL dest = KURL(m_s->downloadDestination(e));
- KIO::FileCopyJob *job = KIO::file_copy(source, dest, -1, true);
- connect(job, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotInstalled(KIO::Job*)));
+ TDEIO::FileCopyJob *job = TDEIO::file_copy(source, dest, -1, true);
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(slotInstalled(TDEIO::Job*)));
}
}
@@ -471,14 +471,14 @@ void DownloadDialog::install(Entry *e)
if(in) in->setEnabled(false);
}
-void DownloadDialog::slotInstalled(KIO::Job *job)
+void DownloadDialog::slotInstalled(TDEIO::Job *job)
{
bool ret = (job->error() == 0);
- KIO::FileCopyJob *cjob;
+ TDEIO::FileCopyJob *cjob;
if(ret)
{
- cjob = static_cast<KIO::FileCopyJob*>(job);
+ cjob = static_cast<TDEIO::FileCopyJob*>(job);
if(cjob)
{
ret = m_s->install(cjob->destURL().path());
@@ -519,7 +519,7 @@ void DownloadDialog::slotSelected()
}
else
{
- KIO::NetAccess::download(e->preview(lang), tmp, this);
+ TDEIO::NetAccess::download(e->preview(lang), tmp, this);
m_rt->setText(TQString("<b>%1</b><br>%2<br>%3<br><br><img src='%4'><br><i>%5</i><br>(%6)").arg(
e->name()).arg(e->author()).arg(TDEGlobal::locale()->formatDate(e->releaseDate())).arg(tmp).arg(e->summary(lang)).arg(e->license()));
}
@@ -585,13 +585,13 @@ void DownloadDialog::slotPage(TQWidget *w)
void DownloadDialog::loadProvider(Provider *p)
{
- KIO::TransferJob *job = KIO::get(p->downloadUrl());
+ TDEIO::TransferJob *job = TDEIO::get(p->downloadUrl());
m_jobs[job] = p;
- connect(job, TQT_SIGNAL(result(KIO::Job*)), TQT_SLOT(slotResult(KIO::Job*)));
- connect(job, TQT_SIGNAL(data(KIO::Job*, const TQByteArray&)),
- TQT_SLOT(slotData(KIO::Job*, const TQByteArray&)));
+ connect(job, TQT_SIGNAL(result(TDEIO::Job*)), TQT_SLOT(slotResult(TDEIO::Job*)));
+ connect(job, TQT_SIGNAL(data(TDEIO::Job*, const TQByteArray&)),
+ TQT_SLOT(slotData(TDEIO::Job*, const TQByteArray&)));
}
void DownloadDialog::setType(TQString type)