summaryrefslogtreecommitdiffstats
path: root/kopete/plugins/smpppdcs
diff options
context:
space:
mode:
Diffstat (limited to 'kopete/plugins/smpppdcs')
-rw-r--r--kopete/plugins/smpppdcs/iconnector.h2
-rw-r--r--kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp2
-rw-r--r--kopete/plugins/smpppdcs/onlineinquiry.cpp2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcsplugin.h2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcspreferences.cpp10
-rw-r--r--kopete/plugins/smpppdcs/smpppdcspreferences.h2
-rw-r--r--kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp14
-rw-r--r--kopete/plugins/smpppdcs/smpppdsearcher.cpp4
-rw-r--r--kopete/plugins/smpppdcs/smpppdsearcher.h4
9 files changed, 21 insertions, 21 deletions
diff --git a/kopete/plugins/smpppdcs/iconnector.h b/kopete/plugins/smpppdcs/iconnector.h
index c4846862..868adcf6 100644
--- a/kopete/plugins/smpppdcs/iconnector.h
+++ b/kopete/plugins/smpppdcs/iconnector.h
@@ -37,7 +37,7 @@ public:
* This method needs to get reimplemented at classes which implement
* this interface.
*
- * @param newStatus the status of the internet connection, <code>TRUE</code> if there is a connection, otherwise <code>FALSE</code>
+ * @param newStatus the status of the internet connection, <code>true</code> if there is a connection, otherwise <code>false</code>
*/
virtual void setConnectedStatus(bool newStatus) = 0;
};
diff --git a/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp b/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp
index 1868893f..a8782459 100644
--- a/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp
+++ b/kopete/plugins/smpppdcs/libsmpppdclient/smpppdunsettled.cpp
@@ -71,7 +71,7 @@ bool Unsettled::connect(Client * client, const TQString& server, uint port) {
}
setSocket(client, new KNetwork::KStreamSocket(resolvedServer, TQString::number(port)));
- socket(client)->setBlocking(TRUE);
+ socket(client)->setBlocking(true);
if(!socket(client)->connect()) {
kdDebug(14312) << k_funcinfo << "Socket Error: " << KNetwork::KStreamSocket::errorString(socket(client)->error()) << endl;
diff --git a/kopete/plugins/smpppdcs/onlineinquiry.cpp b/kopete/plugins/smpppdcs/onlineinquiry.cpp
index 4cab45d7..ac3fbdd7 100644
--- a/kopete/plugins/smpppdcs/onlineinquiry.cpp
+++ b/kopete/plugins/smpppdcs/onlineinquiry.cpp
@@ -19,7 +19,7 @@
#include "onlineinquiry.h"
OnlineInquiry::OnlineInquiry()
- : m_detector(NULL), m_online(FALSE) {}
+ : m_detector(NULL), m_online(false) {}
OnlineInquiry::~OnlineInquiry() {
delete m_detector;
diff --git a/kopete/plugins/smpppdcs/smpppdcsplugin.h b/kopete/plugins/smpppdcs/smpppdcsplugin.h
index 2742abfa..d2bfecdc 100644
--- a/kopete/plugins/smpppdcs/smpppdcsplugin.h
+++ b/kopete/plugins/smpppdcs/smpppdcsplugin.h
@@ -67,7 +67,7 @@ public:
/**
* @brief Checks if we are online.
* @note This method is reserved for future use. Do not use at the moment!
- * @return <code>TRUE</code> if online, otherwise <code>FALSE</code>
+ * @return <code>true</code> if online, otherwise <code>false</code>
*/
virtual bool isOnline() const;
diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
index 338c61e0..88a3cbd1 100644
--- a/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcspreferences.cpp
@@ -61,8 +61,8 @@ SMPPPDCSPreferences::SMPPPDCSPreferences(TQWidget * parent, const char * /* name
(*it)->accountId() + " (" + protoName + ")", TQCheckListItem::CheckBox);
cli->setPixmap(0, (*it)->accountIcon());
- m_accountMapOld[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());
- m_accountMapCur[cli->text(0)] = AccountPrivMap(FALSE, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());;
+ m_accountMapOld[cli->text(0)] = AccountPrivMap(false, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());
+ m_accountMapCur[cli->text(0)] = AccountPrivMap(false, (*it)->protocol()->pluginId() + "_" + (*it)->accountId());;
m_ui->accountList->insertItem(cli);
}
@@ -90,11 +90,11 @@ void SMPPPDCSPreferences::listClicked(TQListViewItem * item)
if(cli->isOn() != m_accountMapCur[cli->text(0)].m_on) {
AccountMap::iterator itOld = m_accountMapOld.begin();
AccountMap::iterator itCur;
- bool change = FALSE;
+ bool change = false;
for(itCur = m_accountMapCur.begin(); itCur != m_accountMapCur.end(); ++itCur, ++itOld) {
if((*itCur).m_on != (*itOld).m_on){
- change = TRUE;
+ change = true;
break;
}
}
@@ -108,7 +108,7 @@ void SMPPPDCSPreferences::defaults()
TQListViewItemIterator it(m_ui->accountList);
while(it.current()) {
TQCheckListItem * cli = dynamic_cast<TQCheckListItem *>(it.current());
- cli->setOn(FALSE);
+ cli->setOn(false);
++it;
}
diff --git a/kopete/plugins/smpppdcs/smpppdcspreferences.h b/kopete/plugins/smpppdcs/smpppdcspreferences.h
index 412837b7..fd81d0d3 100644
--- a/kopete/plugins/smpppdcs/smpppdcspreferences.h
+++ b/kopete/plugins/smpppdcs/smpppdcspreferences.h
@@ -25,7 +25,7 @@ class SMPPPDCSPrefs;
class AccountPrivMap {
public:
- AccountPrivMap(bool isOn = FALSE, const TQString& id = TQString())
+ AccountPrivMap(bool isOn = false, const TQString& id = TQString())
: m_on(isOn), m_id(id) {}
bool m_on;
TQString m_id;
diff --git a/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp b/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp
index ca4462e8..68a4ac16 100644
--- a/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp
+++ b/kopete/plugins/smpppdcs/smpppdcsprefsimpl.cpp
@@ -57,10 +57,10 @@ SMPPPDCSPrefs::SMPPPDCSPrefs(TQWidget* parent, const char* name, WFlags fl)
// if netstat is NOT available, disable the option and set to SMPPPD
if(TDEStandardDirs::findExe("netstat") == TQString()) {
- autoCSTest->setEnabled(FALSE);
- useNetstat->setEnabled(FALSE);
- useNetstat->setChecked(FALSE);
- useSmpppd->setChecked(TRUE);
+ autoCSTest->setEnabled(false);
+ useNetstat->setEnabled(false);
+ useNetstat->setChecked(false);
+ useSmpppd->setChecked(true);
}
}
@@ -95,9 +95,9 @@ void SMPPPDCSPrefs::scanStarted(uint total) {
// setup the scanProgress Dialog
if(!m_scanProgressDlg) {
- m_scanProgressDlg = new KProgressDialog(this, 0, i18n("Searching"), i18n("Searching for a SMPPPD on the local network..."), TRUE);
- m_scanProgressDlg->setAutoClose(TRUE);
- m_scanProgressDlg->setAllowCancel(TRUE);
+ m_scanProgressDlg = new KProgressDialog(this, 0, i18n("Searching"), i18n("Searching for a SMPPPD on the local network..."), true);
+ m_scanProgressDlg->setAutoClose(true);
+ m_scanProgressDlg->setAllowCancel(true);
m_scanProgressDlg->setMinimumDuration(2000);
connect(m_scanProgressDlg, TQ_SIGNAL(cancelClicked()), this, TQ_SLOT(cancelScanning()));
diff --git a/kopete/plugins/smpppdcs/smpppdsearcher.cpp b/kopete/plugins/smpppdcs/smpppdsearcher.cpp
index d121292b..306c1d65 100644
--- a/kopete/plugins/smpppdcs/smpppdsearcher.cpp
+++ b/kopete/plugins/smpppdcs/smpppdsearcher.cpp
@@ -24,7 +24,7 @@
#include "smpppdsearcher.h"
SMPPPDSearcher::SMPPPDSearcher()
- : m_cancelSearchNow(FALSE),
+ : m_cancelSearchNow(false),
m_procIfconfig(NULL),
m_procNetstat(NULL) {}
@@ -149,7 +149,7 @@ bool SMPPPDSearcher::scan(const TQString& ip, const TQString& mask) {
}
uint range = max_range - min_range;
- m_cancelSearchNow = FALSE;
+ m_cancelSearchNow = false;
if(range > 1) {
emit scanStarted(max_range);
}
diff --git a/kopete/plugins/smpppdcs/smpppdsearcher.h b/kopete/plugins/smpppdcs/smpppdsearcher.h
index d5a41a64..0ecc8ec8 100644
--- a/kopete/plugins/smpppdcs/smpppdsearcher.h
+++ b/kopete/plugins/smpppdcs/smpppdsearcher.h
@@ -64,7 +64,7 @@ protected:
*
* @param ip the ntwork ip
* @param mask the network mask
- * @return <code>TRUE</code> if an smpppd was found
+ * @return <code>true</code> if an smpppd was found
*/
bool scan(const TQString& ip, const TQString& mask);
@@ -96,7 +96,7 @@ private:
};
inline void SMPPPDSearcher::cancelSearch() {
- m_cancelSearchNow = TRUE;
+ m_cancelSearchNow = true;
}
#endif