From ef41ffcd0d5ac06c867c98f4e6395f504db61041 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Mon, 16 Dec 2024 13:36:02 +0900 Subject: Use TDEProcIO class Signed-off-by: Michele Calgaro --- kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp | 6 +++--- kopete/protocols/winpopup/libwinpopup/libwinpopup.h | 4 ++-- kopete/protocols/winpopup/wpuserinfo.cpp | 6 +++--- kopete/protocols/winpopup/wpuserinfo.h | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) (limited to 'kopete/protocols/winpopup') diff --git a/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp b/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp index 138f2957..e9859834 100644 --- a/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp +++ b/kopete/protocols/winpopup/libwinpopup/libwinpopup.cpp @@ -159,10 +159,10 @@ void WinPopupLib::startReadProcess(const TQString &Host) currentGroup = TQString(); // for Samba 3 - KProcIO *reader = new KProcIO; + TDEProcIO *reader = new TDEProcIO; *reader << smbClientBin << "-N" << "-E" << "-g" << "-L" << Host << "-"; - connect(reader, TQ_SIGNAL(readReady(KProcIO *)), this, TQ_SLOT(slotReadProcessReady(KProcIO *))); + connect(reader, TQ_SIGNAL(readReady(TDEProcIO *)), this, TQ_SLOT(slotReadProcessReady(TDEProcIO *))); connect(reader, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(slotReadProcessExited(TDEProcess *))); if (!reader->start(TDEProcess::NotifyOnExit, true)) { @@ -171,7 +171,7 @@ void WinPopupLib::startReadProcess(const TQString &Host) } } -void WinPopupLib::slotReadProcessReady(KProcIO *r) +void WinPopupLib::slotReadProcessReady(TDEProcIO *r) { TQString tmpLine = TQString(); TQRegExp group("^Workgroup\\|(.*)\\|(.*)$"), host("^Server\\|(.*)\\|(.*)$"), diff --git a/kopete/protocols/winpopup/libwinpopup/libwinpopup.h b/kopete/protocols/winpopup/libwinpopup/libwinpopup.h index 91887308..ca7beecf 100644 --- a/kopete/protocols/winpopup/libwinpopup/libwinpopup.h +++ b/kopete/protocols/winpopup/libwinpopup/libwinpopup.h @@ -26,7 +26,7 @@ #include // KDE Includes -#include +#include #include const TQString WP_POPUP_DIR = TQString::fromLatin1("/var/lib/winpopup"); @@ -76,7 +76,7 @@ private: private slots: void slotUpdateGroupData(); void startReadProcess(const TQString &Host); - void slotReadProcessReady(KProcIO *r); + void slotReadProcessReady(TDEProcIO *r); void slotReadProcessExited(TDEProcess *r); void slotSendProcessExited(TDEProcess *p); void slotStartDirLister(); diff --git a/kopete/protocols/winpopup/wpuserinfo.cpp b/kopete/protocols/winpopup/wpuserinfo.cpp index 32fc6837..bfa05fcf 100644 --- a/kopete/protocols/winpopup/wpuserinfo.cpp +++ b/kopete/protocols/winpopup/wpuserinfo.cpp @@ -62,10 +62,10 @@ void WPUserInfo::startDetailsProcess(const TQString &host) TDEGlobal::config()->setGroup("WinPopup"); TQString theSMBClientPath = TDEGlobal::config()->readEntry("SMBClientPath", "/usr/bin/smbclient"); - KProcIO *details = new KProcIO; + TDEProcIO *details = new TDEProcIO; *details << theSMBClientPath << "-N" << "-E" << "-g" << "-L" << host << "-"; - connect(details, TQ_SIGNAL(readReady(KProcIO *)), this, TQ_SLOT(slotDetailsProcessReady(KProcIO *))); + connect(details, TQ_SIGNAL(readReady(TDEProcIO *)), this, TQ_SLOT(slotDetailsProcessReady(TDEProcIO *))); connect(details, TQ_SIGNAL(processExited(TDEProcess *)), this, TQ_SLOT(slotDetailsProcessExited(TDEProcess *))); if (!details->start(TDEProcess::NotifyOnExit, TDEProcess::Stderr)) { @@ -74,7 +74,7 @@ void WPUserInfo::startDetailsProcess(const TQString &host) } } -void WPUserInfo::slotDetailsProcessReady(KProcIO *d) +void WPUserInfo::slotDetailsProcessReady(TDEProcIO *d) { TQString tmpLine = TQString(); TQRegExp info("^Domain=\\[(.*)\\]\\sOS=\\[(.*)\\]\\sServer=\\[(.*)\\]$"), host("^Server\\|(.*)\\|(.*)$"); diff --git a/kopete/protocols/winpopup/wpuserinfo.h b/kopete/protocols/winpopup/wpuserinfo.h index 62122e50..6be73929 100644 --- a/kopete/protocols/winpopup/wpuserinfo.h +++ b/kopete/protocols/winpopup/wpuserinfo.h @@ -23,7 +23,7 @@ // KDE Includes #include -#include +#include // Local Includes #include "wpuserinfowidget.h" @@ -42,7 +42,7 @@ class WPUserInfo : public KDialogBase void startDetailsProcess(const TQString &host); private slots: - void slotDetailsProcessReady(KProcIO *d); + void slotDetailsProcessReady(TDEProcIO *d); void slotDetailsProcessExited(TDEProcess *d); void slotCloseClicked(); -- cgit v1.2.1