summaryrefslogtreecommitdiffstats
path: root/KMFIPTInterface/iptchecker.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/iptchecker.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/iptchecker.cpp')
-rw-r--r--KMFIPTInterface/iptchecker.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/KMFIPTInterface/iptchecker.cpp b/KMFIPTInterface/iptchecker.cpp
index bf6979d..e69e8b5 100644
--- a/KMFIPTInterface/iptchecker.cpp
+++ b/KMFIPTInterface/iptchecker.cpp
@@ -100,8 +100,8 @@ int IPTChecker::numRulesInChain( char *tablename, char *chain ) {
}
return -1;
}
-QStringList IPTChecker::getRuleProperties( char * table, char *chain, int ruleIndex ) {
- QStringList list;
+TQStringList IPTChecker::getRuleProperties( char * table, char *chain, int ruleIndex ) {
+ TQStringList list;
int numRules = 0;
int found = 0;
iptc_handle_t h;
@@ -138,7 +138,7 @@ QStringList IPTChecker::getRuleProperties( char * table, char *chain, int ruleIn
target_name = iptc_get_target( my_rule, &h );
if ( target_name && (*target_name != '\0') ) {
- list << QString("%1").arg(target_name);
+ list << TQString("%1").tqarg(target_name);
}
@@ -151,7 +151,7 @@ QStringList IPTChecker::getRuleProperties( char * table, char *chain, int ruleIn
}
if ( t->u.user.name ) {
- list << QString("TARGET2:%1").arg(t->u.user.name);
+ list << TQString("TARGET2:%1").tqarg(t->u.user.name);
struct iptables_target *target = find_target( target_name, TRY_LOAD );
@@ -180,8 +180,8 @@ QStringList IPTChecker::getRuleProperties( char * table, char *chain, int ruleIn
return list;
}
-QStringList IPTChecker::getChainsInTable( char * table ) {
- QStringList list;
+TQStringList IPTChecker::getChainsInTable( char * table ) {
+ TQStringList list;
int foundRule = 0;
iptc_handle_t h;
const struct ipt_entry *e;
@@ -201,8 +201,8 @@ QStringList IPTChecker::getChainsInTable( char * table ) {
}
-QString IPTChecker::getChainPolicy( char * table, char *chain ) {
- QString policy = "";
+TQString IPTChecker::getChainPolicy( char * table, char *chain ) {
+ TQString policy = "";
iptc_handle_t h;
const struct ipt_entry *e;
const char *ch = NULL;