summaryrefslogtreecommitdiffstats
path: root/src/aptcache.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:20:56 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:20:56 -0600
commit19e4c89d109f0baa82f6f37637939c8a85422e5e (patch)
tree088026f62497c9baecc003c3a862bcc9b8be63e5 /src/aptcache.cpp
parent688a06c566c4a8c8de5e11ad1b8a484e12adc270 (diff)
downloadtdeio-apt-19e4c89d109f0baa82f6f37637939c8a85422e5e.tar.gz
tdeio-apt-19e4c89d109f0baa82f6f37637939c8a85422e5e.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
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)