summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/sms/services
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:48:31 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-24 13:48:31 -0600
commitc48e769eb275917717e2b55eb869f7e559293ac8 (patch)
tree8f650b907e21c918b826f854dbe1c8174cc2c0c6 /kopete/protocols/sms/services
parent8011d84f483f3628f3f04ea5cb2c1c3c86b2dba7 (diff)
downloadtdenetwork-c48e769eb275917717e2b55eb869f7e559293ac8.tar.gz
tdenetwork-c48e769eb275917717e2b55eb869f7e559293ac8.zip
Rename KGlobal, KProcess, and KClipboard to avoid conflicts with KDE4
Diffstat (limited to 'kopete/protocols/sms/services')
-rw-r--r--kopete/protocols/sms/services/gsmlib.h2
-rw-r--r--kopete/protocols/sms/services/smsclient.cpp14
-rw-r--r--kopete/protocols/sms/services/smsclient.h6
-rw-r--r--kopete/protocols/sms/services/smssendprovider.cpp14
-rw-r--r--kopete/protocols/sms/services/smssendprovider.h6
5 files changed, 21 insertions, 21 deletions
diff --git a/kopete/protocols/sms/services/gsmlib.h b/kopete/protocols/sms/services/gsmlib.h
index c49e26b7..5f7b9257 100644
--- a/kopete/protocols/sms/services/gsmlib.h
+++ b/kopete/protocols/sms/services/gsmlib.h
@@ -40,7 +40,7 @@
class GSMLibPrefsUI;
class SMSContact;
class TQListViewItem;
-class KProcess;
+class TDEProcess;
class GSMLibThread;
class GSMLib : public SMSService
diff --git a/kopete/protocols/sms/services/smsclient.cpp b/kopete/protocols/sms/services/smsclient.cpp
index 984e8435..9a1898a8 100644
--- a/kopete/protocols/sms/services/smsclient.cpp
+++ b/kopete/protocols/sms/services/smsclient.cpp
@@ -71,7 +71,7 @@ void SMSClient::send(const Kopete::Message& msg)
if (programName.isNull())
programName = "/usr/bin/sms_client";
- KProcess* p = new KProcess;
+ TDEProcess* p = new TDEProcess;
TQString message = msg.plainBody();
TQString nr = msg.to().first()->contactId();
@@ -80,11 +80,11 @@ void SMSClient::send(const Kopete::Message& msg)
*p << provider + ":" + nr;
*p << message;
- TQObject::connect(p, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotSendFinished(KProcess*)));
- TQObject::connect(p, TQT_SIGNAL(receivedStdout(KProcess*, char*, int)), this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
- TQObject::connect(p, TQT_SIGNAL(receivedStderr(KProcess*, char*, int)), this, TQT_SLOT(slotReceivedOutput(KProcess*, char*, int)));
+ TQObject::connect(p, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(slotSendFinished(TDEProcess*)));
+ TQObject::connect(p, TQT_SIGNAL(receivedStdout(TDEProcess*, char*, int)), this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
+ TQObject::connect(p, TQT_SIGNAL(receivedStderr(TDEProcess*, char*, int)), this, TQT_SLOT(slotReceivedOutput(TDEProcess*, char*, int)));
- p->start(KProcess::Block, KProcess::AllOutput);
+ p->start(TDEProcess::Block, TDEProcess::AllOutput);
}
TQWidget* SMSClient::configureWidget(TQWidget* parent)
@@ -152,14 +152,14 @@ TQStringList SMSClient::providers()
return p;
}
-void SMSClient::slotReceivedOutput(KProcess*, char *buffer, int buflen)
+void SMSClient::slotReceivedOutput(TDEProcess*, char *buffer, int buflen)
{
TQStringList lines = TQStringList::split("\n", TQString::fromLocal8Bit(buffer, buflen));
for (TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it)
output.append(*it);
}
-void SMSClient::slotSendFinished(KProcess* p)
+void SMSClient::slotSendFinished(TDEProcess* p)
{
if (p->exitStatus() == 0)
emit messageSent(m_msg);
diff --git a/kopete/protocols/sms/services/smsclient.h b/kopete/protocols/sms/services/smsclient.h
index 988565b1..ffb146c6 100644
--- a/kopete/protocols/sms/services/smsclient.h
+++ b/kopete/protocols/sms/services/smsclient.h
@@ -26,7 +26,7 @@
class SMSClientPrefsUI;
class SMSContact;
class TQListViewItem;
-class KProcess;
+class TDEProcess;
class SMSClient : public SMSService
{
@@ -46,8 +46,8 @@ public slots:
void savePreferences();
private slots:
- void slotReceivedOutput(KProcess*, char *buffer, int buflen);
- void slotSendFinished(KProcess* p);
+ void slotReceivedOutput(TDEProcess*, char *buffer, int buflen);
+ void slotSendFinished(TDEProcess* p);
signals:
void messageSent(const Kopete::Message &);
diff --git a/kopete/protocols/sms/services/smssendprovider.cpp b/kopete/protocols/sms/services/smssendprovider.cpp
index 8feb94a9..e2095d25 100644
--- a/kopete/protocols/sms/services/smssendprovider.cpp
+++ b/kopete/protocols/sms/services/smssendprovider.cpp
@@ -237,21 +237,21 @@ void SMSSendProvider::send(const Kopete::Message& msg)
values[messagePos] = message;
values[telPos] = nr;
- KProcess* p = new KProcess;
+ TDEProcess* p = new TDEProcess;
kdWarning( 14160 ) << "Executing " << TQString("%1/bin/smssend").arg(prefix) << " \"" << provider << "\" " << values.join("\" \"") << "\"" << endl;
*p << TQString("%1/bin/smssend").arg(prefix) << provider << values;
output = "";
- connect( p, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotSendFinished(KProcess *)));
- connect( p, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)));
-// connect( p, TQT_SIGNAL(receivedStderr(KProcess *, char *, int)), this, TQT_SLOT(slotReceivedOutput(KProcess *, char *, int)));
+ connect( p, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(slotSendFinished(TDEProcess *)));
+ connect( p, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(slotReceivedOutput(TDEProcess *, char *, int)));
+// connect( p, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)), this, TQT_SLOT(slotReceivedOutput(TDEProcess *, char *, int)));
- p->start(KProcess::NotifyOnExit, KProcess::AllOutput);
+ p->start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
}
-void SMSSendProvider::slotSendFinished(KProcess *p)
+void SMSSendProvider::slotSendFinished(TDEProcess *p)
{
kdWarning( 14160 ) << k_funcinfo << "this = " << this << ", es = " << p->exitStatus() << ", p = " << p << " (should be non-zero!!)" << endl;
if (p->exitStatus() == 0)
@@ -262,7 +262,7 @@ void SMSSendProvider::slotSendFinished(KProcess *p)
p->deleteLater();
}
-void SMSSendProvider::slotReceivedOutput(KProcess *, char *buffer, int buflen)
+void SMSSendProvider::slotReceivedOutput(TDEProcess *, char *buffer, int buflen)
{
// TQStringList lines = TQStringList::split("\n", TQString::fromLocal8Bit(buffer, buflen));
// for (TQStringList::Iterator it = lines.begin(); it != lines.end(); ++it)
diff --git a/kopete/protocols/sms/services/smssendprovider.h b/kopete/protocols/sms/services/smssendprovider.h
index 97d60542..fbe238e1 100644
--- a/kopete/protocols/sms/services/smssendprovider.h
+++ b/kopete/protocols/sms/services/smssendprovider.h
@@ -29,7 +29,7 @@
#include "smsaccount.h"
-class KProcess;
+class TDEProcess;
namespace Kopete { class Account; }
class SMSContact;
@@ -54,8 +54,8 @@ public:
int maxSize();
private slots:
- void slotReceivedOutput(KProcess*, char *buffer, int buflen);
- void slotSendFinished(KProcess*);
+ void slotReceivedOutput(TDEProcess*, char *buffer, int buflen);
+ void slotSendFinished(TDEProcess*);
private:
TQStringList names;
TQStringList descriptions;