summaryrefslogtreecommitdiffstats
path: root/KMFIPTInterface/kmfiptinterface.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-27 17:52:36 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-27 17:52:36 +0000
commitff419492931de3748936967da36948af7a04d7a0 (patch)
tree31a70be62d3bfb8e405d51e4b256a7210940ffe8 /KMFIPTInterface/kmfiptinterface.cpp
parentf1fd95abe28acef708caac65af44473461d7026c (diff)
downloadkmyfirewall-ff419492931de3748936967da36948af7a04d7a0.tar.gz
kmyfirewall-ff419492931de3748936967da36948af7a04d7a0.zip
TQt4 convert kmyfirewall
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmyfirewall@1238525 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'KMFIPTInterface/kmfiptinterface.cpp')
-rw-r--r--KMFIPTInterface/kmfiptinterface.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/KMFIPTInterface/kmfiptinterface.cpp b/KMFIPTInterface/kmfiptinterface.cpp
index e963383..58b2496 100644
--- a/KMFIPTInterface/kmfiptinterface.cpp
+++ b/KMFIPTInterface/kmfiptinterface.cpp
@@ -34,7 +34,7 @@
KMFIPTInterface::KMFIPTInterface() : DCOPObject("KMFIPTInterface")
{
kdDebug() << "Starting new service... " << endl;
- m_List = QStringList();
+ m_List = TQStringList();
}
KMFIPTInterface::~KMFIPTInterface()
@@ -42,25 +42,25 @@ KMFIPTInterface::~KMFIPTInterface()
kdDebug() << "Going away... " << endl;
}
-QString KMFIPTInterface::string(int idx)
+TQString KMFIPTInterface::string(int idx)
{
return *m_List.at(idx);
}
-QStringList KMFIPTInterface::list()
+TQStringList KMFIPTInterface::list()
{
return m_List;
}
-void KMFIPTInterface::add(QString arg)
+void KMFIPTInterface::add(TQString arg)
{
kdDebug() << "Adding " << arg << " to the list" << endl;
m_List << arg;
}
-bool KMFIPTInterface::remove(QString arg)
+bool KMFIPTInterface::remove(TQString arg)
{
- QStringList::Iterator it = m_List.find(arg);
+ TQStringList::Iterator it = m_List.tqfind(arg);
if (it != m_List.end())
{
m_List.remove(it);
@@ -80,33 +80,33 @@ void KMFIPTInterface::Test() {
KMessageBox::information(0 , i18n("Called KMFIPTInterface::Test()") );
}
-int KMFIPTInterface::numRulesInChain( QString table , QString chain ) {
+int KMFIPTInterface::numRulesInChain( TQString table , TQString chain ) {
IPTChecker *chk = new IPTChecker();
char *ctable = strdup(table);
char *cchain = strdup(chain);
return chk->numRulesInChain( ctable, cchain );
}
-int KMFIPTInterface::numChainsInTable( QString table ) {
+int KMFIPTInterface::numChainsInTable( TQString table ) {
IPTChecker *chk = new IPTChecker();
char *ctable = strdup(table);
return chk->numChainsInTable( ctable );
}
-QStringList KMFIPTInterface::getChainsInTable( QString table ) {
+TQStringList KMFIPTInterface::getChainsInTable( TQString table ) {
IPTChecker *chk = new IPTChecker();
char *ctable = strdup(table);
return chk->getChainsInTable( ctable );
}
-QStringList KMFIPTInterface::getRuleProperties( QString table , QString chain , int index ) {
+TQStringList KMFIPTInterface::getRuleProperties( TQString table , TQString chain , int index ) {
IPTChecker *chk = new IPTChecker();
char *ctable = strdup(table);
char *cchain = strdup(chain);
return chk->getRuleProperties( ctable, cchain, index );
}
-QString KMFIPTInterface::getChainPolicy( QString table , QString chain ) {
+TQString KMFIPTInterface::getChainPolicy( TQString table , TQString chain ) {
IPTChecker *chk = new IPTChecker();
char *ctable = strdup(table);
char *cchain = strdup(chain);