summaryrefslogtreecommitdiffstats
path: root/kopete/protocols/winpopup/wpuserinfo.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kopete/protocols/winpopup/wpuserinfo.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kopete/protocols/winpopup/wpuserinfo.cpp')
-rw-r--r--kopete/protocols/winpopup/wpuserinfo.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kopete/protocols/winpopup/wpuserinfo.cpp b/kopete/protocols/winpopup/wpuserinfo.cpp
index 7e4348d4..e50805f5 100644
--- a/kopete/protocols/winpopup/wpuserinfo.cpp
+++ b/kopete/protocols/winpopup/wpuserinfo.cpp
@@ -19,7 +19,7 @@
***************************************************************************/
// QT Includes
-#include <qregexp.h>
+#include <tqregexp.h>
// KDE Includes
#include <kdebug.h>
@@ -32,8 +32,8 @@
#include "wpaccount.h"
#include "wpcontact.h"
-WPUserInfo::WPUserInfo( WPContact *contact, WPAccount */*account*/, QWidget *parent, const char* name )
- : KDialogBase( parent, name, false, QString::null, Close, Close, false ), m_contact(contact),
+WPUserInfo::WPUserInfo( WPContact *contact, WPAccount */*account*/, TQWidget *parent, const char* name )
+ : KDialogBase( parent, name, false, TQString::null, Close, Close, false ), m_contact(contact),
Comment(i18n("N/A")), Workgroup(i18n("N/A")), OS(i18n("N/A")), Software(i18n("N/A"))
{
// kdDebug( 14170 ) << k_funcinfo << endl;
@@ -50,23 +50,23 @@ WPUserInfo::WPUserInfo( WPContact *contact, WPAccount */*account*/, QWidget *par
m_mainWidget->sOS->setText(i18n("Looking"));
m_mainWidget->sServer->setText(i18n("Looking"));
- connect( this, SIGNAL( closeClicked() ), this, SLOT( slotCloseClicked() ) );
+ connect( this, TQT_SIGNAL( closeClicked() ), this, TQT_SLOT( slotCloseClicked() ) );
startDetailsProcess(m_contact->contactId());
}
// I decided to do this direct here to avoid "Handstände" with signals and stuff
// if we would do this in libwinpopup. GF
-void WPUserInfo::startDetailsProcess(const QString &host)
+void WPUserInfo::startDetailsProcess(const TQString &host)
{
KGlobal::config()->setGroup("WinPopup");
- QString theSMBClientPath = KGlobal::config()->readEntry("SMBClientPath", "/usr/bin/smbclient");
+ TQString theSMBClientPath = KGlobal::config()->readEntry("SMBClientPath", "/usr/bin/smbclient");
KProcIO *details = new KProcIO;
*details << theSMBClientPath << "-N" << "-E" << "-g" << "-L" << host << "-";
- connect(details, SIGNAL(readReady(KProcIO *)), this, SLOT(slotDetailsProcessReady(KProcIO *)));
- connect(details, SIGNAL(processExited(KProcess *)), this, SLOT(slotDetailsProcessExited(KProcess *)));
+ connect(details, TQT_SIGNAL(readReady(KProcIO *)), this, TQT_SLOT(slotDetailsProcessReady(KProcIO *)));
+ connect(details, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(slotDetailsProcessExited(KProcess *)));
if (!details->start(KProcess::NotifyOnExit, KProcess::Stderr)) {
slotDetailsProcessExited(details);
@@ -76,8 +76,8 @@ void WPUserInfo::startDetailsProcess(const QString &host)
void WPUserInfo::slotDetailsProcessReady(KProcIO *d)
{
- QString tmpLine = QString::null;
- QRegExp info("^Domain=\\[(.*)\\]\\sOS=\\[(.*)\\]\\sServer=\\[(.*)\\]$"), host("^Server\\|(.*)\\|(.*)$");
+ TQString tmpLine = TQString::null;
+ TQRegExp info("^Domain=\\[(.*)\\]\\sOS=\\[(.*)\\]\\sServer=\\[(.*)\\]$"), host("^Server\\|(.*)\\|(.*)$");
while (d->readln(tmpLine) > -1) {
if (info.search(tmpLine) != -1) {