|
|
|
@ -132,8 +132,8 @@ TQString AptProtocol::make_html_tail(const TQString& note, bool with_form)
|
|
|
|
|
ret = "<hr>\n" + make_html_form();
|
|
|
|
|
|
|
|
|
|
if (!note.isEmpty())
|
|
|
|
|
ret += html_tail.arg(note + ". " + i18n("Page generated by kio_apt."));
|
|
|
|
|
else ret += html_tail.arg(i18n("Page generated by kio_apt."));
|
|
|
|
|
ret += html_tail.arg(note + ". " + i18n("Page generated by tdeio_apt."));
|
|
|
|
|
else ret += html_tail.arg(i18n("Page generated by tdeio_apt."));
|
|
|
|
|
|
|
|
|
|
return ret;
|
|
|
|
|
}
|
|
|
|
@ -221,17 +221,17 @@ TQString AptProtocol::make_html_form() const
|
|
|
|
|
/****************************************************************************************/
|
|
|
|
|
|
|
|
|
|
AptProtocol::AptProtocol( const TQCString &pool_socket, const TQCString &app_socket )
|
|
|
|
|
: SlaveBase( "kio_apt", pool_socket, app_socket ),
|
|
|
|
|
: SlaveBase( "tdeio_apt", pool_socket, app_socket ),
|
|
|
|
|
m_adept_batch(0), m_parser(0)
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
KStandardDirs* dirs = TDEGlobal::dirs();
|
|
|
|
|
m_stylesheet = dirs->findResource( "data", "kio_apt/tdeio_apt.css" );
|
|
|
|
|
m_stylesheet = dirs->findResource( "data", "tdeio_apt/tdeio_apt.css" );
|
|
|
|
|
|
|
|
|
|
m_logo = dirs->findResource( "data", "kio_apt/"
|
|
|
|
|
m_logo = dirs->findResource( "data", "tdeio_apt/"
|
|
|
|
|
+ TDEGlobal::config() -> readEntryUntranslated("logo", "kdedeb_logo.png" ) );
|
|
|
|
|
|
|
|
|
|
m_header_background = dirs->findResource( "data", "kio_apt/"
|
|
|
|
|
m_header_background = dirs->findResource( "data", "tdeio_apt/"
|
|
|
|
|
+ TDEGlobal::config() -> readEntryUntranslated("background", "headerbg.png" ) );
|
|
|
|
|
|
|
|
|
|
m_logo_alt = TDEGlobal::config() -> readEntryUntranslated("alt_tag", i18n("KDE on Debian") );
|
|
|
|
@ -929,10 +929,10 @@ KURL AptProtocol::buildURL( const KURL& query ) const
|
|
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
int kdemain( int argc, char **argv ) {
|
|
|
|
|
TDEInstance instance( "kio_apt" );
|
|
|
|
|
TDEInstance instance( "tdeio_apt" );
|
|
|
|
|
|
|
|
|
|
if ( argc != 4 ) {
|
|
|
|
|
kdDebug( DEBUG_ZONE ) << "Usage: kio_apt protocol domain-socket1 domain-socket2" << endl;
|
|
|
|
|
kdDebug( DEBUG_ZONE ) << "Usage: tdeio_apt protocol domain-socket1 domain-socket2" << endl;
|
|
|
|
|
exit ( -1 );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|