From 6c1d52c8248adb9189c944a28efde52330e99b66 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 24 Jan 2013 13:21:28 -0600 Subject: Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4 --- libkgpgfile/kgpgfile.cpp | 30 +++++++++++++++--------------- libkgpgfile/kgpgfile.h | 10 +++++----- 2 files changed, 20 insertions(+), 20 deletions(-) (limited to 'libkgpgfile') diff --git a/libkgpgfile/kgpgfile.cpp b/libkgpgfile/kgpgfile.cpp index 0cf449f..50f65bd 100644 --- a/libkgpgfile/kgpgfile.cpp +++ b/libkgpgfile/kgpgfile.cpp @@ -225,7 +225,7 @@ bool KGPGFile::open(int mode, const TQString& cmdArgs, bool skipPasswd) bool KGPGFile::startProcess(const TQStringList& args) { - // now start the KProcess with GPG + // now start the TDEProcess with GPG m_process = new KShellProcess(); *m_process << "gpg"; *m_process << args; @@ -233,19 +233,19 @@ bool KGPGFile::startProcess(const TQStringList& args) // TQString arglist = args.join(":"); // tqDebug("gpg '%s'", arglist.data()); - connect(m_process, TQT_SIGNAL(processExited(KProcess *)), - this, TQT_SLOT(slotGPGExited(KProcess *))); + connect(m_process, TQT_SIGNAL(processExited(TDEProcess *)), + this, TQT_SLOT(slotGPGExited(TDEProcess *))); - connect(m_process, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), - this, TQT_SLOT(slotDataFromGPG(KProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), + this, TQT_SLOT(slotDataFromGPG(TDEProcess*, char*, int))); - connect(m_process, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), - this, TQT_SLOT(slotErrorFromGPG(KProcess*, char*, int))); + connect(m_process, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), + this, TQT_SLOT(slotErrorFromGPG(TDEProcess*, char*, int))); - connect(m_process, TQT_SIGNAL(wroteStdin(KProcess *)), - this, TQT_SLOT(slotSendDataToGPG(KProcess *))); + connect(m_process, TQT_SIGNAL(wroteStdin(TDEProcess *)), + this, TQT_SLOT(slotSendDataToGPG(TDEProcess *))); - if(!m_process->start(KProcess::NotifyOnExit, (KProcess::Communication)(KProcess::Stdin|KProcess::Stdout|KProcess::Stderr))) { + if(!m_process->start(TDEProcess::NotifyOnExit, (TDEProcess::Communication)(TDEProcess::Stdin|TDEProcess::Stdout|TDEProcess::Stderr))) { // tqDebug("m_process->start failed"); delete m_process; m_process = 0; @@ -265,7 +265,7 @@ void KGPGFile::close(void) return; } - // finish the KProcess and clean up things + // finish the TDEProcess and clean up things if(m_process) { if(isWritable()) { // tqDebug("Finish writing"); @@ -437,7 +437,7 @@ TQByteArray KGPGFile::readAll(void) return ba; } -void KGPGFile::slotGPGExited(KProcess* ) +void KGPGFile::slotGPGExited(TDEProcess* ) { // tqDebug("GPG finished"); if(m_process) { @@ -458,7 +458,7 @@ void KGPGFile::slotGPGExited(KProcess* ) } } -void KGPGFile::slotDataFromGPG(KProcess* proc, char* buf, int len) +void KGPGFile::slotDataFromGPG(TDEProcess* proc, char* buf, int len) { // tqDebug("Received %d bytes on stdout", len); @@ -490,7 +490,7 @@ void KGPGFile::slotDataFromGPG(KProcess* proc, char* buf, int len) // tqDebug("end slotDataFromGPG"); } -void KGPGFile::slotErrorFromGPG(KProcess *, char *buf, int len) +void KGPGFile::slotErrorFromGPG(TDEProcess *, char *buf, int len) { // tqDebug("Received %d bytes on stderr", len); TQCString msg; @@ -499,7 +499,7 @@ void KGPGFile::slotErrorFromGPG(KProcess *, char *buf, int len) msg.resetRawData(buf, len); } -void KGPGFile::slotSendDataToGPG(KProcess *) +void KGPGFile::slotSendDataToGPG(TDEProcess *) { // tqDebug("wrote stdin"); if(m_needExitLoop) { diff --git a/libkgpgfile/kgpgfile.h b/libkgpgfile/kgpgfile.h index 55de7e0..ab28968 100644 --- a/libkgpgfile/kgpgfile.h +++ b/libkgpgfile/kgpgfile.h @@ -32,7 +32,7 @@ */ class KShellProcess; -class KProcess; +class TDEProcess; /** * A class for reading and writing data to/from an @@ -169,10 +169,10 @@ public: #endif protected slots: - void slotGPGExited(KProcess *); - void slotDataFromGPG(KProcess *, char *buf, int len); - void slotErrorFromGPG(KProcess *, char *buf, int len); - void slotSendDataToGPG(KProcess *); + void slotGPGExited(TDEProcess *); + void slotDataFromGPG(TDEProcess *, char *buf, int len); + void slotErrorFromGPG(TDEProcess *, char *buf, int len); + void slotSendDataToGPG(TDEProcess *); private: void init(void); -- cgit v1.2.1