summaryrefslogtreecommitdiffstats
path: root/plugins/webinterface
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:16 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:57:16 -0600
commit42a9872891eba166e81cf4f8c062261cc77398f8 (patch)
tree86b4f99b354b8d8eabeca2ffe1874b3c4c90d957 /plugins/webinterface
parentf96f74ffa7040e64ae3352e08c810c383c8a0ba2 (diff)
downloadktorrent-42a9872891eba166e81cf4f8c062261cc77398f8.tar.gz
ktorrent-42a9872891eba166e81cf4f8c062261cc77398f8.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit f96f74ffa7040e64ae3352e08c810c383c8a0ba2.
Diffstat (limited to 'plugins/webinterface')
-rw-r--r--plugins/webinterface/httpclienthandler.cpp4
-rw-r--r--plugins/webinterface/httpresponseheader.cpp4
-rw-r--r--plugins/webinterface/httpserver.cpp20
-rw-r--r--plugins/webinterface/php_handler.cpp4
-rw-r--r--plugins/webinterface/php_interface.cpp116
-rw-r--r--plugins/webinterface/php_interface.h2
-rw-r--r--plugins/webinterface/webinterfacepref.ui14
-rw-r--r--plugins/webinterface/webinterfaceprefwidget.cpp10
-rw-r--r--plugins/webinterface/www/default/details.php4
-rw-r--r--plugins/webinterface/www/default/interface.php6
-rw-r--r--plugins/webinterface/www/default/wz_tooltip.js2
-rw-r--r--plugins/webinterface/www/mobile/interface.php2
-rw-r--r--plugins/webinterface/www/mobile/torrent.php2
13 files changed, 95 insertions, 95 deletions
diff --git a/plugins/webinterface/httpclienthandler.cpp b/plugins/webinterface/httpclienthandler.cpp
index cba0372..1ad2d8d 100644
--- a/plugins/webinterface/httpclienthandler.cpp
+++ b/plugins/webinterface/httpclienthandler.cpp
@@ -171,7 +171,7 @@ namespace kt
void HttpClientHandler::send500(HttpResponseHeader & hdr)
{
// Out(SYS_WEB|LOG_DEBUG) << "Sending 500 " << endl;
- TQString data = TQString(HTTP_500_ERROR).arg("An internal server error occured !");
+ TQString data = TQString(HTTP_500_ERROR).tqarg("An internal server error occured !");
hdr.setValue("Content-Length",TQString::number(data.length()));
TQTextStream os(client);
@@ -199,7 +199,7 @@ namespace kt
php = new PhpHandler(php_exe,php_iface);
if (!php->executeScript(php_file,args))
{
- TQString data = TQString(HTTP_500_ERROR).arg("Failed to launch PHP executable !");
+ TQString data = TQString(HTTP_500_ERROR).tqarg("Failed to launch PHP executable !");
hdr.setResponseCode(500);
hdr.setValue("Content-Length",TQString::number(data.utf8().length()));
diff --git a/plugins/webinterface/httpresponseheader.cpp b/plugins/webinterface/httpresponseheader.cpp
index 3056f79..7b87892 100644
--- a/plugins/webinterface/httpresponseheader.cpp
+++ b/plugins/webinterface/httpresponseheader.cpp
@@ -61,12 +61,12 @@ namespace kt
TQString HttpResponseHeader::toString() const
{
TQString str;
- str += TQString("HTTP/1.1 %1 %2\r\n").arg(response_code).arg(ResponseCodeToString(response_code));
+ str += TQString("HTTP/1.1 %1 %2\r\n").tqarg(response_code).tqarg(ResponseCodeToString(response_code));
TQMap<TQString,TQString>::const_iterator itr = fields.begin();
while (itr != fields.end())
{
- str += TQString("%1: %2\r\n").arg(itr.key()).arg(itr.data());
+ str += TQString("%1: %2\r\n").tqarg(itr.key()).tqarg(itr.data());
itr++;
}
str += "\r\n";
diff --git a/plugins/webinterface/httpserver.cpp b/plugins/webinterface/httpserver.cpp
index 4d582a7..d04449b 100644
--- a/plugins/webinterface/httpserver.cpp
+++ b/plugins/webinterface/httpserver.cpp
@@ -237,23 +237,23 @@ namespace kt
{
if (!cookie)
return now.toString("%1, dd %2 yyyy hh:mm:ss UTC")
- .arg(days[now.date().dayOfWeek() - 1])
- .arg(months[now.date().month() - 1]);
+ .tqarg(days[now.date().dayOfWeek() - 1])
+ .tqarg(months[now.date().month() - 1]);
else
return now.toString("%1, dd-%2-yyyy hh:mm:ss GMT")
- .arg(days[now.date().dayOfWeek() - 1])
- .arg(months[now.date().month() - 1]);
+ .tqarg(days[now.date().dayOfWeek() - 1])
+ .tqarg(months[now.date().month() - 1]);
}
void HttpServer::setDefaultResponseHeaders(HttpResponseHeader & hdr,const TQString & content_type,bool with_session_info)
{
hdr.setValue("Server","KTorrent/" KT_VERSION_MACRO);
- hdr.setValue("Date",DateTimeToString(TQDateTime::currentDateTime(Qt::UTC),false));
+ hdr.setValue("Date",DateTimeToString(TQDateTime::tqcurrentDateTime(Qt::UTC),false));
hdr.setValue("Content-Type",content_type);
hdr.setValue("Connection","keep-alive");
if (with_session_info && session.sessionId && session.logged_in)
{
- hdr.setValue("Set-Cookie",TQString("KT_SESSID=%1").arg(session.sessionId));
+ hdr.setValue("Set-Cookie",TQString("KT_SESSID=%1").tqarg(session.sessionId));
}
}
@@ -328,8 +328,8 @@ namespace kt
if (path.endsWith("login.html"))
{
// clear cookie in case of login page
- TQDateTime dt = TQDateTime::currentDateTime().addDays(-1);
- TQString cookie = TQString("KT_SESSID=666; expires=%1 +0000").arg(DateTimeToString(dt,true));
+ TQDateTime dt = TQDateTime::tqcurrentDateTime().addDays(-1);
+ TQString cookie = TQString("KT_SESSID=666; expires=%1 +0000").tqarg(DateTimeToString(dt,true));
rhdr.setValue("Set-Cookie",cookie);
}
@@ -351,7 +351,7 @@ namespace kt
setDefaultResponseHeaders(rhdr,"text/html",true);
rhdr.setValue("Cache-Control","max-age=0");
rhdr.setValue("Last-Modified",DateTimeToString(fi.lastModified(),false));
- rhdr.setValue("Expires",DateTimeToString(TQDateTime::currentDateTime(Qt::UTC).addSecs(3600),false));
+ rhdr.setValue("Expires",DateTimeToString(TQDateTime::tqcurrentDateTime(Qt::UTC).addSecs(3600),false));
hdlr->sendResponse(rhdr);
return;
}
@@ -361,7 +361,7 @@ namespace kt
HttpResponseHeader rhdr(200);
setDefaultResponseHeaders(rhdr,ExtensionToContentType(ext),true);
rhdr.setValue("Last-Modified",DateTimeToString(fi.lastModified(),false));
- rhdr.setValue("Expires",DateTimeToString(TQDateTime::currentDateTime(Qt::UTC).addSecs(3600),false));
+ rhdr.setValue("Expires",DateTimeToString(TQDateTime::tqcurrentDateTime(Qt::UTC).addSecs(3600),false));
rhdr.setValue("Cache-Control","private");
if (!hdlr->sendFile(rhdr,path))
{
diff --git a/plugins/webinterface/php_handler.cpp b/plugins/webinterface/php_handler.cpp
index d2c2f55..87c8acd 100644
--- a/plugins/webinterface/php_handler.cpp
+++ b/plugins/webinterface/php_handler.cpp
@@ -76,13 +76,13 @@ namespace kt
ts.setEncoding( TQTextStream::UnicodeUTF8 );
ts.writeRawBytes(php_s.data(),off); // first write the opening tag from the script
php_i->globalInfo(ts);
- php_i->downloadStatus(ts);
+ php_i->downloadtqStatus(ts);
TQMap<TQString,TQString>::const_iterator it;
for ( it = args.begin(); it != args.end(); ++it )
{
- ts << TQString("$_REQUEST['%1']=\"%2\";\n").arg(it.key()).arg(it.data());
+ ts << TQString("$_REQUEST['%1']=\"%2\";\n").tqarg(it.key()).tqarg(it.data());
}
ts.writeRawBytes(php_s.data() + off,php_s.size() - off); // the rest of the script
ts << flush;
diff --git a/plugins/webinterface/php_interface.cpp b/plugins/webinterface/php_interface.cpp
index 048310d..9e2a577 100644
--- a/plugins/webinterface/php_interface.cpp
+++ b/plugins/webinterface/php_interface.cpp
@@ -48,19 +48,19 @@ namespace kt
{
KLocale* loc = KGlobal::locale();
if (bytes >= 1024 * 1024 * 1024)
- return TQString("%1 GB").arg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision));
+ return TQString("%1 GB").tqarg(loc->formatNumber(bytes / TO_GIG,precision < 0 ? 2 : precision));
else if (bytes >= 1024*1024)
- return TQString("%1 MB").arg(loc->formatNumber(bytes / TO_MEG,precision < 0 ? 1 : precision));
+ return TQString("%1 MB").tqarg(loc->formatNumber(bytes / TO_MEG,precision < 0 ? 1 : precision));
else if (bytes >= 1024)
- return TQString("%1 KB").arg(loc->formatNumber(bytes / TO_KB,precision < 0 ? 1 : precision));
+ return TQString("%1 KB").tqarg(loc->formatNumber(bytes / TO_KB,precision < 0 ? 1 : precision));
else
- return TQString("%1 B").arg(bytes);
+ return TQString("%1 B").tqarg(bytes);
}
TQString KBytesPerSecToString2(double speed,int precision = 2)
{
KLocale* loc = KGlobal::locale();
- return TQString("%1 KB/s").arg(loc->formatNumber(speed,precision));
+ return TQString("%1 KB/s").tqarg(loc->formatNumber(speed,precision));
}
/************************
@@ -72,12 +72,12 @@ namespace kt
}
/*Generate php code
- * function downloadStatus()
+ * function downloadtqStatus()
* {
* return array( ... );
* }
*/
- void PhpCodeGenerator::downloadStatus(TQTextStream & out)
+ void PhpCodeGenerator::downloadtqStatus(TQTextStream & out)
{
TorrentStats stats;
//Priority file_priority;
@@ -91,42 +91,42 @@ namespace kt
out << ",\n";
stats=(*i)->getStats();
- out << TQString("\n%1 => array(").arg(k);
+ out << TQString("\n%1 => array(").tqarg(k);
- out << TQString("\"imported_bytes\" => %1,\n").arg(stats.imported_bytes);
- out << TQString("\"bytes_downloaded\" => \"%1\",\n").arg(BytesToString2(stats.bytes_downloaded));
- out << TQString("\"bytes_uploaded\" => \"%1\",\n").arg(BytesToString2(stats.bytes_uploaded));
- out << TQString("\"bytes_left\" => %1,\n").arg(stats.bytes_left);
- out << TQString("\"bytes_left_to_download\" => %1,\n").arg(stats.bytes_left_to_download);
- out << TQString("\"total_bytes\" => \"%1\",\n").arg(BytesToString2(stats.total_bytes));
- out << TQString("\"total_bytes_to_download\" => %1,\n").arg(stats.total_bytes_to_download);
- out << TQString("\"download_rate\" => \"%1\",\n").arg(KBytesPerSecToString2(stats.download_rate / 1024.0));
- out << TQString("\"upload_rate\" => \"%1\",\n").arg(KBytesPerSecToString2(stats.upload_rate / 1024.0));
- out << TQString("\"num_peers\" => %1,\n").arg(stats.num_peers);
- out << TQString("\"num_chunks_downloading\" => %1,\n").arg(stats.num_chunks_downloading);
- out << TQString("\"total_chunks\" => %1,\n").arg(stats.total_chunks);
- out << TQString("\"num_chunks_downloaded\" => %1,\n").arg(stats.num_chunks_downloaded);
- out << TQString("\"num_chunks_excluded\" => %1,\n").arg(stats.num_chunks_excluded);
- out << TQString("\"chunk_size\" => %1,\n").arg(stats.chunk_size);
- out << TQString("\"seeders_total\" => %1,\n").arg(stats.seeders_total);
- out << TQString("\"seeders_connected_to\" => %1,\n").arg(stats.seeders_connected_to);
- out << TQString("\"leechers_total\" => %1,\n").arg(stats.leechers_total);
- out << TQString("\"leechers_connected_to\" => %1,\n").arg(stats.leechers_connected_to);
- out << TQString("\"status\" => %1,\n").arg(stats.status);
- out << TQString("\"running\" => %1,\n").arg(stats.running);
- out << TQString("\"trackerstatus\" => \"%1\",\n").arg(stats.trackerstatus.replace("\\", "\\\\").replace("\"", "\\\"").replace("$", "\\$"));
- out << TQString("\"session_bytes_downloaded\" => %1,\n").arg(stats.session_bytes_downloaded);
- out << TQString("\"session_bytes_uploaded\" => %1,\n").arg(stats.session_bytes_uploaded);
- out << TQString("\"trk_bytes_downloaded\" => %1,\n").arg(stats.trk_bytes_downloaded);
- out << TQString("\"trk_bytes_uploaded\" => %1,\n").arg(stats.trk_bytes_uploaded);
- out << TQString("\"torrent_name\" => \"%1\",\n").arg(stats.torrent_name.replace("\\", "\\\\").replace("\"", "\\\"").replace("$", "\\$"));
- out << TQString("\"output_path\" => \"%1\",\n").arg(stats.output_path.replace("\\", "\\\\").replace("\"", "\\\"").replace("$", "\\$"));
- out << TQString("\"stopped_by_error\" => \"%1\",\n").arg(stats.stopped_by_error);
- out << TQString("\"completed\" => \"%1\",\n").arg(stats.completed);
- out << TQString("\"user_controlled\" => \"%1\",\n").arg(stats.user_controlled);
- out << TQString("\"max_share_ratio\" => %1,\n").arg(stats.max_share_ratio);
- out << TQString("\"priv_torrent\" => \"%1\",\n").arg(stats.priv_torrent);
- out << TQString("\"num_files\" => \"%1\",\n").arg((*i)->getNumFiles());
+ out << TQString("\"imported_bytes\" => %1,\n").tqarg(stats.imported_bytes);
+ out << TQString("\"bytes_downloaded\" => \"%1\",\n").tqarg(BytesToString2(stats.bytes_downloaded));
+ out << TQString("\"bytes_uploaded\" => \"%1\",\n").tqarg(BytesToString2(stats.bytes_uploaded));
+ out << TQString("\"bytes_left\" => %1,\n").tqarg(stats.bytes_left);
+ out << TQString("\"bytes_left_to_download\" => %1,\n").tqarg(stats.bytes_left_to_download);
+ out << TQString("\"total_bytes\" => \"%1\",\n").tqarg(BytesToString2(stats.total_bytes));
+ out << TQString("\"total_bytes_to_download\" => %1,\n").tqarg(stats.total_bytes_to_download);
+ out << TQString("\"download_rate\" => \"%1\",\n").tqarg(KBytesPerSecToString2(stats.download_rate / 1024.0));
+ out << TQString("\"upload_rate\" => \"%1\",\n").tqarg(KBytesPerSecToString2(stats.upload_rate / 1024.0));
+ out << TQString("\"num_peers\" => %1,\n").tqarg(stats.num_peers);
+ out << TQString("\"num_chunks_downloading\" => %1,\n").tqarg(stats.num_chunks_downloading);
+ out << TQString("\"total_chunks\" => %1,\n").tqarg(stats.total_chunks);
+ out << TQString("\"num_chunks_downloaded\" => %1,\n").tqarg(stats.num_chunks_downloaded);
+ out << TQString("\"num_chunks_excluded\" => %1,\n").tqarg(stats.num_chunks_excluded);
+ out << TQString("\"chunk_size\" => %1,\n").tqarg(stats.chunk_size);
+ out << TQString("\"seeders_total\" => %1,\n").tqarg(stats.seeders_total);
+ out << TQString("\"seeders_connected_to\" => %1,\n").tqarg(stats.seeders_connected_to);
+ out << TQString("\"leechers_total\" => %1,\n").tqarg(stats.leechers_total);
+ out << TQString("\"leechers_connected_to\" => %1,\n").tqarg(stats.leechers_connected_to);
+ out << TQString("\"status\" => %1,\n").tqarg(stats.status);
+ out << TQString("\"running\" => %1,\n").tqarg(stats.running);
+ out << TQString("\"trackerstatus\" => \"%1\",\n").tqarg(stats.trackerstatus.replace("\\", "\\\\").replace("\"", "\\\"").replace("$", "\\$"));
+ out << TQString("\"session_bytes_downloaded\" => %1,\n").tqarg(stats.session_bytes_downloaded);
+ out << TQString("\"session_bytes_uploaded\" => %1,\n").tqarg(stats.session_bytes_uploaded);
+ out << TQString("\"trk_bytes_downloaded\" => %1,\n").tqarg(stats.trk_bytes_downloaded);
+ out << TQString("\"trk_bytes_uploaded\" => %1,\n").tqarg(stats.trk_bytes_uploaded);
+ out << TQString("\"torrent_name\" => \"%1\",\n").tqarg(stats.torrent_name.replace("\\", "\\\\").replace("\"", "\\\"").replace("$", "\\$"));
+ out << TQString("\"output_path\" => \"%1\",\n").tqarg(stats.output_path.replace("\\", "\\\\").replace("\"", "\\\"").replace("$", "\\$"));
+ out << TQString("\"stopped_by_error\" => \"%1\",\n").tqarg(stats.stopped_by_error);
+ out << TQString("\"completed\" => \"%1\",\n").tqarg(stats.completed);
+ out << TQString("\"user_controlled\" => \"%1\",\n").tqarg(stats.user_controlled);
+ out << TQString("\"max_share_ratio\" => %1,\n").tqarg(stats.max_share_ratio);
+ out << TQString("\"priv_torrent\" => \"%1\",\n").tqarg(stats.priv_torrent);
+ out << TQString("\"num_files\" => \"%1\",\n").tqarg((*i)->getNumFiles());
out << TQString("\"files\" => array(");
out << flush;
if (stats.multi_file_torrent)
@@ -138,11 +138,11 @@ namespace kt
out << ",\n";
TorrentFileInterface & file = (*i)->getTorrentFile(j);
- out << TQString("\"%1\" => array(\n").arg(j);
- out << TQString("\"name\" => \"%1\",\n").arg(file.getPath());
- out << TQString("\"size\" => \"%1\",\n").arg(KIO::convertSize(file.getSize()));
- out << TQString("\"perc_done\" => \"%1\",\n").arg(file.getDownloadPercentage());
- out << TQString("\"status\" => \"%1\"\n").arg(file.getPriority());
+ out << TQString("\"%1\" => array(\n").tqarg(j);
+ out << TQString("\"name\" => \"%1\",\n").tqarg(file.getPath());
+ out << TQString("\"size\" => \"%1\",\n").tqarg(KIO::convertSize(file.getSize()));
+ out << TQString("\"perc_done\" => \"%1\",\n").tqarg(file.getDownloadPercentage());
+ out << TQString("\"status\" => \"%1\"\n").tqarg(file.getPriority());
out << TQString(")\n");
out << flush;
}
@@ -156,7 +156,7 @@ namespace kt
}
/*Generate php code
- * function globalStatus()
+ * function globaltqStatus()
* {
* return array( ... );
* }
@@ -166,16 +166,16 @@ namespace kt
out << "function globalInfo()\n{\nreturn array(";
CurrentStats stats=core->getStats();
- out << TQString("\"download_speed\" => \"%1\",").arg(KBytesPerSecToString2(stats.download_speed / 1024.0));
- out << TQString("\"upload_speed\" => \"%1\",").arg(KBytesPerSecToString2(stats.upload_speed / 1024.0));
- out << TQString("\"bytes_downloaded\" => \"%1\",").arg(stats.bytes_downloaded);
- out << TQString("\"bytes_uploaded\" => \"%1\",").arg(stats.bytes_uploaded);
- out << TQString("\"max_download_speed\" => \"%1\",").arg(core->getMaxDownloadSpeed());
- out << TQString("\"max_upload_speed\" => \"%1\",").arg(core->getMaxUploadSpeed());
- out << TQString("\"max_downloads\" => \"%1\",").arg(Settings::maxDownloads());
- out << TQString("\"max_seeds\"=> \"%1\",").arg(Settings::maxSeeds());
- out << TQString("\"dht_support\" => \"%1\",").arg(Settings::dhtSupport());
- out << TQString("\"use_encryption\" => \"%1\"").arg(Settings::useEncryption());
+ out << TQString("\"download_speed\" => \"%1\",").tqarg(KBytesPerSecToString2(stats.download_speed / 1024.0));
+ out << TQString("\"upload_speed\" => \"%1\",").tqarg(KBytesPerSecToString2(stats.upload_speed / 1024.0));
+ out << TQString("\"bytes_downloaded\" => \"%1\",").tqarg(stats.bytes_downloaded);
+ out << TQString("\"bytes_uploaded\" => \"%1\",").tqarg(stats.bytes_uploaded);
+ out << TQString("\"max_download_speed\" => \"%1\",").tqarg(core->getMaxDownloadSpeed());
+ out << TQString("\"max_upload_speed\" => \"%1\",").tqarg(core->getMaxUploadSpeed());
+ out << TQString("\"max_downloads\" => \"%1\",").tqarg(Settings::maxDownloads());
+ out << TQString("\"max_seeds\"=> \"%1\",").tqarg(Settings::maxSeeds());
+ out << TQString("\"dht_support\" => \"%1\",").tqarg(Settings::dhtSupport());
+ out << TQString("\"use_encryption\" => \"%1\"").tqarg(Settings::useEncryption());
out << ");\n}\n";
}
diff --git a/plugins/webinterface/php_interface.h b/plugins/webinterface/php_interface.h
index acfd8c7..4995ae6 100644
--- a/plugins/webinterface/php_interface.h
+++ b/plugins/webinterface/php_interface.h
@@ -40,7 +40,7 @@ namespace kt
PhpCodeGenerator(CoreInterface *c);
virtual ~PhpCodeGenerator(){}
- void downloadStatus(TQTextStream & out);
+ void downloadtqStatus(TQTextStream & out);
void globalInfo(TQTextStream & out);
private:
CoreInterface *core;
diff --git a/plugins/webinterface/webinterfacepref.ui b/plugins/webinterface/webinterfacepref.ui
index 4927673..dca1d84 100644
--- a/plugins/webinterface/webinterfacepref.ui
+++ b/plugins/webinterface/webinterfacepref.ui
@@ -20,7 +20,7 @@
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>500</width>
<height>350</height>
@@ -46,7 +46,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -92,7 +92,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>54</width>
<height>21</height>
@@ -128,7 +128,7 @@
</widget>
<widget class="TQLayoutWidget" row="1" column="0">
<property name="name">
- <cstring>layout4</cstring>
+ <cstring>tqlayout4</cstring>
</property>
<hbox>
<property name="name">
@@ -151,7 +151,7 @@
</widget>
<widget class="TQLayoutWidget" row="3" column="0">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<grid>
<property name="name">
@@ -159,7 +159,7 @@
</property>
<widget class="TQLayoutWidget" row="0" column="0">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<hbox>
<property name="name">
@@ -192,7 +192,7 @@
</widget>
<widget class="TQLayoutWidget" row="2" column="0">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<hbox>
<property name="name">
diff --git a/plugins/webinterface/webinterfaceprefwidget.cpp b/plugins/webinterface/webinterfaceprefwidget.cpp
index 48ab0c7..6f4baed 100644
--- a/plugins/webinterface/webinterfaceprefwidget.cpp
+++ b/plugins/webinterface/webinterfaceprefwidget.cpp
@@ -113,23 +113,23 @@ void WebInterfacePrefWidget::changeLedState()
{
TQFileInfo fi(phpExecutablePath->url());
if(fi.isExecutable() && (fi.isFile() || fi.isSymLink())){
- TQToolTip::add( kled, i18n("%1 exists and it is executable").arg(phpExecutablePath->url()));
+ TQToolTip::add( kled, i18n("%1 exists and it is executable").tqarg(phpExecutablePath->url()));
kled->setColor(green);
}
else if (!fi.exists()){
- TQToolTip::add( kled, i18n("%1 does not exist").arg(phpExecutablePath->url()) );
+ TQToolTip::add( kled, i18n("%1 does not exist").tqarg(phpExecutablePath->url()) );
kled->setColor(red);
}
else if (!fi.isExecutable()){
- TQToolTip::add( kled, i18n("%1 is not executable").arg(phpExecutablePath->url()) );
+ TQToolTip::add( kled, i18n("%1 is not executable").tqarg(phpExecutablePath->url()) );
kled->setColor(red);
}
else if (fi.isDir()){
- TQToolTip::add( kled, i18n("%1 is a directory").arg(phpExecutablePath->url()) );
+ TQToolTip::add( kled, i18n("%1 is a directory").tqarg(phpExecutablePath->url()) );
kled->setColor(red);
}
else{
- TQToolTip::add( kled, i18n("%1 is not php executable path").arg(phpExecutablePath->url()) );
+ TQToolTip::add( kled, i18n("%1 is not php executable path").tqarg(phpExecutablePath->url()) );
kled->setColor(red);
}
}
diff --git a/plugins/webinterface/www/default/details.php b/plugins/webinterface/www/default/details.php
index a19d57e..92c8d48 100644
--- a/plugins/webinterface/www/default/details.php
+++ b/plugins/webinterface/www/default/details.php
@@ -1,5 +1,5 @@
<?php
-$stats=downloadStatus();
+$stats=downloadtqStatus();
$num_torrent=$_REQUEST['torrent'];
function cut_name_if_long($string)
@@ -61,7 +61,7 @@ $display_name=cut_name_if_long($stats[$num_torrent]['torrent_name']);
<tr>
<th>Actions</th>
<th>File</th>
- <th>Status</th>
+ <th>tqStatus</th>
<th>Size</th>
<th>Complete</th>
</tr>
diff --git a/plugins/webinterface/www/default/interface.php b/plugins/webinterface/www/default/interface.php
index 6432798..f34e651 100644
--- a/plugins/webinterface/www/default/interface.php
+++ b/plugins/webinterface/www/default/interface.php
@@ -1,6 +1,6 @@
<?php
$globalinfo=globalInfo();
-$stats=downloadStatus();
+$stats=downloadtqStatus();
function get_torrent_status_name($status_id)
{
@@ -18,7 +18,7 @@ function get_torrent_status_name($status_id)
10 => 'Checking Data'
);
if (array_key_exists($status_id, $table)) return $table[$status_id];
- else return 'Not supported Status';
+ else return 'Not supported tqStatus';
}
function generate_button_code($img, $alt, $href='')
@@ -104,7 +104,7 @@ function generate_button_code($img, $alt, $href='')
<tr>
<th>Actions</th>
<th>File</th>
- <th>Status</th>
+ <th>tqStatus</th>
<th>Downloaded</th>
<th>Size</th>
<th>Uploaded</th>
diff --git a/plugins/webinterface/www/default/wz_tooltip.js b/plugins/webinterface/www/default/wz_tooltip.js
index 1329a1b..0405498 100644
--- a/plugins/webinterface/www/default/wz_tooltip.js
+++ b/plugins/webinterface/www/default/wz_tooltip.js
@@ -300,7 +300,7 @@ function tt_DeAlt(t_tag)
{
if(t_tag.alt) t_tag.alt = "";
if(t_tag.title) t_tag.title = "";
- var t_c = t_tag.children || t_tag.childNodes || null;
+ var t_c = t_tag.tqchildren || t_tag.childNodes || null;
if(t_c)
{
for(var t_i = t_c.length; t_i; )
diff --git a/plugins/webinterface/www/mobile/interface.php b/plugins/webinterface/www/mobile/interface.php
index 57582de..3f5e88b 100644
--- a/plugins/webinterface/www/mobile/interface.php
+++ b/plugins/webinterface/www/mobile/interface.php
@@ -18,7 +18,7 @@
<table width="100%">
<tbody>
<?php
- $stats=downloadStatus();
+ $stats=downloadtqStatus();
$a = 0;
foreach ($stats as $torrent) {
echo "<tr>";
diff --git a/plugins/webinterface/www/mobile/torrent.php b/plugins/webinterface/www/mobile/torrent.php
index a1e451d..b041d3f 100644
--- a/plugins/webinterface/www/mobile/torrent.php
+++ b/plugins/webinterface/www/mobile/torrent.php
@@ -8,7 +8,7 @@
<tr>
<td align="center"><IMG src="ktorrentwebinterfacelogo.png" width="340" height="150" align="top" border="0"></td>
<?php
- $stats=downloadStatus();
+ $stats=downloadtqStatus();
$t=$stats[$_REQUEST['id']];
echo "<td><strong>ktorrent-><a href=\"interface.php\">transfers</a></strong>->{$t['torrent_name']}</td>";
echo "<td><a href=\"torrent.php?id={$_REQUEST['id']}\" >refresh</a></td>";