diff options
Diffstat (limited to 'KMFIPTInterface/kmfiptinterface.cpp')
-rw-r--r-- | KMFIPTInterface/kmfiptinterface.cpp | 22 |
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); |