summaryrefslogtreecommitdiffstats
path: root/src/apt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/apt.cpp')
-rw-r--r--src/apt.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/apt.cpp b/src/apt.cpp
index fc43cae..98b89f5 100644
--- a/src/apt.cpp
+++ b/src/apt.cpp
@@ -181,12 +181,12 @@ static TQString make_extform_cmd(bool ext_form, const KURL& query)
TQString AptProtocol::make_html_form() const
{
bool can_fsearch = false;
- bool ext_form = KGlobal::config() -> readBoolEntry("extended_form", true);
+ bool ext_form = TDEGlobal::config() -> readBoolEntry("extended_form", true);
// Only in config-file. Needed for some dpkg-based distros that are not Debian
can_fsearch = can_searchfile(true);
bool online = false;
- bool online_form = KGlobal::config() -> readBoolEntry("online_form", true);
+ bool online_form = TDEGlobal::config() -> readBoolEntry("online_form", true);
if (m_adept_batch)
online = online_form && (!m_internal) && ext_form && m_adept_batch -> capabilities(PackageManager::ONLINE);
@@ -225,16 +225,16 @@ AptProtocol::AptProtocol( const TQCString &pool_socket, const TQCString &app_soc
m_adept_batch(0), m_parser(0)
{
- KStandardDirs* dirs = KGlobal::dirs();
+ KStandardDirs* dirs = TDEGlobal::dirs();
m_stylesheet = dirs->findResource( "data", "kio_apt/kio_apt.css" );
m_logo = dirs->findResource( "data", "kio_apt/"
- + KGlobal::config() -> readEntryUntranslated("logo", "kdedeb_logo.png" ) );
+ + TDEGlobal::config() -> readEntryUntranslated("logo", "kdedeb_logo.png" ) );
m_header_background = dirs->findResource( "data", "kio_apt/"
- + KGlobal::config() -> readEntryUntranslated("background", "headerbg.png" ) );
+ + TDEGlobal::config() -> readEntryUntranslated("background", "headerbg.png" ) );
- m_logo_alt = KGlobal::config() -> readEntryUntranslated("alt_tag", i18n("KDE on Debian") );
+ m_logo_alt = TDEGlobal::config() -> readEntryUntranslated("alt_tag", i18n("KDE on Debian") );
connect(&m_process, TQT_SIGNAL(token(const TQString&, const TQString&)),
this, TQT_SLOT(token_dispatch(const TQString&, const TQString&)));
@@ -397,7 +397,7 @@ void AptProtocol::get ( const KURL& url )
if (!opt.isNull())
{
bool ext_form = (opt != "0");
- KGlobal::config() -> writeEntry("extended_form", ext_form);
+ TDEGlobal::config() -> writeEntry("extended_form", ext_form);
}
// Enable install/remove/upgrade/...
@@ -412,7 +412,7 @@ void AptProtocol::get ( const KURL& url )
m_internal = (opt == "1");
// Sync the config (must use kcfg sometime :p)
- KGlobal::config() -> sync();
+ TDEGlobal::config() -> sync();
if (command.isEmpty() || query.isEmpty())
{
@@ -535,8 +535,8 @@ void AptProtocol::show(const TQString& package, const QueryOptions& options)
if (options.contains("show_filelist"))
{
- KGlobal::config() -> writeEntry("show_filelist", options["show_filelist"] != "0");
- KGlobal::config() -> sync();
+ TDEGlobal::config() -> writeEntry("show_filelist", options["show_filelist"] != "0");
+ TDEGlobal::config() -> sync();
}
mimeType("text/html");
@@ -601,7 +601,7 @@ void AptProtocol::show(const TQString& package, const QueryOptions& options)
/** Add file list (if enabled) */
- bool show_filelist = KGlobal::config() -> readBoolEntry("show_filelist", false);
+ bool show_filelist = TDEGlobal::config() -> readBoolEntry("show_filelist", false);
if ( show_filelist )
{
if (can_listfiles(!installed_version.isEmpty()))
@@ -837,7 +837,7 @@ void AptProtocol::adept_batch(const TQString& query, const QueryOptions& options
p = new KShellProcess;
p->clearArguments();
*p << command;
- p->start( KProcess::Block, KProcess::All );
+ p->start( TDEProcess::Block, TDEProcess::All );
for(int i = 0; i != pcount; ++i)
{