summaryrefslogtreecommitdiffstats
path: root/src/aptcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aptcache.cpp')
-rw-r--r--src/aptcache.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/aptcache.cpp b/src/aptcache.cpp
index f864f2d..f994051 100644
--- a/src/aptcache.cpp
+++ b/src/aptcache.cpp
@@ -25,10 +25,10 @@
AptCache::AptCache()
{
- connect(&m_process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)),
- this, TQT_SLOT(receivedStdErr(KProcess*, char*, int )));
- connect(&m_process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)),
- this, TQT_SLOT(receivedStdOut(KProcess*, char*, int )));
+ connect(&m_process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)),
+ this, TQT_SLOT(receivedStdErr(TDEProcess*, char*, int )));
+ connect(&m_process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)),
+ this, TQT_SLOT(receivedStdOut(TDEProcess*, char*, int )));
}
AptCache::~AptCache() {}
@@ -49,7 +49,7 @@ static TQStringList received(TQString& buffer, char* input, int input_len)
return ret;
}
-void AptCache::receivedStdErr( KProcess * /*process*/, char * buffer, int len )
+void AptCache::receivedStdErr( TDEProcess * /*process*/, char * buffer, int len )
{
static TQRegExp rx_we("(W|E):\\s+(.*)");
@@ -67,7 +67,7 @@ void AptCache::receivedStdErr( KProcess * /*process*/, char * buffer, int len )
}
}
}
-void AptCache::receivedStdOut( KProcess * /*process*/, char * buffer, int len )
+void AptCache::receivedStdOut( TDEProcess * /*process*/, char * buffer, int len )
{
TQStringList lines = received(m_received_out, buffer, len);
(this->*m_receive)(lines);
@@ -92,7 +92,7 @@ bool AptCache::search(const TQString& expression)
m_process << "apt-cache" << "search";
m_process << TQStringList::split(" ", expression);
m_receive = &AptCache::receiveSearch;
- return m_process.start(KProcess::Block, KProcess::Stdout );
+ return m_process.start(TDEProcess::Block, TDEProcess::Stdout );
}
void AptCache::receiveSearch(const TQStringList& lines)
@@ -124,7 +124,7 @@ bool AptCache::show(const TQString& package)
m_process.setEnvironment("LANGUAGE", "C");
m_process << "apt-cache" << "show" << package;
m_receive = &AptCache::receiveShow;
- return m_process.start(KProcess::Block, KProcess::Stdout );
+ return m_process.start(TDEProcess::Block, TDEProcess::Stdout );
}
void AptCache::receiveShow(const TQStringList& lines)
@@ -240,7 +240,7 @@ bool AptCache::policy( const TQString & package )
m_process.setEnvironment("LANGUAGE", "C");
m_process << "apt-cache" << "policy" << package;
m_receive = &AptCache::receivePolicy;
- return m_process.start(KProcess::Block, KProcess::Stdout );
+ return m_process.start(TDEProcess::Block, TDEProcess::Stdout );
}
void AptCache::receivePolicy(const TQStringList& lines)