From a90eb215f53c95d81f95b32255098066d90556d9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:13:41 -0600 Subject: Rename old tq methods that no longer need a unique name --- plugins/webinterface/httpserver.cpp | 8 ++++---- plugins/webinterface/php_handler.cpp | 2 +- plugins/webinterface/php_interface.cpp | 6 +++--- plugins/webinterface/php_interface.h | 2 +- plugins/webinterface/webinterfacepref.ui | 4 ++-- plugins/webinterface/www/default/details.php | 4 ++-- plugins/webinterface/www/default/interface.php | 6 +++--- plugins/webinterface/www/mobile/interface.php | 2 +- plugins/webinterface/www/mobile/torrent.php | 2 +- 9 files changed, 18 insertions(+), 18 deletions(-) (limited to 'plugins/webinterface') diff --git a/plugins/webinterface/httpserver.cpp b/plugins/webinterface/httpserver.cpp index d04449b..915e28f 100644 --- a/plugins/webinterface/httpserver.cpp +++ b/plugins/webinterface/httpserver.cpp @@ -248,7 +248,7 @@ namespace kt 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::tqcurrentDateTime(Qt::UTC),false)); + hdr.setValue("Date",DateTimeToString(TQDateTime::currentDateTime(Qt::UTC),false)); hdr.setValue("Content-Type",content_type); hdr.setValue("Connection","keep-alive"); if (with_session_info && session.sessionId && session.logged_in) @@ -328,7 +328,7 @@ namespace kt if (path.endsWith("login.html")) { // clear cookie in case of login page - TQDateTime dt = TQDateTime::tqcurrentDateTime().addDays(-1); + TQDateTime dt = TQDateTime::currentDateTime().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::tqcurrentDateTime(Qt::UTC).addSecs(3600),false)); + rhdr.setValue("Expires",DateTimeToString(TQDateTime::currentDateTime(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::tqcurrentDateTime(Qt::UTC).addSecs(3600),false)); + rhdr.setValue("Expires",DateTimeToString(TQDateTime::currentDateTime(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 87c8acd..9b5ac85 100644 --- a/plugins/webinterface/php_handler.cpp +++ b/plugins/webinterface/php_handler.cpp @@ -76,7 +76,7 @@ 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->downloadtqStatus(ts); + php_i->downloadStatus(ts); TQMap::const_iterator it; diff --git a/plugins/webinterface/php_interface.cpp b/plugins/webinterface/php_interface.cpp index 9e2a577..e98a309 100644 --- a/plugins/webinterface/php_interface.cpp +++ b/plugins/webinterface/php_interface.cpp @@ -72,12 +72,12 @@ namespace kt } /*Generate php code - * function downloadtqStatus() + * function downloadStatus() * { * return array( ... ); * } */ - void PhpCodeGenerator::downloadtqStatus(TQTextStream & out) + void PhpCodeGenerator::downloadStatus(TQTextStream & out) { TorrentStats stats; //Priority file_priority; @@ -156,7 +156,7 @@ namespace kt } /*Generate php code - * function globaltqStatus() + * function globalStatus() * { * return array( ... ); * } diff --git a/plugins/webinterface/php_interface.h b/plugins/webinterface/php_interface.h index 4995ae6..acfd8c7 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 downloadtqStatus(TQTextStream & out); + void downloadStatus(TQTextStream & out); void globalInfo(TQTextStream & out); private: CoreInterface *core; diff --git a/plugins/webinterface/webinterfacepref.ui b/plugins/webinterface/webinterfacepref.ui index dca1d84..a36f7f8 100644 --- a/plugins/webinterface/webinterfacepref.ui +++ b/plugins/webinterface/webinterfacepref.ui @@ -20,7 +20,7 @@ 0 - + 500 350 @@ -92,7 +92,7 @@ Expanding - + 54 21 diff --git a/plugins/webinterface/www/default/details.php b/plugins/webinterface/www/default/details.php index 92c8d48..a19d57e 100644 --- a/plugins/webinterface/www/default/details.php +++ b/plugins/webinterface/www/default/details.php @@ -1,5 +1,5 @@ Actions File - tqStatus + Status Size Complete diff --git a/plugins/webinterface/www/default/interface.php b/plugins/webinterface/www/default/interface.php index f34e651..6432798 100644 --- a/plugins/webinterface/www/default/interface.php +++ b/plugins/webinterface/www/default/interface.php @@ -1,6 +1,6 @@ 'Checking Data' ); if (array_key_exists($status_id, $table)) return $table[$status_id]; - else return 'Not supported tqStatus'; + else return 'Not supported Status'; } function generate_button_code($img, $alt, $href='') @@ -104,7 +104,7 @@ function generate_button_code($img, $alt, $href='') Actions File - tqStatus + Status Downloaded Size Uploaded diff --git a/plugins/webinterface/www/mobile/interface.php b/plugins/webinterface/www/mobile/interface.php index 3f5e88b..57582de 100644 --- a/plugins/webinterface/www/mobile/interface.php +++ b/plugins/webinterface/www/mobile/interface.php @@ -18,7 +18,7 @@ "; diff --git a/plugins/webinterface/www/mobile/torrent.php b/plugins/webinterface/www/mobile/torrent.php index b041d3f..a1e451d 100644 --- a/plugins/webinterface/www/mobile/torrent.php +++ b/plugins/webinterface/www/mobile/torrent.php @@ -8,7 +8,7 @@ ktorrent->transfers->{$t['torrent_name']}"; echo ""; -- cgit v1.2.3
refresh