rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmyfirewall@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 299d556caf
commit 51237d500f

@ -28,8 +28,8 @@
#include <kdebug.h>
#include <kpushbutton.h>
Details::Details( TQWidget* tqparent, const char* name, WFlags fl )
: DetailsDesigner( tqparent, name, fl ) {
Details::Details( TQWidget* parent, const char* name, WFlags fl )
: DetailsDesigner( parent, name, fl ) {
TQObject::connect( m_cmd_close, TQT_SIGNAL( clicked() ), this, TQT_SLOT ( close() ) );

@ -28,7 +28,7 @@ class Details : public DetailsDesigner {
TQ_OBJECT
public:
Details( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
Details( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Details();
/*$PUBLIC_FUNCTIONS$*/

@ -41,8 +41,8 @@
#include "../core/iptrule.h"
#include "../core/iptruleoption.h"
KMFIPTWatcher::KMFIPTWatcher( TQObject *tqparent, const char *name )
: TQObject( tqparent, name ) {
KMFIPTWatcher::KMFIPTWatcher( TQObject *parent, const char *name )
: TQObject( parent, name ) {
m_queryExtendedInfo = true;
m_doc = new KMFIPTDoc( 0, "iptdoc" );
go();

@ -38,7 +38,7 @@ class KMFIPTWatcher : public TQObject
Q_OBJECT
TQ_OBJECT
public:
KMFIPTWatcher(TQObject *tqparent = 0, const char *name = 0);
KMFIPTWatcher(TQObject *parent = 0, const char *name = 0);
~KMFIPTWatcher();

@ -155,11 +155,11 @@ void KMFSysTray::resizeEvent( TQResizeEvent *e ) {}
// extern "C" {
// KPanelApplet * init( TQWidget * tqparent, const TQString & configFile ) {
// KPanelApplet * init( TQWidget * parent, const TQString & configFile ) {
// KGlobal::locale() ->insertCatalogue( "kmfsystray" );
// return new KMFSysTray( configFile, KPanelApplet::Normal,
// KPanelApplet::About | KPanelApplet::Help | KPanelApplet::Preferences,
// tqparent, "kmfsystray" );
// parent, "kmfsystray" );
// }
// }

@ -33,8 +33,8 @@
// Project Includes
#include "details.h"
MainWidget::MainWidget(TQWidget* tqparent, const char* name, WFlags fl)
: MainWidgetDesigner(tqparent,name,fl)
MainWidget::MainWidget(TQWidget* parent, const char* name, WFlags fl)
: MainWidgetDesigner(parent,name,fl)
{
m_ledActive->off();
m_cmd_info->setEnabled( false );

@ -32,7 +32,7 @@ class MainWidget : public MainWidgetDesigner
TQ_OBJECT
public:
MainWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
MainWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~MainWidget();
/*$PUBLIC_FUNCTIONS$*/

@ -43,7 +43,7 @@
#include "kmfiptablesdocumentconverter.h"
namespace KMF {
KMFIPTablesCompiler::KMFIPTablesCompiler( TQObject* tqparent, const char* name ) : KMFPlugin( tqparent, name ) {
KMFIPTablesCompiler::KMFIPTablesCompiler( TQObject* parent, const char* name ) : KMFPlugin( parent, name ) {
m_osName = "linux";
m_osGUIName = "Linux";
m_backendName = "iptables";
@ -225,14 +225,14 @@ void KMFIPTablesCompiler::slotConvertToIPTDoc() {
// KInstance* KMFIPTablesCompilerFactory::s_instance = 0L;
// KAboutData* KMFIPTablesCompilerFactory::s_about = 0L;
KMFIPTablesCompilerFactory::KMFIPTablesCompilerFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFIPTablesCompilerFactory::KMFIPTablesCompilerFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFIPTablesCompilerFactory" );
}
TQObject* KMFIPTablesCompilerFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFIPTablesCompilerFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFIPTablesCompiler( tqparent, name );
TQObject * obj = new KMFIPTablesCompiler( parent, name );
emit objectCreated( obj );
return obj;
}

@ -45,7 +45,7 @@ class KMFIPTablesCompiler : public KMFPlugin, public virtual KMFCompilerInterfa
Q_OBJECT
TQ_OBJECT
public:
KMFIPTablesCompiler( TQObject* tqparent, const char* name );
KMFIPTablesCompiler( TQObject* parent, const char* name );
~KMFIPTablesCompiler();
void compile();
const TQString& compile( KMFGenericDoc* );
@ -78,11 +78,11 @@ class KMFIPTablesCompilerFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFIPTablesCompilerFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFIPTablesCompilerFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFIPTablesCompilerFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -225,11 +225,11 @@ void KMFIPTablesDocumentConverter::addToChains( KMFNetZone* zone, KMFIPTDoc* doc
TQPtrList<TQString> args;
if ( root_chain == Constants::InputChain_Name ) {
args.append( new TQString( zone->address()->toString()+"/"+zone->tqmask()->toString() ) );
args.append( new TQString( zone->address()->toString()+"/"+zone->mask()->toString() ) );
args.append( new TQString( XML::BoolOff_Value ) );
} else if ( root_chain == Constants::OutputChain_Name ) {
args.append( new TQString( XML::BoolOff_Value ) );
args.append( new TQString( zone->address()->toString()+"/"+zone->tqmask()->toString() ) );
args.append( new TQString( zone->address()->toString()+"/"+zone->mask()->toString() ) );
}
TQString s ="ip_opt";
rule->addRuleOption( s , args );

@ -35,7 +35,7 @@
#include "../../kmfwidgets/kmflistview.h"
namespace KMF {
KMFPFCompiler::KMFPFCompiler( TQObject* tqparent, const char* name ) : KMFPlugin( tqparent, name ) {
KMFPFCompiler::KMFPFCompiler( TQObject* parent, const char* name ) : KMFPlugin( parent, name ) {
m_osName = "openbsd";
m_osGUIName = "OpenBSD";
m_backendName = "pf";
@ -433,14 +433,14 @@ void KMFPFCompiler::setupNatRules( KMFGenericDoc* doc ) {
// KInstance* KMFPFCompilerFactory::s_instance = 0L;
// KAboutData* KMFPFCompilerFactory::s_about = 0L;
KMFPFCompilerFactory::KMFPFCompilerFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFPFCompilerFactory::KMFPFCompilerFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFPFCompilerFactory" );
}
TQObject* KMFPFCompilerFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFPFCompilerFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFPFCompiler( tqparent, name );
TQObject * obj = new KMFPFCompiler( parent, name );
emit objectCreated( obj );
return obj;
}

@ -47,7 +47,7 @@ class KMFPFCompiler : public KMFPlugin, public virtual KMFCompilerInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFPFCompiler( TQObject* tqparent, const char* name );
KMFPFCompiler( TQObject* parent, const char* name );
~KMFPFCompiler();
void compile();
const TQString& compile( KMFGenericDoc* );
@ -117,11 +117,11 @@ class KMFPFCompilerFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFPFCompilerFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFPFCompilerFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFPFCompilerFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -203,14 +203,14 @@ int IPAddress::calcLenthToMask( IPAddress& addr) {
}
int tqmask = 0;
int mask = 0;
for (int loop=0; loop<4; loop++) {
int div = 256;
while ( div > 1) {
div = div/2;
int test = m[loop] - div;
if ( test >-1) {
tqmask=tqmask+1;
mask=mask+1;
m[loop]=test;
} else {
break;
@ -218,8 +218,8 @@ int IPAddress::calcLenthToMask( IPAddress& addr) {
}
}
// kdDebug() << "Returning: " << tqmask << endl;
return tqmask;
// kdDebug() << "Returning: " << mask << endl;
return mask;
}
bool IPAddress::isValidAddress( IPAddress& addr) {
@ -309,27 +309,27 @@ bool IPAddress::isValidMask( IPAddress& addr) {
bool IPAddress::hostsOnSameNetwork( IPAddress& host1, IPAddress& host2, int len ) {
// kdDebug() << "IPAddress::hostsOnSameNetwork( IPAddress&, IPAddress&, int )" << endl;
IPAddress tqmask = IPAddress::calcNetworkMaskFromLength( len );
return ( IPAddress::hostsOnSameNetwork( host1, host2, tqmask ) );
IPAddress mask = IPAddress::calcNetworkMaskFromLength( len );
return ( IPAddress::hostsOnSameNetwork( host1, host2, mask ) );
}
bool IPAddress::hostsOnSameNetwork( IPAddress& host1, IPAddress& host2, IPAddress& tqmask ) {
bool IPAddress::hostsOnSameNetwork( IPAddress& host1, IPAddress& host2, IPAddress& mask ) {
kdDebug() << "IPAddress::hostsOnSameNetwork( IPAddress&, IPAddress&, int )" << endl;
kdDebug() << "Host 1: " << host1.toString() << endl;
kdDebug() << "Host 2: " << host2.toString() << endl;
kdDebug() << "Mask: " << tqmask.toString() << endl;
// IPAddress tqmask = IPAddress::calcNetworkMaskFromLength( len );
kdDebug() << "Mask: " << mask.toString() << endl;
// IPAddress mask = IPAddress::calcNetworkMaskFromLength( len );
int nOctA1=host1.getDigit(0) & tqmask.getDigit(0);
int nOctA2=host1.getDigit(1) & tqmask.getDigit(1);
int nOctA3=host1.getDigit(2) & tqmask.getDigit(2);
int nOctA4=host1.getDigit(3) & tqmask.getDigit(3);
int nOctA1=host1.getDigit(0) & mask.getDigit(0);
int nOctA2=host1.getDigit(1) & mask.getDigit(1);
int nOctA3=host1.getDigit(2) & mask.getDigit(2);
int nOctA4=host1.getDigit(3) & mask.getDigit(3);
int nOctB1=host2.getDigit(0) & tqmask.getDigit(0);
int nOctB2=host2.getDigit(1) & tqmask.getDigit(1);
int nOctB3=host2.getDigit(2) & tqmask.getDigit(2);
int nOctB4=host2.getDigit(3) & tqmask.getDigit(3);
int nOctB1=host2.getDigit(0) & mask.getDigit(0);
int nOctB2=host2.getDigit(1) & mask.getDigit(1);
int nOctB3=host2.getDigit(2) & mask.getDigit(2);
int nOctB4=host2.getDigit(3) & mask.getDigit(3);
if ((nOctA1==nOctB1) && (nOctA2==nOctB2) && (nOctA3==nOctB3) && (nOctA4==nOctB4)) {
kdDebug() << "Hosts on same net." << endl;

@ -79,25 +79,25 @@ private:
// static stuff
public:
/** Calculates the nettqmask from the tqmask length
/** Calculates the netmask from the mask length
e.g. 255.255.255.0 -> 24 */
static IPAddress& calcNetworkMaskFromLength( int maskLen );
/** Calculates the given nettqmask length to the net tqmask.
/** Calculates the given netmask length to the net mask.
e.g. 24 -> 255.255.255.0 */
static int calcLenthToMask( IPAddress& );
/** Returns true it the given adddress is a valid net tqmask */
/** Returns true it the given adddress is a valid net mask */
static bool isValidMask( IPAddress& );
/** Returns true it the given adddress is a valid net tqmask */
/** Returns true it the given adddress is a valid net mask */
static bool isValidAddress( IPAddress& );
/** Checks if the the addresses are on the same network. */
static bool hostsOnSameNetwork( IPAddress&, IPAddress&, int maskLen );
/** Checks if the the addresses are on the same network. */
static bool hostsOnSameNetwork( IPAddress&, IPAddress&, IPAddress& tqmask );
static bool hostsOnSameNetwork( IPAddress&, IPAddress&, IPAddress& mask );
private:
private: static int calcLenthToMaskDigit( int nMask, int *nextOne );

@ -308,7 +308,7 @@ bool KMFCheckInput::checkPORTRANGE ( TQString inp ) {
bool KMFCheckInput::checkNetWork ( TQString inp ) {
bool valid_address = false;
bool valid_tqmask = false;
bool valid_mask = false;
kdDebug() << "Checking for NETWORK: " << endl;
int delimiter = inp.find( "/" );
if ( delimiter == -1 ) {
@ -316,21 +316,21 @@ bool KMFCheckInput::checkNetWork ( TQString inp ) {
return false;
} else {
TQString addr = inp.left( delimiter );
TQString tqmask = inp.right( inp.length() - ( delimiter + 1 ) );
TQString mask = inp.right( inp.length() - ( delimiter + 1 ) );
kdDebug() << "Found address: " << addr << endl;
kdDebug() << "Found tqmask: " << tqmask << endl;
if ( tqmask.isEmpty() ) {
kdDebug() << "Found mask: " << mask << endl;
if ( mask.isEmpty() ) {
// kdDebug() << "Mask is Empty\n" << endl;
return false;
} else {
valid_address = checkIP( addr );
valid_tqmask = checkIP( tqmask );
// kdDebug() << "Mask address valid: " << valid_tqmask << endl;
if ( !valid_tqmask ) {
valid_tqmask = checkNetMask ( tqmask );
// kdDebug() << "Mask number valid: " << valid_tqmask << endl;
valid_mask = checkIP( mask );
// kdDebug() << "Mask address valid: " << valid_mask << endl;
if ( !valid_mask ) {
valid_mask = checkNetMask ( mask );
// kdDebug() << "Mask number valid: " << valid_mask << endl;
}
if ( !valid_address || !valid_tqmask ) {
if ( !valid_address || !valid_mask ) {
// kdDebug() << "This is no valid Network" << endl;
return false;
} else {

@ -56,7 +56,7 @@ private: // functions
/** Check if inp is a MAC address */
bool checkMAC( TQString inp );
/** Check if inp is a net tqmask */
/** Check if inp is a net mask */
bool checkNetMask ( TQString inp );
/** Check if inp is a network */

@ -35,7 +35,7 @@ class KMFIPTDoc;
class KDE_EXPORT KMFCompilerInterface {
public:
// KMFCompilerInterface( TQObject* tqparent , const char* name ) : KParts::Plugin( tqparent , name ) {};
// KMFCompilerInterface( TQObject* parent , const char* name ) : KParts::Plugin( parent , name ) {};
KMFCompilerInterface();
virtual ~KMFCompilerInterface();
virtual void compile() = 0;

@ -62,8 +62,8 @@
namespace KMF {
KMFDoc::KMFDoc( NetfilterObject *tqparent, const char *name ) : NetfilterObject( tqparent, name ) {
kdDebug() << "KMFDoc::KMFDoc( TQObject *tqparent, const char *name ) : NetfilterObject( tqparent )" << endl;
KMFDoc::KMFDoc( NetfilterObject *parent, const char *name ) : NetfilterObject( parent, name ) {
kdDebug() << "KMFDoc::KMFDoc( TQObject *parent, const char *name ) : NetfilterObject( parent )" << endl;
/* NetfilterObject::setName( i18n( "Unnamed Document" ) );
NetfilterObject::setDescription( i18n( "No Description Available" ) );*/
m_newSavePathNeeded = true;

@ -57,7 +57,7 @@ class KDE_EXPORT KMFDoc : public NetfilterObject {
Q_OBJECT
TQ_OBJECT
public:
KMFDoc( NetfilterObject* tqparent, const char* name );
KMFDoc( NetfilterObject* parent, const char* name );
virtual ~KMFDoc();

@ -55,8 +55,8 @@
namespace KMF {
KMFGenericDoc::KMFGenericDoc( NetfilterObject* tqparent, const char* name, KMFTarget* target ) : KMFDoc( tqparent, name ), KMFRulesetDoc( target ) {
kdDebug() << "KMFGenericDoc::KMFGenericDoc( TQObject *tqparent, const char *name ) : KMFDoc( tqparent, name )" << endl;
KMFGenericDoc::KMFGenericDoc( NetfilterObject* parent, const char* name, KMFTarget* target ) : KMFDoc( parent, name ), KMFRulesetDoc( target ) {
kdDebug() << "KMFGenericDoc::KMFGenericDoc( TQObject *parent, const char *name ) : KMFDoc( parent, name )" << endl;
m_zones.setAutoDelete( false );
m_zone_incoming = 0;
m_zone_outgoing = 0;

@ -79,7 +79,7 @@
namespace KMF {
KMFIPTDoc::KMFIPTDoc( NetfilterObject *tqparent, const char *name, KMFTarget* target ) : KMFDoc( tqparent, name ), KMFRulesetDoc( target ) {
KMFIPTDoc::KMFIPTDoc( NetfilterObject *parent, const char *name, KMFTarget* target ) : KMFDoc( parent, name ), KMFRulesetDoc( target ) {
initDoc();
}

@ -46,7 +46,7 @@
namespace KMF {
KMFNetHost::KMFNetHost( NetfilterObject *tqparent, const char* name, const TQString& hostName, KMFNetwork* net ) : KMFTarget( tqparent, name, hostName, net ) {
KMFNetHost::KMFNetHost( NetfilterObject *parent, const char* name, const TQString& hostName, KMFNetwork* net ) : KMFTarget( parent, name, hostName, net ) {
m_logIncoming = false;
m_logOutgoing = false;
m_guiName = i18n("New Host");
@ -56,7 +56,7 @@ KMFNetHost::KMFNetHost( NetfilterObject *tqparent, const char* name, const TQStr
m_protocols.setAutoDelete( false );
setName( hostName );
// m_object_type = NETHOST;
if ( KMFNetZone* zone = dynamic_cast<KMFNetZone*> ( tqparent ) ) {
if ( KMFNetZone* zone = dynamic_cast<KMFNetZone*> ( parent ) ) {
m_zone = zone;
m_address->setAddress( m_zone->address()->toString() );
} else {

@ -57,7 +57,7 @@ class KDE_EXPORT KMFNetHost : public KMFTarget {
Q_OBJECT
TQ_OBJECT
public:
KMFNetHost( NetfilterObject *tqparent, const char* name, const TQString& Hostname, KMFNetwork* net );
KMFNetHost( NetfilterObject *parent, const char* name, const TQString& Hostname, KMFNetwork* net );
virtual ~KMFNetHost();
virtual int type();

@ -56,8 +56,8 @@
namespace KMF {
KMFNetwork::KMFNetwork( NetfilterObject* tqparent, const char* name, KMyFirewallInterface* ) : KMFDoc( tqparent, name ) {
kdDebug() << "KMFNetwork::KMFNetwork( TQObject *tqparent, const char *name ) : KMFDoc( tqparent, name )" << endl;
KMFNetwork::KMFNetwork( NetfilterObject* parent, const char* name, KMyFirewallInterface* ) : KMFDoc( parent, name ) {
kdDebug() << "KMFNetwork::KMFNetwork( TQObject *parent, const char *name ) : KMFDoc( parent, name )" << endl;
m_target = 0;
m_myNetwork = 0;

@ -50,8 +50,8 @@
namespace KMF {
KMFNetZone::KMFNetZone( NetfilterObject *tqparent, const char* name, const TQString& zoneName ) : NetfilterObject( tqparent, name ) {
kdDebug() << "KMFNetZone::KMFNetZone( NetfilterObject *tqparent, const char* name, const TQString& zoneName )" << endl;
KMFNetZone::KMFNetZone( NetfilterObject *parent, const char* name, const TQString& zoneName ) : NetfilterObject( parent, name ) {
kdDebug() << "KMFNetZone::KMFNetZone( NetfilterObject *parent, const char* name, const TQString& zoneName )" << endl;
m_doc = 0;
m_network = 0;
m_zone = 0;
@ -67,14 +67,14 @@ KMFNetZone::KMFNetZone( NetfilterObject *tqparent, const char* name, const TQStr
} else {
setName( zoneName );
}
if ( KMFNetZone * zone = dynamic_cast<KMFNetZone*> ( tqparent ) ) {
if ( KMFNetZone * zone = dynamic_cast<KMFNetZone*> ( parent ) ) {
m_zoneType = NODE;
m_zone = zone;
setZone( *m_zone->address(), m_zone->maskLength() /* , *m_zone->tqmask() */ );
} else if ( KMFGenericDoc * doc = dynamic_cast<KMFGenericDoc*> ( tqparent ) ) {
setZone( *m_zone->address(), m_zone->maskLength() /* , *m_zone->mask() */ );
} else if ( KMFGenericDoc * doc = dynamic_cast<KMFGenericDoc*> ( parent ) ) {
m_zoneType = ROOT;
m_doc = doc;
} else if ( KMFNetwork * doc = dynamic_cast<KMFNetwork*> ( tqparent ) ) {
} else if ( KMFNetwork * doc = dynamic_cast<KMFNetwork*> ( parent ) ) {
m_zoneType = ROOT;
m_network = doc;
}
@ -93,9 +93,9 @@ KMFNetZone::~KMFNetZone() {
}
int KMFNetZone::operator==( const KMFNetZone& zone ) {
if ( IPAddress::calcLenthToMask( *tqmask() ) > IPAddress::calcLenthToMask( *zone.tqmask() ) ) {
if ( IPAddress::calcLenthToMask( *mask() ) > IPAddress::calcLenthToMask( *zone.mask() ) ) {
return 1;
} else if ( IPAddress::calcLenthToMask( *tqmask() ) == IPAddress::calcLenthToMask( *zone.tqmask() ) ){
} else if ( IPAddress::calcLenthToMask( *mask() ) == IPAddress::calcLenthToMask( *zone.mask() ) ){
return 0;
} else {
return -1;
@ -103,9 +103,9 @@ int KMFNetZone::operator==( const KMFNetZone& zone ) {
}
bool KMFNetZone::isSameZone( KMFNetZone* zone ) {
if ( IPAddress::calcLenthToMask( *tqmask() ) > IPAddress::calcLenthToMask( *zone->tqmask() ) ) {
if ( IPAddress::calcLenthToMask( *mask() ) > IPAddress::calcLenthToMask( *zone->mask() ) ) {
return false;
} else if ( IPAddress::calcLenthToMask( *tqmask() ) == IPAddress::calcLenthToMask( *zone->tqmask() ) ){
} else if ( IPAddress::calcLenthToMask( *mask() ) == IPAddress::calcLenthToMask( *zone->mask() ) ){
return true;
} else {
return false;
@ -797,9 +797,9 @@ const TQDomDocument& KMFNetZone::getDOMTree() {
TQString num;
from.setAttribute( XML::Address_Attribute, address()->toString() );
TQDomElement tqmask = doc.createElement( XML::NetMask_Element );
root.appendChild( tqmask );
tqmask.setAttribute( XML::Address_Attribute, maskLength() );
TQDomElement mask = doc.createElement( XML::NetMask_Element );
root.appendChild( mask );
mask.setAttribute( XML::Address_Attribute, maskLength() );
TQPtrListIterator<KMFNetZone> it ( m_zones );
while ( it.current() ) {
@ -867,7 +867,7 @@ void KMFNetZone::loadXML( TQDomNode root, TQStringList& errors ) {
if ( ok ) {
setMaskLength( len );
} else {
kdDebug() << "Parsing tqmask failed" << endl;
kdDebug() << "Parsing mask failed" << endl;
}
}
}

@ -53,7 +53,7 @@ class KDE_EXPORT KMFNetZone : public NetfilterObject {
Q_OBJECT
TQ_OBJECT
public:
KMFNetZone( NetfilterObject *tqparent, const char* objectname, const TQString& name );
KMFNetZone( NetfilterObject *parent, const char* objectname, const TQString& name );
virtual ~KMFNetZone();
@ -68,7 +68,7 @@ public:
bool isSameZone( KMFNetZone* );
IPAddress* tqmask() const {
IPAddress* mask() const {
IPAddress *addr = new IPAddress();
addr->setAddress( IPAddress::calcNetworkMaskFromLength( m_maskLen ).toString() );
return addr;

@ -29,7 +29,7 @@
namespace KMF {
KMFPlugin::KMFPlugin( TQObject* tqparent , const char* name ) : KParts::Plugin( tqparent , name ) {
KMFPlugin::KMFPlugin( TQObject* parent , const char* name ) : KParts::Plugin( parent , name ) {
m_err = new KMFError();
}

@ -37,7 +37,7 @@ class KMFError;
class KDE_EXPORT KMFPlugin : public KParts::Plugin {
public:
KMFPlugin( TQObject* tqparent , const char* name );
KMFPlugin( TQObject* parent , const char* name );
virtual ~KMFPlugin();
void setOutputWidget( TQWidget* wid );
void showEditor();

@ -42,7 +42,7 @@ KMFPluginFactory::KMFPluginFactory() {}
KMFPluginFactory::~KMFPluginFactory() {}
KParts::ReadWritePart* KMFPluginFactory::KMFMainView( KParts::MainWindow* tqparent, KMFError* err ) {
KParts::ReadWritePart* KMFPluginFactory::KMFMainView( KParts::MainWindow* parent, KMFError* err ) {
err->setErrType( KMFError::OK );
TQString libName;
if ( KMFConfig::useGenericInterface() ) {
@ -55,7 +55,7 @@ KParts::ReadWritePart* KMFPluginFactory::KMFMainView( KParts::MainWindow* tqpare
KLibFactory * factory = KLibLoader::self() ->factory( libName.latin1() );
if ( factory ) {
KParts::ReadWritePart * m_ruleeditpart = static_cast<KParts::ReadWritePart *>( factory->create( TQT_TQOBJECT(tqparent),
KParts::ReadWritePart * m_ruleeditpart = static_cast<KParts::ReadWritePart *>( factory->create( TQT_TQOBJECT(parent),
libName.latin1() , "KParts::ReadWritePart" ) );
if ( m_ruleeditpart ) {
@ -105,7 +105,7 @@ TQValueList<KMFCompilerInterface*>* KMFPluginFactory::CompilersForInstaller( con
return list;
}
TQPtrList<KMFRuleOptionEditInterface>* KMFPluginFactory::KMFRuleOptionEditors( TQObject *tqparent ){
TQPtrList<KMFRuleOptionEditInterface>* KMFPluginFactory::KMFRuleOptionEditors( TQObject *parent ){
TQPtrList<KMFRuleOptionEditInterface> *list = new TQPtrList<KMFRuleOptionEditInterface>;
KTrader::OfferList offers = KTrader::self()->query( "KMyFirewall/RuleOptionEdit");
kdDebug() << "Query performed" << endl;
@ -119,7 +119,7 @@ TQPtrList<KMFRuleOptionEditInterface>* KMFPluginFactory::KMFRuleOptionEditors( T
if ( !factory ) {
kdDebug() << "Couldn't load plugin: " << ptr->name() << endl;
}
if ( KMFRuleOptionEditInterface *part = dynamic_cast<KMFRuleOptionEditInterface*> ( factory->create( tqparent , "KMFRuleOptionEditInterface") ) ) {
if ( KMFRuleOptionEditInterface *part = dynamic_cast<KMFRuleOptionEditInterface*> ( factory->create( parent , "KMFRuleOptionEditInterface") ) ) {
if ( ! part ) {
KMessageBox::error(0, "Couldn't load plugin");
}
@ -130,7 +130,7 @@ TQPtrList<KMFRuleOptionEditInterface>* KMFPluginFactory::KMFRuleOptionEditors( T
return list;
}
TQPtrList<KMFRuleTargetOptionEditInterface>* KMFPluginFactory::KMFRuleTargetOptionEditors( TQObject *tqparent ) {
TQPtrList<KMFRuleTargetOptionEditInterface>* KMFPluginFactory::KMFRuleTargetOptionEditors( TQObject *parent ) {
TQPtrList<KMFRuleTargetOptionEditInterface> *list = new TQPtrList<KMFRuleTargetOptionEditInterface>;
KTrader::OfferList offers = KTrader::self()->query( "KMyFirewall/RuleTargetOptionEdit");
kdDebug() << "Query performed" << endl;
@ -144,7 +144,7 @@ TQPtrList<KMFRuleTargetOptionEditInterface>* KMFPluginFactory::KMFRuleTargetOpti
if ( !factory ) {
kdDebug() << "Couldn't load plugin: " << ptr->name() << endl;
}
if ( KMFRuleTargetOptionEditInterface *part = dynamic_cast<KMFRuleTargetOptionEditInterface*> ( factory->create( tqparent , "KMFRuleTargetOptionEditInterface") ) ) {
if ( KMFRuleTargetOptionEditInterface *part = dynamic_cast<KMFRuleTargetOptionEditInterface*> ( factory->create( parent , "KMFRuleTargetOptionEditInterface") ) ) {
if ( ! part ) {
KMessageBox::error(0, "Couldn't load plugin");
}

@ -40,12 +40,12 @@ private:
KMFPluginFactory();
~KMFPluginFactory();
public:
static TQPtrList<KMFRuleOptionEditInterface>* KMFRuleOptionEditors( TQObject *tqparent );
static TQPtrList<KMFRuleOptionEditInterface>* KMFRuleOptionEditors( TQObject *parent );
static TQPtrList<KMFRuleTargetOptionEditInterface>* KMFRuleTargetOptionEditors( TQObject *tqparent );
static TQPtrList<KMFRuleTargetOptionEditInterface>* KMFRuleTargetOptionEditors( TQObject *parent );
static TQValueList<KMFCompilerInterface*>* CompilersForInstaller( const TQString& osName );
static KParts::ReadWritePart* KMFMainView( KParts::MainWindow* tqparent, KMFError* err );
static KParts::ReadWritePart* KMFMainView( KParts::MainWindow* parent, KMFError* err );
private:
static KMFCompilerInterface* KMFCompiler( KMFTarget* );

@ -55,7 +55,7 @@
namespace KMF {
KMFProtocol::KMFProtocol( KMFProtocolCategory* protCat, const char* name ) : NetfilterObject( protCat, name ) {
// kdDebug() << "KMFProtocol::KMFProtocol( NetfilterObject* tqparent, const char* name )" << endl;
// kdDebug() << "KMFProtocol::KMFProtocol( NetfilterObject* parent, const char* name )" << endl;
m_category = protCat;
m_customProtocol = true;
m_tcpPorts.clear();

@ -98,7 +98,7 @@ public:
KMFProtocolUsage *createUsage();
private:
KMFProtocol( KMFProtocolCategory* tqparent, const char* name );
KMFProtocol( KMFProtocolCategory* parent, const char* name );
private:
TQValueList<KMFProtocolUsage*> m_usages;

@ -58,7 +58,7 @@ KMFProtocolCategory* KMFProtocolCategory::getCustomCategory() {
KMFProtocolCategory::KMFProtocolCategory ( NetfilterObject* tqparent, const char* name ) : NetfilterObject ( tqparent, name ) {
KMFProtocolCategory::KMFProtocolCategory ( NetfilterObject* parent, const char* name ) : NetfilterObject ( parent, name ) {
// m_protocols;
}

@ -77,7 +77,7 @@ private:
private: // DATA
KMFProtocolCategory( NetfilterObject* tqparent, const char* name );
KMFProtocolCategory( NetfilterObject* parent, const char* name );
TQString m_icon;
TQValueList< KMFProtocol* > m_protocols;

@ -57,7 +57,7 @@ KMFProtocolLibrary* KMFProtocolLibrary::instance() {
}
/** End Static Stuff **/
KMFProtocolLibrary::KMFProtocolLibrary( TQObject* tqparent, const char* name ) : TQObject( tqparent, name ) {
KMFProtocolLibrary::KMFProtocolLibrary( TQObject* parent, const char* name ) : TQObject( parent, name ) {
m_libraryLoaded = false;
forceProtocolLibraryReload();
}

@ -60,7 +60,7 @@ private:
private:
KMFProtocolLibrary( TQObject* tqparent, const char* name );
KMFProtocolLibrary( TQObject* parent, const char* name );
KMFProtocolLibrary();
bool m_libraryLoaded;

@ -43,7 +43,7 @@
namespace KMF {
KMFProtocolUsage::KMFProtocolUsage( NetfilterObject* tqparent, const char* name ) : NetfilterObject( tqparent, name ) {
KMFProtocolUsage::KMFProtocolUsage( NetfilterObject* parent, const char* name ) : NetfilterObject( parent, name ) {
m_protocol = 0;
m_limit_interval = "minute";
m_limit = -1;

@ -84,7 +84,7 @@ public slots:
void slotOnProtocolDeleted( TQObject* protocol );
private:
KMFProtocolUsage( NetfilterObject* tqparent, const char* name );
KMFProtocolUsage( NetfilterObject* parent, const char* name );
TQGuardedPtr<KMFProtocol> m_protocol;
TQString m_limit_interval;
int m_limit;

@ -18,7 +18,7 @@
namespace KMF {
KMFRuleOptionEditInterface::KMFRuleOptionEditInterface(TQObject *tqparent, const char* name ) : KMFPlugin( tqparent, name ) {
KMFRuleOptionEditInterface::KMFRuleOptionEditInterface(TQObject *parent, const char* name ) : KMFPlugin( parent, name ) {
kdDebug() << "KMFRuleOptionEditInterface::KMFRuleOptionEditInterface()" << endl;
}

@ -13,7 +13,7 @@ class IPTRule;
class KDE_EXPORT KMFRuleOptionEditInterface : public KMFPlugin {
public:
KMFRuleOptionEditInterface(TQObject *tqparent = 0, const char* name = 0);
KMFRuleOptionEditInterface(TQObject *parent = 0, const char* name = 0);
virtual ~KMFRuleOptionEditInterface();
virtual void loadRule( IPTRule* ) = 0;
virtual TQWidget* editWidget() = 0;

@ -13,8 +13,8 @@
namespace KMF {
KMFRuleTargetOptionEditInterface::KMFRuleTargetOptionEditInterface(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
KMFRuleTargetOptionEditInterface::KMFRuleTargetOptionEditInterface(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
// m_managedTargets << "DNAT" << "SNAT";
}

@ -25,7 +25,7 @@
namespace KMF {
class KDE_EXPORT KMFRuleTargetOptionEditInterface : public KMFRuleOptionEditInterface {
public:
KMFRuleTargetOptionEditInterface(TQObject *tqparent = 0, const char *name = 0);
KMFRuleTargetOptionEditInterface(TQObject *parent = 0, const char *name = 0);
virtual ~KMFRuleTargetOptionEditInterface();

@ -44,8 +44,8 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2008
namespace KMF {
KMFTarget::KMFTarget( NetfilterObject *tqparent, const char* name, const TQString&, KMFNetwork* net ) : NetfilterObject( tqparent, name ) {
kdDebug() << "KMFTarget::KMFTarget( NetfilterObject *tqparent, const TQString& name )" << endl;
KMFTarget::KMFTarget( NetfilterObject *parent, const char* name, const TQString&, KMFNetwork* net ) : NetfilterObject( parent, name ) {
kdDebug() << "KMFTarget::KMFTarget( NetfilterObject *parent, const TQString& name )" << endl;
m_network = net;
m_address = new IPAddress( 0,0,0,0 );
m_ssh_port = 22;

@ -48,7 +48,7 @@ class KDE_EXPORT KMFTarget : public NetfilterObject {
Q_OBJECT
TQ_OBJECT
public:
KMFTarget( NetfilterObject *tqparent, const char* name, const TQString& targetName, KMFNetwork* net );
KMFTarget( NetfilterObject *parent, const char* name, const TQString& targetName, KMFNetwork* net );
~KMFTarget();

@ -37,7 +37,7 @@ KMFUndoEngine* KMFUndoEngine::instance() {
}
//##### end static stuff
KMFUndoEngine::KMFUndoEngine( TQObject* tqparent, const char* name ) : TQObject( tqparent, name ) {
KMFUndoEngine::KMFUndoEngine( TQObject* parent, const char* name ) : TQObject( parent, name ) {
MAX_UNDO = 10;
m_in_transaction = false;
is_saved = true;

@ -44,7 +44,7 @@ KProcessWrapper* KProcessWrapper::instance() {
KProcessWrapper::KProcessWrapper( TQObject* tqparent, const char* name ) : TQObject( tqparent, name ) {
KProcessWrapper::KProcessWrapper( TQObject* parent, const char* name ) : TQObject( parent, name ) {
m_stderrbuf = new TQString( "" );
m_stdoutbuf = new TQString( "" );
m_childproc = new KProcess();

@ -63,10 +63,10 @@ int NetfilterObject::objectCount( int type ) {
//########### end static stuff
NetfilterObject::NetfilterObject( NetfilterObject *tqparent, const char* name ) : TQObject( tqparent, name ) {
// kdDebug() << "NetfilterObject::( NetfilterObject *tqparent " << name << " )" << endl;
NetfilterObject::NetfilterObject( NetfilterObject *parent, const char* name ) : TQObject( parent, name ) {
// kdDebug() << "NetfilterObject::( NetfilterObject *parent " << name << " )" << endl;
m_uuid = TQUuid::createUuid();
m_parent = tqparent;
m_parent = parent;
m_name = i18n( "Untitled" );
m_desc = i18n( "No Description Available" );
m_uuid_dict->insert( uuid(), this, true );
@ -104,11 +104,11 @@ void NetfilterObject::setUuid( const TQUuid& newUuid ) {
m_uuid_dict->insert( m_uuid, this, true );
}
void NetfilterObject::setParent( NetfilterObject *tqparent ) {
if ( ! tqparent || tqparent == m_parent ) {
void NetfilterObject::setParent( NetfilterObject *parent ) {
if ( ! parent || parent == m_parent ) {
return;
}
m_parent = tqparent;
m_parent = parent;
changed();
}

@ -133,14 +133,14 @@ public:
/** Load configuration from the given TQDdomDocument */
virtual void loadXML( TQDomNode, TQStringList& errors ) = 0;
/** Set the tqparent object */
/** Set the parent object */
void setParent( NetfilterObject* );
/** check if the object is a (indirect) child of the object
with the given id */
bool isChildOf( const TQUuid& uuid );
/** set the changed flag, and calling changed( int id ) in the tqparent
/** set the changed flag, and calling changed( int id ) in the parent
object with it's own id */
void changed();

@ -48,7 +48,7 @@
namespace KMF {
KMFGenericInterface::KMFGenericInterface( TQWidget *tqparent, const char *name ) : KJanusWidget( tqparent, name, KJanusWidget::IconList ) {
KMFGenericInterface::KMFGenericInterface( TQWidget *parent, const char *name ) : KJanusWidget( parent, name, KJanusWidget::IconList ) {
connect( this,TQT_SIGNAL( aboutToShowPage( TQWidget* ) ),
this,TQT_SLOT( slotPageChanged( TQWidget* ) ) );
loadIcons();
@ -139,7 +139,7 @@ void KMFGenericInterface::loadDoc( KMFNetwork* doc ) {
m_myNetworkWidget->setNetwork( m_network );
m_myNetworkWidget->slotUpdateView();
m_myNetworkWidget->tqparent();
m_myNetworkWidget->parent();
m_protocolPageZones->loadDoc( m_network );
m_protocolPageZones->slotUpdateView();

@ -59,7 +59,7 @@ class KMFGenericInterface : public KJanusWidget {
TQ_OBJECT
public:
KMFGenericInterface( TQWidget *tqparent = 0, const char *name = 0 );
KMFGenericInterface( TQWidget *parent = 0, const char *name = 0 );
~KMFGenericInterface();
void loadDoc( KMFNetwork* );

@ -35,17 +35,17 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001
#include "../kmfwidgets/kmfmainwindow.h"
namespace KMF {
KMFGenericInterfacePart::KMFGenericInterfacePart( TQWidget *parentWidget, const char * widgetName ,
TQObject *tqparent, const char *name,
TQObject *parent, const char *name,
const TQStringList & /*args*/ )
: KParts::ReadWritePart( tqparent, name ) {
: KParts::ReadWritePart( parent, name ) {
setInstance( KMFGenericInterfacePartFactory::instance() );
m_genericinterface = new KMFGenericInterface( parentWidget, widgetName );
m_app = dynamic_cast<KMFMainWindow*>( tqparent );
m_app = dynamic_cast<KMFMainWindow*>( parent );
if ( ! m_app ) {
KMessageBox::error(0,"Oops wrong tqparent class found for kmfinstallerplugin!!!");
KMessageBox::error(0,"Oops wrong parent class found for kmfinstallerplugin!!!");
}
m_genericinterface->loadDoc( m_app->network() );
@ -151,7 +151,7 @@ void KMFGenericInterfacePart::setModified( bool modified ) {
// else
// save->setEnabled( false );
// in any event, we want our tqparent to do it's thing
// in any event, we want our parent to do it's thing
ReadWritePart::setModified( modified );
}
@ -226,10 +226,10 @@ KMFGenericInterfacePartFactory::~KMFGenericInterfacePartFactory() {
}
KParts::Part* KMFGenericInterfacePartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,
TQObject *parent, const char *name,
const char *classname, const TQStringList& args) {
// Create an instance of our Part
KMFGenericInterfacePart * obj = new KMFGenericInterfacePart( parentWidget, widgetName, tqparent, name ,args );
KMFGenericInterfacePart * obj = new KMFGenericInterfacePart( parentWidget, widgetName, parent, name ,args );
// See if we are to be read-write or not
if ( TQCString( classname ) == "KParts::ReadOnlyPart" )

@ -32,7 +32,7 @@ class KMFGenericInterfacePart: public KParts::ReadWritePart {
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfacePart( TQWidget *tqparent, const char *name, TQObject *parentObject, const
KMFGenericInterfacePart( TQWidget *parent, const char *name, TQObject *parentObject, const
char *nameOb,
const TQStringList & /*args*/ );
virtual ~KMFGenericInterfacePart();
@ -99,7 +99,7 @@ public:
KMFGenericInterfacePartFactory();
virtual ~KMFGenericInterfacePartFactory();
virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,
TQObject *parent, const char *name,
const char *classname, const TQStringList &args );
static KInstance* instance();

@ -49,8 +49,8 @@
#include "../kmfwidgets/kmflistviewitem.h"
namespace KMF {
KMFGenericInterfaceHost::KMFGenericInterfaceHost( TQWidget *tqparent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceHostWidget( tqparent, name, f ) {
KMFGenericInterfaceHost::KMFGenericInterfaceHost( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceHostWidget( parent, name, f ) {
m_lv_zones->setFullWidth( true );
m_contextMenu = new KPopupMenu( this, "Popup" );
m_contextMenu->hide();

@ -55,7 +55,7 @@ class KMFGenericInterfaceHost : public KMyFirewallGenericInterfaceHostWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfaceHost( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
KMFGenericInterfaceHost( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceHost();

@ -35,8 +35,8 @@
#include "../core/kmfgenericdoc.h"
namespace KMF {
KMFGenericInterfaceIcmp::KMFGenericInterfaceIcmp( TQWidget *tqparent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceIcmp( tqparent, name, f ) {
KMFGenericInterfaceIcmp::KMFGenericInterfaceIcmp( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceIcmp( parent, name, f ) {
connect( c_allow_ping, TQT_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnablePingReplyToggled( bool ) ) );
connect( c_limit_ping, TQT_SIGNAL( toggled( bool ) ),

@ -40,7 +40,7 @@ class KMFGenericInterfaceIcmp : public KMyFirewallGenericInterfaceIcmp {
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfaceIcmp( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
KMFGenericInterfaceIcmp( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceIcmp();

@ -36,8 +36,8 @@
#include "../core/kmfnetwork.h"
#include "../core/kmfgenericdoc.h"
namespace KMF {
KMFGenericInterfaceLogging::KMFGenericInterfaceLogging( TQWidget *tqparent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceLogging( tqparent, name, f ) {
KMFGenericInterfaceLogging::KMFGenericInterfaceLogging( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceLogging( parent, name, f ) {
connect( m_c_log, TQT_SIGNAL( toggled( bool ) ),
this,TQT_SLOT( slotLoggingChanged( bool ) ) );

@ -44,7 +44,7 @@ class KMFGenericInterfaceLogging : public KMyFirewallGenericInterfaceLogging {
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfaceLogging( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
KMFGenericInterfaceLogging( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceLogging();

@ -43,8 +43,8 @@
#include "../core/kmfgenericdoc.h"
#include "../core/kmfconfig.h"
namespace KMF {
KMFGenericInterfaceNat::KMFGenericInterfaceNat( TQWidget *tqparent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceNATWidget( tqparent, name, f ) {
KMFGenericInterfaceNat::KMFGenericInterfaceNat( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceNATWidget( parent, name, f ) {
connect( m_c_enable_nat, TQT_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotNatEnabled( bool ) ) );

@ -41,7 +41,7 @@ class KMFGenericInterfaceNat : public KMyFirewallGenericInterfaceNATWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfaceNat( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
KMFGenericInterfaceNat( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceNat();
signals:

@ -62,7 +62,7 @@
#include "../kmfwidgets/kmfprotocollistview.h"
namespace KMF {
KMFGenericInterfaceProtocol::KMFGenericInterfaceProtocol( TQWidget *tqparent, const char *name, WFlags f ) : KMyFirewallGenericInterfaceProtocolWidget( tqparent, name, f ) {
KMFGenericInterfaceProtocol::KMFGenericInterfaceProtocol( TQWidget *parent, const char *name, WFlags f ) : KMyFirewallGenericInterfaceProtocolWidget( parent, name, f ) {
loadIcons();
m_contextMenu = new KPopupMenu( this, "m_contextMenu" );
// m_lv_protocols->setFullWidth( true );

@ -64,7 +64,7 @@ class KMFGenericInterfaceProtocol : public KMyFirewallGenericInterfaceProtocolWi
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfaceProtocol( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
KMFGenericInterfaceProtocol( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceProtocol();
void loadDoc( KMFNetwork* );

@ -60,14 +60,14 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001
namespace KMF {
KMFInstallerPlugin::KMFInstallerPlugin( TQObject *tqparent, const char *name )
: KMFPlugin( tqparent, name ) {
KMFInstallerPlugin::KMFInstallerPlugin( TQObject *parent, const char *name )
: KMFPlugin( parent, name ) {
m_docType = -1;
KMFMainWindow* app = 0;
app = dynamic_cast<KMFMainWindow*>( tqparent );
app = dynamic_cast<KMFMainWindow*>( parent );
if ( ! app ) {
KMessageBox::error( 0, "Oops wrong tqparent class found for kmfinstallerplugin!!!" );
KMessageBox::error( 0, "Oops wrong parent class found for kmfinstallerplugin!!!" );
}
m_doc = app->network()->currentDoc();
@ -154,7 +154,7 @@ KMFProcOut* KMFInstallerPlugin::execWidget() {
if ( m_execWidget )
return m_execWidget;
kdDebug() << "Need to create new execWidget." << endl;
m_execWidget = new KMFProcOut( (KMFMainWindow*) tqparent(), "KMFProcOut" );
m_execWidget = new KMFProcOut( (KMFMainWindow*) parent(), "KMFProcOut" );
return m_execWidget;
}
@ -428,16 +428,16 @@ void KMFInstallerPlugin::slotEnableActions( bool ) {
KInstance* KMFInstallerPluginFactory::s_instance = 0L;
KMFInstallerPluginFactory::KMFInstallerPluginFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFInstallerPluginFactory::KMFInstallerPluginFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
s_instance = new KInstance( "KMFInstallerPluginFactory" );
}
TQObject* KMFInstallerPluginFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFInstallerPluginFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFInstallerPlugin( tqparent, name );
TQObject * obj = new KMFInstallerPlugin( parent, name );
emit objectCreated( obj );
return obj;
}

@ -50,7 +50,7 @@ public:
/**
* Default constructor
*/
KMFInstallerPlugin( TQObject *tqparent, const char *name );
KMFInstallerPlugin( TQObject *parent, const char *name );
/**
* Destructor
@ -105,11 +105,11 @@ class KMFInstallerPluginFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFInstallerPluginFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFInstallerPluginFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFInstallerPluginFactory() {
delete s_instance;
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
private:

@ -62,7 +62,7 @@ email : chubinger@irrsinnig.org
namespace KMF {
KMFIPTInstaller::KMFIPTInstaller( TQObject* tqparent, const char* name ) : KMFPlugin( tqparent, name ), KMFInstallerInterface() {
KMFIPTInstaller::KMFIPTInstaller( TQObject* parent, const char* name ) : KMFPlugin( parent, name ), KMFInstallerInterface() {
m_err = new KMFError();
m_err_handler = new KMFErrorHandler( "KMFIPTInstaller" );
m_osName = "linux";
@ -1140,14 +1140,14 @@ void KMFIPTInstaller::loadIcons() {
// KInstance* KMFIPTablesCompilerFactory::s_instance = 0L;
// KAboutData* KMFIPTablesCompilerFactory::s_about = 0L;
KMFIPTInstallerFactory::KMFIPTInstallerFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFIPTInstallerFactory::KMFIPTInstallerFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFIPTablesCompilerFactory" );
}
TQObject* KMFIPTInstallerFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFIPTInstallerFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFIPTInstaller( tqparent, name );
TQObject * obj = new KMFIPTInstaller( parent, name );
emit objectCreated( obj );
return obj;
}

@ -50,7 +50,7 @@ class KMFIPTInstaller : public KMFPlugin, public KMFInstallerInterface {
TQ_OBJECT
public:
KMFIPTInstaller( TQObject* tqparent = 0, const char* name = 0 );
KMFIPTInstaller( TQObject* parent = 0, const char* name = 0 );
~KMFIPTInstaller();
virtual void loadScript( const TQString& );
virtual KMFCompilerInterface* compiler();
@ -128,9 +128,9 @@ class KMFIPTInstallerFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFIPTInstallerFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFIPTInstallerFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFIPTInstallerFactory() {};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
};

@ -64,7 +64,7 @@ email : chubinger@irrsinnig.org
namespace KMF {
KMFPFInstaller::KMFPFInstaller( TQObject* tqparent, const char* name ) : KMFPlugin( tqparent, name ), KMFInstallerInterface() {
KMFPFInstaller::KMFPFInstaller( TQObject* parent, const char* name ) : KMFPlugin( parent, name ), KMFInstallerInterface() {
m_err = new KMFError();
m_osName = "openbsd";
m_osGUIName = "OpenBSD";
@ -812,7 +812,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// KMFTargetConfig *conf = tg->config();
//
// KMFPFInstallerInterface *inst2 = KMFPluginFactory::KMFPFInstaller(
// conf->oS(), conf->backend(), tqparent() );
// conf->oS(), conf->backend(), parent() );
// if ( ! inst2 )
// return;
// inst2->loadScript( rulesetDoc()->compile() );
@ -1100,14 +1100,14 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
// KInstance* KMFIPTablesCompilerFactory::s_instance = 0L;
// KAboutData* KMFIPTablesCompilerFactory::s_about = 0L;
KMFPFInstallerFactory::KMFPFInstallerFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFPFInstallerFactory::KMFPFInstallerFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFIPTablesCompilerFactory" );
}
TQObject* KMFPFInstallerFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFPFInstallerFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFPFInstaller( tqparent, name );
TQObject * obj = new KMFPFInstaller( parent, name );
emit objectCreated( obj );
return obj;
}

@ -51,7 +51,7 @@ class KMFPFInstaller : public KMFPlugin, public KMFInstallerInterface {
TQ_OBJECT
public:
KMFPFInstaller( TQObject* tqparent = 0, const char* name = 0 );
KMFPFInstaller( TQObject* parent = 0, const char* name = 0 );
~KMFPFInstaller();
virtual KMFCompilerInterface* compiler();
virtual void cmdRunFW();
@ -107,9 +107,9 @@ class KMFPFInstallerFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFPFInstallerFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFPFInstallerFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFPFInstallerFactory() {};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
};

@ -55,8 +55,8 @@
namespace KMF {
KMFChainEdit::KMFChainEdit( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallChainEditor( tqparent, name, fl ) {}
KMFChainEdit::KMFChainEdit( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallChainEditor( parent, name, fl ) {}
KMFChainEdit::~KMFChainEdit() {}
void KMFChainEdit::loadChain( IPTChain* chain ) {

@ -29,7 +29,7 @@ class KMFChainEdit : public KMyFirewallChainEditor {
Q_OBJECT
TQ_OBJECT
public:
KMFChainEdit( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFChainEdit( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFChainEdit();
void loadChain( IPTChain* );

@ -42,16 +42,16 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001
#include "../core/kmfiptdoc.h"
namespace KMF {
KMFIPTEditorPart::KMFIPTEditorPart( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name )
: KParts::ReadWritePart( tqparent, name ) {
TQObject *parent, const char *name )
: KParts::ReadWritePart( parent, name ) {
KMFMainWindow *app = 0;
// we need an instance
setInstance( KMFIPTEditorPartFactory::instance() );
app = dynamic_cast<KMFMainWindow*>( tqparent );
app = dynamic_cast<KMFMainWindow*>( parent );
if ( ! app ) {
KMessageBox::error(0,"Oops wrong tqparent class found for kmfinstallerplugin!!!");
KMessageBox::error(0,"Oops wrong parent class found for kmfinstallerplugin!!!");
}
// this should be your custom internal widget
@ -125,9 +125,9 @@ void KMFIPTEditorPart::setReadWrite( bool rw ) {
}
void KMFIPTEditorPart::slotEditDocOptions() {
KMFMainWindow* app = dynamic_cast<KMFMainWindow*>( tqparent() );
KMFMainWindow* app = dynamic_cast<KMFMainWindow*>( parent() );
if ( ! app ) {
KMessageBox::error(0,"Oops wrong tqparent class found for KMFIPTEditorPart!!!");
KMessageBox::error(0,"Oops wrong parent class found for KMFIPTEditorPart!!!");
return;
}
m_editdoc->loadDoc( app->network()->currentDocAsIPTDoc() );
@ -175,7 +175,7 @@ void KMFIPTEditorPart::setModified( bool modified ) {
else
save->setEnabled( false );
// in any event, we want our tqparent to do it's thing
// in any event, we want our parent to do it's thing
ReadWritePart::setModified( modified );
}
@ -276,10 +276,10 @@ KMFIPTEditorPartFactory::~KMFIPTEditorPartFactory() {
}
KParts::Part* KMFIPTEditorPartFactory::createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,
TQObject *parent, const char *name,
const char *classname, const TQStringList& ) {
// Create an instance of our Part
KMFIPTEditorPart * obj = new KMFIPTEditorPart( parentWidget, widgetName, tqparent, name );
KMFIPTEditorPart * obj = new KMFIPTEditorPart( parentWidget, widgetName, parent, name );
// See if we are to be read-write or not
if ( TQCString( classname ) == "KParts::ReadOnlyPart" )

@ -47,7 +47,7 @@ public:
* Default constructor
*/
KMFIPTEditorPart(TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name);
TQObject *parent, const char *name);
/**
* Destructor
@ -113,7 +113,7 @@ public:
KMFIPTEditorPartFactory();
virtual ~KMFIPTEditorPartFactory();
virtual KParts::Part* createPartObject( TQWidget *parentWidget, const char *widgetName,
TQObject *tqparent, const char *name,
TQObject *parent, const char *name,
const char *classname, const TQStringList &args );
static KInstance* instance();

@ -37,7 +37,7 @@
#include "../core/kmfnetwork.h"
#include "../core/kmfundoengine.h"
namespace KMF {
KMFNewChainDlg::KMFNewChainDlg ( TQWidget *tqparent, const char *name, bool modal, WFlags fl ) : KMyFirewallChainEditorNewChain ( tqparent, name, modal, fl ) {
KMFNewChainDlg::KMFNewChainDlg ( TQWidget *parent, const char *name, bool modal, WFlags fl ) : KMyFirewallChainEditorNewChain ( parent, name, modal, fl ) {
kmfdoc = 0;
m_err = new KMFError();
m_err_handler = new KMFErrorHandler ( "KMFNewChainDlg" );

@ -35,7 +35,7 @@ class KMFNewChainDlg : public KMyFirewallChainEditorNewChain {
Q_OBJECT
TQ_OBJECT
public:
KMFNewChainDlg( TQWidget *tqparent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 );
KMFNewChainDlg( TQWidget *parent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 );
~KMFNewChainDlg();
void loadDoc( KMFIPTDoc* doc );

@ -77,8 +77,8 @@ email : chubinger@irrsinnig.org
#include "kmfchainedit.h"
#include "kmfnewchaindlg.h"
namespace KMF {
KMFRuleEdit::KMFRuleEdit( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallRuleEditor( tqparent, name, fl ), KMFRuleEditInterface() {
KMFRuleEdit::KMFRuleEdit( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallRuleEditor( parent, name, fl ), KMFRuleEditInterface() {
if ( !name )
setName( "KMFRuleEdit" );
m_lastDisplayDoc = 0;
@ -963,7 +963,7 @@ void KMFRuleEdit::slotEditChain() {
void KMFRuleEdit::slotEditNetwork() {
kdDebug() << "void KMFRuleEdit::slotEditNewtwork()" << endl;
// kdDebug() << "Parent is: " << tqparent()->className() << endl;
// kdDebug() << "Parent is: " << parent()->className() << endl;
// KMFMyNetworkWidget *wid = new KMFMyNetworkWidget( this, "name" );
// wid->setNetwork( m_network );
// wid->slotUpdateView();

@ -62,7 +62,7 @@ class KMFRuleEdit : public KMyFirewallRuleEditor, public KMFRuleEditInterface {
TQ_OBJECT
public:
KMFRuleEdit( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFRuleEdit( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFRuleEdit();
IPTRule* currRule() const {
return m_rule;

@ -61,8 +61,8 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
#include "core/xmlnames.h"
namespace KMF {
KMFConfigDialog::KMFConfigDialog( TQWidget *tqparent, const char *name, bool modal ) : KDialogBase( IconList, i18n( "Configure" ), Ok | Apply | Cancel,
Ok, tqparent, name, modal, true ) {
KMFConfigDialog::KMFConfigDialog( TQWidget *parent, const char *name, bool modal ) : KDialogBase( IconList, i18n( "Configure" ), Ok | Apply | Cancel,
Ok, parent, name, modal, true ) {
loadIcons();
m_backends = new TQPtrList<TQStringList>;

@ -46,7 +46,7 @@ class KMFConfigDialog : public KDialogBase {
TQ_OBJECT
public:
KMFConfigDialog( TQWidget *tqparent = 0, const char *name = 0, bool modal = true );
KMFConfigDialog( TQWidget *parent = 0, const char *name = 0, bool modal = true );
~KMFConfigDialog();
void setNetwork( KMFNetwork* );
void registerCompiler( KMFCompilerInterface* );

@ -29,7 +29,7 @@
#include <tqstring.h>
#include <tqcheckbox.h>
KMFDisclaimer::KMFDisclaimer( TQWidget *tqparent, const char *name, bool modal, WFlags fl ) : KMyFirewallDisclaimer( tqparent, name, modal, fl ) {}
KMFDisclaimer::KMFDisclaimer( TQWidget *parent, const char *name, bool modal, WFlags fl ) : KMyFirewallDisclaimer( parent, name, modal, fl ) {}
KMFDisclaimer::~KMFDisclaimer() {}
void KMFDisclaimer::accept() {

@ -33,13 +33,13 @@
namespace KMF {
KMFCheckListItem::KMFCheckListItem( TQListView *tqparent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( tqparent, after, text, tt ) {
KMFCheckListItem::KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) {
loadKMFProtocolUsage( obj );
}
KMFCheckListItem::KMFCheckListItem( TQListViewItem *tqparent, const TQString& text , Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( tqparent, text, tt ) {
KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, const TQString& text , Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, text, tt ) {
loadKMFProtocolUsage( obj );
}
KMFCheckListItem::KMFCheckListItem( TQListViewItem *tqparent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( tqparent, after, text, tt ) {
KMFCheckListItem::KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString& text, Type tt, KMFProtocolUsage* obj ) : TQCheckListItem( parent, after, text, tt ) {
loadKMFProtocolUsage( obj );
}

@ -33,9 +33,9 @@ class NetfilterObject;
class KDE_EXPORT KMFCheckListItem : public TQCheckListItem
{
public:
KMFCheckListItem( TQListViewItem *tqparent, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 );
KMFCheckListItem( TQListView *tqparent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 );
KMFCheckListItem( TQListViewItem *tqparent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0);
KMFCheckListItem( TQListViewItem *parent, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 );
KMFCheckListItem( TQListView *parent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0 );
KMFCheckListItem( TQListViewItem *parent, TQListViewItem *after, const TQString&, Type tt = Controller, KMFProtocolUsage* = 0);
~KMFCheckListItem();

@ -30,7 +30,7 @@
#include <kiconloader.h>
namespace KMF {
KMFCheckListOutput::KMFCheckListOutput( TQWidget *tqparent, const char *name , bool modal, WFlags fl ) : TQDialog( tqparent, name, modal, fl ) {
KMFCheckListOutput::KMFCheckListOutput( TQWidget *parent, const char *name , bool modal, WFlags fl ) : TQDialog( parent, name, modal, fl ) {
setCaption( "KMyFirewall" );
TQGridLayout *l_prog = new TQGridLayout( this,4,2,6,11 );
text = new TQLabel( i18n("<qt><b>Trying to guess the system configuration...</b><br>"

@ -33,7 +33,7 @@ class KDE_EXPORT KMFCheckListOutput : public TQDialog {
Q_OBJECT
TQ_OBJECT
public:
KMFCheckListOutput( TQWidget *tqparent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 );
KMFCheckListOutput( TQWidget *parent = 0, const char *name = 0, bool modal = FALSE, WFlags fl = 0 );
~KMFCheckListOutput();
/**

@ -30,8 +30,8 @@
#include "../core/kmfnetwork.h"
#include "../core/kmfundoengine.h"
namespace KMF {
KMFDocumentInfo::KMFDocumentInfo(TQWidget* tqparent, const char* name, bool modal, WFlags fl)
: KMyFirewallDocumentInfo(tqparent,name, modal,fl) {
KMFDocumentInfo::KMFDocumentInfo(TQWidget* parent, const char* name, bool modal, WFlags fl)
: KMyFirewallDocumentInfo(parent,name, modal,fl) {
connect( b_help, TQT_SIGNAL( clicked() ),
this, TQT_SLOT( slotHelp() ) );
connect( b_saveAsTemplate, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotSaveAsTemplate() ) );

@ -29,7 +29,7 @@ class KDE_EXPORT KMFDocumentInfo : public KMyFirewallDocumentInfo {
TQ_OBJECT
public:
KMFDocumentInfo(TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
KMFDocumentInfo(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~KMFDocumentInfo();
/*$PUBLIC_FUNCTIONS$*/

@ -69,8 +69,8 @@
#include "../core/kmferrorhandler.h"
namespace KMF {
KMFGenericInterfaceEditProtocol::KMFGenericInterfaceEditProtocol( TQWidget *tqparent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceEditProtocolWidget( tqparent, name, f ) {
KMFGenericInterfaceEditProtocol::KMFGenericInterfaceEditProtocol( TQWidget *parent, const char *name, WFlags f )
: KMyFirewallGenericInterfaceEditProtocolWidget( parent, name, f ) {
// m_protocolsLoaded = false;
// m_protocols.clear();

@ -48,7 +48,7 @@ class KMFGenericInterfaceEditProtocol : public KMyFirewallGenericInterfaceEditPr
Q_OBJECT
TQ_OBJECT
public:
KMFGenericInterfaceEditProtocol( TQWidget *tqparent = 0, const char *name = 0, WFlags f = 0 );
KMFGenericInterfaceEditProtocol( TQWidget *parent = 0, const char *name = 0, WFlags f = 0 );
~KMFGenericInterfaceEditProtocol();

@ -44,10 +44,10 @@
#include "../core/kmfcompilerinterface.h"
#include "../core/kmfinstallerinterface.h"
namespace KMF {
KMFHostWidget::KMFHostWidget(TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallHostWidget(tqparent, name, fl )
KMFHostWidget::KMFHostWidget(TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallHostWidget(parent, name, fl )
{
kdDebug() << "KMFHostWidget::KMFHostWidget(TQWidget* tqparent, const char* name, WFlags fl)" << endl;
kdDebug() << "KMFHostWidget::KMFHostWidget(TQWidget* parent, const char* name, WFlags fl)" << endl;
connect( m_sb_host_0, TQT_SIGNAL( valueChanged ( int ) ),
this, TQT_SLOT( slotAddressChanged( int ) ) );
connect( m_sb_host_1, TQT_SIGNAL( valueChanged ( int ) ),

@ -33,7 +33,7 @@ class KMFHostWidget : public KMyFirewallHostWidget
TQ_OBJECT
public:
KMFHostWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFHostWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFHostWidget();
/*$PUBLIC_FUNCTIONS$*/
void loadHost( KMFTarget *target );

@ -38,8 +38,8 @@
#include "../core/kmftargetconfig.h"
#include "../core/kmfundoengine.h"
namespace KMF {
KMFInterfaceWidget::KMFInterfaceWidget( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallInterfaceWidget( tqparent, name, fl ) {
KMFInterfaceWidget::KMFInterfaceWidget( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallInterfaceWidget( parent, name, fl ) {
connect( m_b_add_int, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotAddInterface() ) );
connect( m_b_del_int, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotDelInterface() ) );

@ -29,7 +29,7 @@ class KMFInterfaceWidget : public KMyFirewallInterfaceWidget {
TQ_OBJECT
public:
KMFInterfaceWidget( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFInterfaceWidget( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFInterfaceWidget();
/*$PUBLIC_FUNCTIONS$*/
void addInterface( const TQString& interface );

@ -32,7 +32,7 @@
#include "../core/kmfnetwork.h"
#include "../core/kmftarget.h"
namespace KMF {
KMFIPTDocOptions::KMFIPTDocOptions( TQWidget *tqparent, const char *name ) : KMyFirewallIPTDocOptions( tqparent, name ) {}
KMFIPTDocOptions::KMFIPTDocOptions( TQWidget *parent, const char *name ) : KMyFirewallIPTDocOptions( parent, name ) {}
KMFIPTDocOptions::~KMFIPTDocOptions() {}

@ -33,7 +33,7 @@ class KDE_EXPORT KMFIPTDocOptions : public KMyFirewallIPTDocOptions {
Q_OBJECT
TQ_OBJECT
public:
KMFIPTDocOptions( TQWidget *tqparent = 0, const char *name = 0 );
KMFIPTDocOptions( TQWidget *parent = 0, const char *name = 0 );
~KMFIPTDocOptions();
void loadDoc( KMFIPTDoc* doc );

@ -23,7 +23,7 @@
#include "../core/iptable.h"
#include "../core/xmlnames.h"
namespace KMF {
KMFIPTDocView::KMFIPTDocView(TQWidget *tqparent, const char *name) : TQTabWidget(tqparent, name)
KMFIPTDocView::KMFIPTDocView(TQWidget *parent, const char *name) : TQTabWidget(parent, name)
{
loaded = false;
m_iptViewFilter = new KMFListView( 0, "view" );

@ -31,7 +31,7 @@ class KMFIPTDocView : public TQTabWidget
Q_OBJECT
TQ_OBJECT
public:
KMFIPTDocView(TQWidget *tqparent = 0, const char *name = 0);
KMFIPTDocView(TQWidget *parent = 0, const char *name = 0);
~KMFIPTDocView();

@ -39,8 +39,8 @@
// Project includes
#include "../core/ipaddress.h"
namespace KMF {
KMFIPv4AddressWidget::KMFIPv4AddressWidget ( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallIPv4AdddressWidget ( tqparent,name,fl ) {
KMFIPv4AddressWidget::KMFIPv4AddressWidget ( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallIPv4AdddressWidget ( parent,name,fl ) {
// m_address = new IPAddress( 0,0,0,0 );
connect( m_sb_from_1, TQT_SIGNAL( valueChanged( const TQString& ) ),

@ -26,7 +26,7 @@ class KMFIPv4AddressWidget : public KMyFirewallIPv4AdddressWidget {
TQ_OBJECT
public:
KMFIPv4AddressWidget ( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFIPv4AddressWidget ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFIPv4AddressWidget();
void loadIPAddress( int, int, int, int );

@ -39,7 +39,7 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
#include "../kmyfirewall.h"
#include "kmflistviewitem.h"
namespace KMF {
KMFListView::KMFListView( TQWidget *tqparent, const char *name ) : KListView( tqparent, name ) {
KMFListView::KMFListView( TQWidget *parent, const char *name ) : KListView( parent, name ) {
loadIcons();
connect( this, TQT_SIGNAL( sigLoadNode( NetfilterObject* ) ),
this, TQT_SLOT( slotLoadNode( NetfilterObject* ) ) );
@ -155,11 +155,11 @@ void KMFListView::slotUpdateView( NetfilterObject* obj ) {
} else if ( obj->type() == NetfilterObject::CHAIN ) {
if ( IPTChain* chain = dynamic_cast<IPTChain*>( obj ) ) {
if ( KMFListViewItem* item = findKMFItem( chain->name(), 2, chain->uuid() ) ) {
if ( KMFListViewItem* tqparent = dynamic_cast<KMFListViewItem*>( item->tqparent() ) ) {
if ( KMFListViewItem* parent = dynamic_cast<KMFListViewItem*>( item->parent() ) ) {
emit sigLoadNode( m_NetfilterObject );
// kdDebug() << "Starting update for Chain Item..." << endl;
setUpdatesEnabled( false );
setupChainView( chain, tqparent );
setupChainView( chain, parent );
setUpdatesEnabled( true );
triggerUpdate();
// kdDebug() << "Finished update for Chain Item." << endl;
@ -169,10 +169,10 @@ void KMFListView::slotUpdateView( NetfilterObject* obj ) {
} else if ( obj->type() == NetfilterObject::RULE ) {
if ( IPTRule* rule = dynamic_cast<IPTRule*>( obj ) ) {
if ( KMFListViewItem* item = findKMFItem( rule->name(), 2, rule->uuid()) ) {
if ( KMFListViewItem* tqparent = dynamic_cast<KMFListViewItem*>( item->tqparent() ) ) {
if ( KMFListViewItem* parent = dynamic_cast<KMFListViewItem*>( item->parent() ) ) {
// kdDebug() << "Starting update for Rule Item..." << endl;
setUpdatesEnabled( false );
setupRuleView( rule, tqparent );
setupRuleView( rule, parent );
setUpdatesEnabled( true );
triggerUpdate();
// kdDebug() << "Finished update for Rule Item." << endl;
@ -332,16 +332,16 @@ void KMFListView::setupTableView( IPTable* table ) {
item->sort();
}
void KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* tqparent ) {
void KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* parent ) {
// kdDebug() << "KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* item )" << endl;
if ( ! chain || ! tqparent )
if ( ! chain || ! parent )
return ;
KMFListViewItem * item = 0;
item = findKMFItem( chain->name(), 2, chain->uuid(), true, tqparent );
item = findKMFItem( chain->name(), 2, chain->uuid(), true, parent );
if ( ! item ) {
// kdDebug() << "No Item for Chain: " << chain->name() << " found.\nNeed to create a new one." << endl;
item = new KMFListViewItem( tqparent, 0, chain );
item = new KMFListViewItem( parent, 0, chain );
}
item->sortChildItems( 0, true );
item->setTopItem( true );
@ -707,16 +707,16 @@ void KMFListView::setupChainView( IPTChain* chain, KMFListViewItem* tqparent ) {
item->sort();
}
void KMFListView::setupRuleView( IPTRule* rule, KMFListViewItem* tqparent ) {
void KMFListView::setupRuleView( IPTRule* rule, KMFListViewItem* parent ) {
// kdDebug() << "KMFListView::setupRuleView( IPTRule* rule, KMFListViewItem* item )" << endl;
if ( ! rule || ! tqparent )
if ( ! rule || ! parent )
return ;
KMFListViewItem * item = 0;
item = findKMFItem( rule->name(), 2, rule->uuid(), true, tqparent );
item = findKMFItem( rule->name(), 2, rule->uuid(), true, parent );
if ( ! item ) {
// kdDebug() << "No Item for Rule: " << rule->name() << " found.\nNeed to create a new one." << endl;
item = new KMFListViewItem( tqparent, tqparent, rule );
item = new KMFListViewItem( parent, parent, rule );
}
item->sortChildItems( 0, true );
item->setTopItem( true );
@ -881,9 +881,9 @@ void KMFListView::setupRuleView( IPTRule* rule, KMFListViewItem* tqparent ) {
item->sort();
}
void KMFListView::setupRuleOptionView( IPTRuleOption* option, KMFListViewItem* tqparent ) {
// kdDebug() << "void KMFListView::setupRuleOptionView( IPTRuleOption* option, KMFListViewItem* tqparent )" << endl;
if ( ! option || ! tqparent )
void KMFListView::setupRuleOptionView( IPTRuleOption* option, KMFListViewItem* parent ) {
// kdDebug() << "void KMFListView::setupRuleOptionView( IPTRuleOption* option, KMFListViewItem* parent )" << endl;
if ( ! option || ! parent )
return ;
TQString type = option->getOptionType();
@ -893,7 +893,7 @@ void KMFListView::setupRuleOptionView( IPTRuleOption* option, KMFListViewItem* t
TQString name = "";
KMFListViewItem * item = 0;
item = findKMFItem( option->guiName(), 0, option->uuid(),true,tqparent );
item = findKMFItem( option->guiName(), 0, option->uuid(),true,parent );
if ( values.count() < 1 || option->isEmpty() ) {
if ( item ) {
@ -904,7 +904,7 @@ void KMFListView::setupRuleOptionView( IPTRuleOption* option, KMFListViewItem* t
if ( ! item ) {
// // kdDebug() << "No Item for Option: " << *gui_strings->at( 0 ) << " found.\nCreateing a new one." << endl;
item = new KMFListViewItem( tqparent, tqparent, option );
item = new KMFListViewItem( parent, parent, option );
item->setOpen( true );
}

@ -45,7 +45,7 @@ class KDE_EXPORT KMFListView : public KListView {
Q_OBJECT
TQ_OBJECT
public:
KMFListView( TQWidget *tqparent = 0, const char *name = 0 );
KMFListView( TQWidget *parent = 0, const char *name = 0 );
~KMFListView();

@ -35,22 +35,22 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
#include "../core/iptruleoption.h"
#include "../core/netfilterobject.h"
namespace KMF {
KMFListViewItem::KMFListViewItem( KListView *tqparent, NetfilterObject* obj ) : KListViewItem( tqparent ) {
KMFListViewItem::KMFListViewItem( KListView *parent, NetfilterObject* obj ) : KListViewItem( parent ) {
m_top = false;
loadNetfilterObject(obj);
m_inUse = false;
}
KMFListViewItem::KMFListViewItem( KListView *tqparent, KListViewItem *after, NetfilterObject* obj ) : KListViewItem( tqparent, after ) {
KMFListViewItem::KMFListViewItem( KListView *parent, KListViewItem *after, NetfilterObject* obj ) : KListViewItem( parent, after ) {
m_top = false;
loadNetfilterObject(obj);
m_inUse = false;
}
KMFListViewItem::KMFListViewItem( KListViewItem *tqparent, NetfilterObject* obj ) : KListViewItem( tqparent ) {
KMFListViewItem::KMFListViewItem( KListViewItem *parent, NetfilterObject* obj ) : KListViewItem( parent ) {
m_top = false;
loadNetfilterObject(obj);
m_inUse = false;
}
KMFListViewItem::KMFListViewItem( KListViewItem *tqparent, KListViewItem *after, NetfilterObject* obj ) : KListViewItem( tqparent, after ) {
KMFListViewItem::KMFListViewItem( KListViewItem *parent, KListViewItem *after, NetfilterObject* obj ) : KListViewItem( parent, after ) {
m_top = false;
loadNetfilterObject(obj);
m_inUse = false;

@ -42,10 +42,10 @@ class KMFProtocolCategory;
class KDE_EXPORT KMFListViewItem : public KListViewItem {
public:
KMFListViewItem( KListView *tqparent, NetfilterObject* );
KMFListViewItem( KListViewItem *tqparent, NetfilterObject* );
KMFListViewItem( KListView *tqparent, KListViewItem *after, NetfilterObject* );
KMFListViewItem( KListViewItem *tqparent, KListViewItem *after, NetfilterObject* );
KMFListViewItem( KListView *parent, NetfilterObject* );
KMFListViewItem( KListViewItem *parent, NetfilterObject* );
KMFListViewItem( KListView *parent, KListViewItem *after, NetfilterObject* );
KMFListViewItem( KListViewItem *parent, KListViewItem *after, NetfilterObject* );
virtual ~KMFListViewItem();

@ -21,7 +21,7 @@
#include "kmfmainwindow.h"
namespace KMF {
KMFMainWindow::KMFMainWindow( TQWidget* tqparent, const char *name ) : KMyFirewallInterface(), KParts::MainWindow( tqparent, name ) {}
KMFMainWindow::KMFMainWindow( TQWidget* parent, const char *name ) : KMyFirewallInterface(), KParts::MainWindow( parent, name ) {}
KMFMainWindow::~KMFMainWindow() {}

@ -36,7 +36,7 @@ class KDE_EXPORT KMFMainWindow : public KParts::MainWindow, virtual public KMyFi
TQ_OBJECT
public:
KMFMainWindow( TQWidget* tqparent, const char *name );
KMFMainWindow( TQWidget* parent, const char *name );
virtual ~KMFMainWindow();
signals:
void sigUpdateView();

@ -26,7 +26,7 @@
#include "../core/kmferror.h"
namespace KMF {
KMFMultiPortWidget::KMFMultiPortWidget( TQWidget *tqparent, const char *name ) : KMyFirewallMultiPortWidget( tqparent, name ) {
KMFMultiPortWidget::KMFMultiPortWidget( TQWidget *parent, const char *name ) : KMyFirewallMultiPortWidget( parent, name ) {
m_err = new KMFError();
m_err->setErrType( KMFError::OK );
lb_ports->clear();

@ -34,7 +34,7 @@ class KDE_EXPORT KMFMultiPortWidget : public KMyFirewallMultiPortWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFMultiPortWidget( TQWidget *tqparent = 0, const char *name = 0 );
KMFMultiPortWidget( TQWidget *parent = 0, const char *name = 0 );
~KMFMultiPortWidget();
KMFError* getPortString( TQString* value );

@ -47,10 +47,10 @@
#include "../kmfwidgets/kmflistviewitem.h"
namespace KMF {
KMFMyNetworkWidget::KMFMyNetworkWidget(TQWidget* tqparent, const char* name, WFlags fl)
: KMyFirewallMyNetworkWidget(tqparent,name,fl)
KMFMyNetworkWidget::KMFMyNetworkWidget(TQWidget* parent, const char* name, WFlags fl)
: KMyFirewallMyNetworkWidget(parent,name,fl)
{
kdDebug() << "Contructor: KMFMyNetworkWidget::KMFMyNetworkWidget(TQWidget* tqparent, const char* name, WFlags fl)" << endl;
kdDebug() << "Contructor: KMFMyNetworkWidget::KMFMyNetworkWidget(TQWidget* parent, const char* name, WFlags fl)" << endl;
m_network = 0;
m_contextMenu = new KPopupMenu( this, "m_contextMenu" );
@ -109,7 +109,7 @@ void KMFMyNetworkWidget::setupPropertiesView() {
// TQWidget *zonePropsWidget = new TQWidget( this, "ads" );
// TQLabel *desc = new TQLabel( i18n("<qt>Define your network zone here by defining the Networks IP and nettqmask.</qt>") , zonePropsWidget, "ad" );
// TQLabel *desc = new TQLabel( i18n("<qt>Define your network zone here by defining the Networks IP and netmask.</qt>") , zonePropsWidget, "ad" );
//
// TQLabel *desc2 = new TQLabel( i18n("Zone Documentation:") , zonePropsWidget, "ad" );
//

@ -45,7 +45,7 @@ class KMFMyNetworkWidget : public KMyFirewallMyNetworkWidget
TQ_OBJECT
public:
KMFMyNetworkWidget(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFMyNetworkWidget(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFMyNetworkWidget();
/*$PUBLIC_FUNCTIONS$*/
void saveConfig();

@ -44,8 +44,8 @@
#include "kmfipv4addresswidget.h"
namespace KMF {
KMFNetHostPropertiesWidget::KMFNetHostPropertiesWidget ( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallNetHostProperties ( tqparent,name,fl ) {
KMFNetHostPropertiesWidget::KMFNetHostPropertiesWidget ( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallNetHostProperties ( parent,name,fl ) {
m_address_widget = new KMFIPv4AddressWidget( m_frameAddress, "m_address_widget" );

@ -27,7 +27,7 @@ class KMFNetHostPropertiesWidget : public KMyFirewallNetHostProperties {
TQ_OBJECT
public:
KMFNetHostPropertiesWidget ( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFNetHostPropertiesWidget ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFNetHostPropertiesWidget();
/*$PUBLIC_FUNCTIONS$*/

@ -26,8 +26,8 @@
namespace KMF {
KMFNetworkWidget::KMFNetworkWidget(TQWidget *tqparent, const char *name)
: KMyFirewallNetworkWidget(tqparent, name) {
KMFNetworkWidget::KMFNetworkWidget(TQWidget *parent, const char *name)
: KMyFirewallNetworkWidget(parent, name) {
m_allowEdit = true;
connect( m_sb_from_1,TQT_SIGNAL( valueChanged( const TQString& ) ),
this,TQT_SLOT( slotAddressChanged( const TQString& ) ) );
@ -38,7 +38,7 @@ KMFNetworkWidget::KMFNetworkWidget(TQWidget *tqparent, const char *name)
connect( m_sb_from_4,TQT_SIGNAL( valueChanged( const TQString& ) ),
this,TQT_SLOT( slotAddressChanged( const TQString& ) ) );
connect( m_sb_tqmask,TQT_SIGNAL( valueChanged( int ) ),
connect( m_sb_mask,TQT_SIGNAL( valueChanged( int ) ),
this,TQT_SLOT( slotShortMaskChanged( int ) ) );
connect( m_txt_desc,TQT_SIGNAL( textChanged() ),
@ -63,18 +63,18 @@ void KMFNetworkWidget::loadZone( KMFNetZone* zone ) {
m_sb_from_2->setEnabled( true );
m_sb_from_3->setEnabled( true );
m_sb_from_4->setEnabled( true );
m_sb_tqmask->setEnabled( true );
m_sb_mask->setEnabled( true );
m_sb_from_1->setValue( zone->address()->getDigit( 0 ) );
m_sb_from_2->setValue( zone->address()->getDigit( 1 ) );
m_sb_from_3->setValue( zone->address()->getDigit( 2 ) );
m_sb_from_4->setValue( zone->address()->getDigit( 3 ) );
lbl_tqmask->setText( zone->tqmask()->toString() );
lbl_mask->setText( zone->mask()->toString() );
if ( zone->description() != m_txt_desc->text().simplifyWhiteSpace() ) {
m_txt_desc->setText( zone->description() );
}
m_sb_tqmask->setValue( IPAddress::calcLenthToMask( *zone->tqmask() ) );
m_sb_mask->setValue( IPAddress::calcLenthToMask( *zone->mask() ) );
blockAllSignals( false );
}
@ -113,11 +113,11 @@ void KMFNetworkWidget::slotShortMaskChanged( int len ) {
kdDebug() << "void KMFNetworkWidget::slotShortMaskChanged( const TQString& )" << endl;
IPAddress addr = IPAddress::calcNetworkMaskFromLength( len );
blockAllSignals( true );
lbl_tqmask->setText( addr.toString() );
lbl_mask->setText( addr.toString() );
if ( m_allowEdit && m_zone->maskLength() != len ) {
KMFUndoEngine::instance()->startTransaction(
m_zone->rootZone(),
i18n( "Change tqmask length of Zone: %1" ).tqarg( m_zone->guiName() )
i18n( "Change mask length of Zone: %1" ).tqarg( m_zone->guiName() )
);
m_zone->setMaskLength( len );
m_zone->rootZone()->refreshNetworkTree();
@ -159,7 +159,7 @@ void KMFNetworkWidget::blockAllSignals( bool onOff ) {
m_sb_from_3->blockSignals( onOff );
m_sb_from_4->blockSignals( onOff );
m_txt_desc->blockSignals( onOff );
m_sb_tqmask->blockSignals( onOff );
m_sb_mask->blockSignals( onOff );
}
void KMFNetworkWidget::allowEdit( bool allow ) {
@ -169,7 +169,7 @@ void KMFNetworkWidget::allowEdit( bool allow ) {
m_sb_from_3->setEnabled( allow );
m_sb_from_4->setEnabled( allow );
m_txt_desc->setEnabled( allow );
m_sb_tqmask->setEnabled( allow );
m_sb_mask->setEnabled( allow );
}
}

@ -36,7 +36,7 @@ class KDE_EXPORT KMFNetworkWidget : public KMyFirewallNetworkWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFNetworkWidget(TQWidget *tqparent = 0, const char *name = 0);
KMFNetworkWidget(TQWidget *parent = 0, const char *name = 0);
~KMFNetworkWidget();
void loadZone( KMFNetZone* );

@ -31,7 +31,7 @@
#include "kstandarddirs.h"
#include "kdebug.h"
namespace KMF {
KMFNewDocDlg::KMFNewDocDlg( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallNewDocument( tqparent, name, fl ) {
KMFNewDocDlg::KMFNewDocDlg( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallNewDocument( parent, name, fl ) {
KStandardDirs std_dir;
TQString dir = std_dir.findResource( "data", "kmyfirewall/pics/splash_cut.png" );
kdDebug() << "Found Splashscreen at: " << dir << endl;

@ -31,7 +31,7 @@ class KDE_EXPORT KMFNewDocDlg : public KMyFirewallNewDocument {
Q_OBJECT
TQ_OBJECT
public:
KMFNewDocDlg(TQWidget *tqparent=0, const char *name=0, WFlags fl = 0);
KMFNewDocDlg(TQWidget *parent=0, const char *name=0, WFlags fl = 0);
~KMFNewDocDlg();

@ -35,7 +35,7 @@
#include "../core/kmfnetwork.h"
#include "../core/kmfundoengine.h"
namespace KMF {
KMFObjectInfo::KMFObjectInfo(TQWidget *tqparent, const char *name, bool modal ) : KMyFirewallObjectInfo(tqparent, name, modal) {
KMFObjectInfo::KMFObjectInfo(TQWidget *parent, const char *name, bool modal ) : KMyFirewallObjectInfo(parent, name, modal) {
}
KMFObjectInfo::~KMFObjectInfo(){

@ -32,7 +32,7 @@ class KDE_EXPORT KMFObjectInfo : public KMyFirewallObjectInfo {
Q_OBJECT
TQ_OBJECT
public:
KMFObjectInfo(TQWidget *tqparent=0, const char *name=0, bool modal=false);
KMFObjectInfo(TQWidget *parent=0, const char *name=0, bool modal=false);
~KMFObjectInfo();
void loadNetfilterObject( NetfilterObject* );

@ -27,7 +27,7 @@
#include "../core/kmferror.h"
namespace KMF {
KMFPortWidget::KMFPortWidget( TQWidget *tqparent, const char *name ) : KMyFirewallPortWidget( tqparent, name ) {
KMFPortWidget::KMFPortWidget( TQWidget *parent, const char *name ) : KMyFirewallPortWidget( parent, name ) {
m_err = new KMFError();
m_err->setErrType( KMFError::OK );
m_err->setErrMsg( "" );

@ -31,7 +31,7 @@ class KDE_EXPORT KMFPortWidget : public KMyFirewallPortWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFPortWidget( TQWidget *tqparent = 0, const char *name = 0 );
KMFPortWidget( TQWidget *parent = 0, const char *name = 0 );
~KMFPortWidget();
KMFError* getPortString( TQString* value );
void loadPortString( TQString& );

@ -33,7 +33,7 @@
// Project Includes
#include "../core/xmlnames.h"
namespace KMF {
KMFProcOut::KMFProcOut( TQWidget *tqparent, const char *name, WFlags fl ) : TQWidget( tqparent, name, fl ) {
KMFProcOut::KMFProcOut( TQWidget *parent, const char *name, WFlags fl ) : TQWidget( parent, name, fl ) {
stderrbuf = new TQString( "" );
stdoutbuf = new TQString( "" );
m_job_name = XML::Undefined_Value;

@ -37,7 +37,7 @@ class KDE_EXPORT KMFProcOut : public TQWidget {
Q_OBJECT
TQ_OBJECT
public:
KMFProcOut( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFProcOut( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFProcOut();
bool isRunning();

@ -46,8 +46,8 @@
#include "../kmfwidgets/kmflistviewitem.h"
#include "../kmfwidgets/kmfchecklistitem.h"
namespace KMF {
KMFProtocolListView::KMFProtocolListView ( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallProtocolListView ( tqparent,name,fl ) {
KMFProtocolListView::KMFProtocolListView ( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallProtocolListView ( parent,name,fl ) {
m_reloading = false;
loadProtocols();
connect( m_lv_protocols, TQT_SIGNAL( pressed( TQListViewItem* ) ),

@ -36,7 +36,7 @@ class KMFProtocolListView : public KMyFirewallProtocolListView {
TQ_OBJECT
public:
KMFProtocolListView ( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFProtocolListView ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFProtocolListView();
/*$PUBLIC_FUNCTIONS$*/
void setHost( KMFNetHost* host );

@ -43,8 +43,8 @@
#include "../core/kmfprotocolusage.h"
#include "../core/kmfprotocolcategory.h"
namespace KMF {
KMFProtocolPropertiesWidget::KMFProtocolPropertiesWidget ( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallProtocolPropertiesWidget ( tqparent,name,fl ) {
KMFProtocolPropertiesWidget::KMFProtocolPropertiesWidget ( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallProtocolPropertiesWidget ( parent,name,fl ) {
connect( m_cb_limit, TQT_SIGNAL( toggled( bool ) ),
this, TQT_SLOT( slotEnableProtocolLimit( bool ) ) );

@ -32,7 +32,7 @@ class KMFProtocolPropertiesWidget : public KMyFirewallProtocolPropertiesWidget {
TQ_OBJECT
public:
KMFProtocolPropertiesWidget ( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFProtocolPropertiesWidget ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFProtocolPropertiesWidget();
/*$PUBLIC_FUNCTIONS$*/

@ -31,9 +31,9 @@ TQStringList KMFTQTDesignerPlugin::keys() const {
return list;
}
TQWidget* KMFTQTDesignerPlugin::create ( const TQString &key, TQWidget* tqparent, const char* name ) {
TQWidget* KMFTQTDesignerPlugin::create ( const TQString &key, TQWidget* parent, const char* name ) {
if ( key == "KMFIPv4AddressWidget" )
return new KMFIPv4AddressWidget ( tqparent, name );
return new KMFIPv4AddressWidget ( parent, name );
return 0;
}

@ -31,7 +31,7 @@ public:
KMFTQTDesignerPlugin();
~KMFTQTDesignerPlugin();
TQStringList keys() const;
TQWidget* create( const TQString &classname, TQWidget* tqparent = 0, const char* name = 0 );
TQWidget* create( const TQString &classname, TQWidget* parent = 0, const char* name = 0 );
TQString group( const TQString& ) const;
TQIconSet iconSet( const TQString& ) const;
TQString includeFile( const TQString& ) const;

@ -84,8 +84,8 @@ KMFTarget * KMFSelectActiveTarget::selectTarget( KMFNetwork* network, const TQSt
//##### end static
KMFSelectActiveTarget::KMFSelectActiveTarget ( TQWidget* tqparent, const char* name, bool modal, WFlags fl )
: KMyFirewallSelectActiveTarget ( tqparent,name,modal,fl )
KMFSelectActiveTarget::KMFSelectActiveTarget ( TQWidget* parent, const char* name, bool modal, WFlags fl )
: KMyFirewallSelectActiveTarget ( parent,name,modal,fl )
{
m_cmd_ok->setEnabled( false );

@ -32,7 +32,7 @@ class KMFSelectActiveTarget : public KMyFirewallSelectActiveTarget
public: static KMFTarget* selectTarget( KMFNetwork* network, const TQString& msg );
public:
KMFSelectActiveTarget ( TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
KMFSelectActiveTarget ( TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~KMFSelectActiveTarget();
/*$PUBLIC_FUNCTIONS$*/
void loadNetwork( KMFNetwork* );

@ -30,8 +30,8 @@
// Project Includes
#include "../core/kmfconfig.h"
namespace KMF {
KMFSelectInterface::KMFSelectInterface( TQWidget *tqparent, const char *name, bool modal, WFlags fl )
: KMyFirewallSelectInterface( tqparent, name, modal, fl ) {
KMFSelectInterface::KMFSelectInterface( TQWidget *parent, const char *name, bool modal, WFlags fl )
: KMyFirewallSelectInterface( parent, name, modal, fl ) {
m_cob_interface->setBackgroundMode( PaletteBase, PaletteBase );
// m_opt_showOnStartup->setBackgroundMode( PaletteButton );
m_cob_interface->setBackgroundColor( TQColor( 204, 0, 49 ) );

@ -30,7 +30,7 @@ class KDE_EXPORT KMFSelectInterface : public KMyFirewallSelectInterface {
TQ_OBJECT
public:
KMFSelectInterface( TQWidget *tqparent = 0, const char *name = 0, bool modal = true, WFlags fl = 0 );
KMFSelectInterface( TQWidget *parent = 0, const char *name = 0, bool modal = true, WFlags fl = 0 );
~KMFSelectInterface();
/*$PUBLIC_FUNCTIONS$*/

@ -39,8 +39,8 @@
#include "../core/kmftargetconfig.h"
#include "../core/kmfundoengine.h"
namespace KMF {
KMFSystemSettingsLinux::KMFSystemSettingsLinux(TQWidget* tqparent, const char* name, WFlags fl)
: KMyFirewallSystemSettingsLinux(tqparent,name,fl)
KMFSystemSettingsLinux::KMFSystemSettingsLinux(TQWidget* parent, const char* name, WFlags fl)
: KMyFirewallSystemSettingsLinux(parent,name,fl)
{
m_url_ipt_path->setMode( KFile::Files | KFile::LocalOnly );
m_url_mod_path->setMode( KFile::Files | KFile::LocalOnly );

@ -28,7 +28,7 @@ class KMFSystemSettingsLinux : public KMyFirewallSystemSettingsLinux
TQ_OBJECT
public:
KMFSystemSettingsLinux(TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFSystemSettingsLinux(TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFSystemSettingsLinux();
/*$PUBLIC_FUNCTIONS$*/

@ -33,7 +33,7 @@
#include "kmftemplatechooser.h"
namespace KMF {
KMFTemplateChooser::KMFTemplateChooser(TQWidget* tqparent, const char* name, bool modal, WFlags fl) : KMyFirewallTemplateChooser(tqparent,name, modal,fl) {
KMFTemplateChooser::KMFTemplateChooser(TQWidget* parent, const char* name, bool modal, WFlags fl) : KMyFirewallTemplateChooser(parent,name, modal,fl) {
connect( lb_templates, TQT_SIGNAL( highlighted ( int ) ),
this, TQT_SLOT( slotNewTemplateSelected( int ) ) );
connect( lb_templates, TQT_SIGNAL( doubleClicked( TQListBoxItem* ) ),

@ -33,7 +33,7 @@ class KDE_EXPORT KMFTemplateChooser : public KMyFirewallTemplateChooser {
TQ_OBJECT
public:
KMFTemplateChooser(TQWidget* tqparent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
KMFTemplateChooser(TQWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
~KMFTemplateChooser();
/*$PUBLIC_FUNCTIONS$*/

@ -47,7 +47,7 @@ KMFTransactionLog* KMFTransactionLog::instance() {
return s_instance;
}
KMFTransactionLog::KMFTransactionLog ( TQWidget* tqparent, const char* name, WFlags fl ) : KMyFirewallTransactionLog ( tqparent,name,fl ) {
KMFTransactionLog::KMFTransactionLog ( TQWidget* parent, const char* name, WFlags fl ) : KMyFirewallTransactionLog ( parent,name,fl ) {
m_contextMenu = new KPopupMenu( this, "m_contextMenu" );
m_currentTransaction = 0;
m_undoXMLFile = new KTempFile();

@ -54,7 +54,7 @@ class KMFTransactionLog : public KMyFirewallTransactionLog
void slotShowDiff();
void slotKompareExited( KProcess* );
private:
KMFTransactionLog ( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFTransactionLog ( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
KListViewItem* setupListItem( KMFTransaction*, KListView*, KListViewItem*);
// DATA

@ -201,7 +201,7 @@
</property>
<widget class="KIntSpinBox">
<property name="name">
<cstring>m_sb_tqmask</cstring>
<cstring>m_sb_mask</cstring>
</property>
<property name="enabled">
<bool>false</bool>
@ -256,7 +256,7 @@
</widget>
<widget class="TQLabel">
<property name="name">
<cstring>lbl_tqmask</cstring>
<cstring>lbl_mask</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>

@ -79,7 +79,7 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
#include "kmfwidgets/kmftransactionlog.h"
#include "kmfconfigdialog.h"
namespace KMF {
KMyFirewall::KMyFirewall( TQWidget* tqparent, const char *name ) : KMFMainWindow( tqparent, name ) {
KMyFirewall::KMyFirewall( TQWidget* parent, const char *name ) : KMFMainWindow( parent, name ) {
// // kdWarning() << "MyFirewall Starting up..." << endl;
// Initialize the document
parseCommandLineArgs();

@ -70,7 +70,7 @@ class KMyFirewall : public KMFMainWindow {
TQ_OBJECT
public:
KMyFirewall( TQWidget* tqparent = 0, const char *name = 0 );
KMyFirewall( TQWidget* parent = 0, const char *name = 0 );
~KMyFirewall();
// KMFDoc* doc();
KMFNetwork* network();

@ -36,7 +36,7 @@
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditCustomOpt::KMFRuleEditCustomOpt( TQWidget *tqparent, const char *name ) : KMyFirewallRuleEditorCustomRule( tqparent, name ) {
KMFRuleEditCustomOpt::KMFRuleEditCustomOpt( TQWidget *parent, const char *name ) : KMyFirewallRuleEditorCustomRule( parent, name ) {
c_options->setChecked( false );
c_target_options->setChecked( false );
t_target->clear();

@ -31,7 +31,7 @@ class KMFRuleEditCustomOpt : public KMyFirewallRuleEditorCustomRule {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditCustomOpt(TQWidget *tqparent=0, const char *name=0);
KMFRuleEditCustomOpt(TQWidget *parent=0, const char *name=0);
~KMFRuleEditCustomOpt();
void loadRule( IPTRule * );

@ -39,10 +39,10 @@
#include "kmfruleeditcustomopt.h"
namespace KMF {
KMFRuleOptionEditCustom::KMFRuleOptionEditCustom(TQObject *tqparent, const char *name,const TQStringList& )
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditCustom::KMFRuleOptionEditCustom(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditCustom::KMFRuleOptionEditCustom(TQObject *parent, const char *name,const TQStringList& )
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditCustom::KMFRuleOptionEditCustom(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditCustomOpt( 0 , "Edit" );
m_edit->hide();
@ -53,10 +53,10 @@ KMFRuleOptionEditCustom::KMFRuleOptionEditCustom(TQObject *tqparent, const char
KMFRuleOptionEditCustom::~KMFRuleOptionEditCustom() {}
void KMFRuleOptionEditCustom::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -98,14 +98,14 @@ TQWidget* KMFRuleOptionEditCustom::editWidget() {
// // KInstance* KMFRuleOptionEditCustomFactory::s_instance = 0L;
// // KAboutData* KMFRuleOptionEditCustomFactory::s_about = 0L;
KMFRuleOptionEditCustomFactory::KMFRuleOptionEditCustomFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditCustomFactory::KMFRuleOptionEditCustomFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// // s_instance = new KInstance( "KMFRuleOptionEditCustomFactory" );
}
TQObject* KMFRuleOptionEditCustomFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditCustomFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditCustom( tqparent, name );
TQObject * obj = new KMFRuleOptionEditCustom( parent, name );
emit objectCreated( obj );
return obj;
}

@ -48,7 +48,7 @@ class KMFRuleOptionEditCustom : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditCustom(TQObject *tqparent = 0, const char *name = 0, const TQStringList& = TQString());
KMFRuleOptionEditCustom(TQObject *parent = 0, const char *name = 0, const TQStringList& = TQString());
~KMFRuleOptionEditCustom();
void loadRule( IPTRule* rule );
@ -71,11 +71,11 @@ class KMFRuleOptionEditCustomFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditCustomFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditCustomFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditCustomFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -42,7 +42,7 @@
#include "../../core/kmfundoengine.h"
#include "../../core/xmlnames.h"
namespace KMF {
KMFRuleEditorInterface::KMFRuleEditorInterface( TQWidget *tqparent, const char *name, WFlags fl /*,IPTRule* cr */ ) : KMyFirewallRuleEditorInterface( tqparent, name, fl ) {
KMFRuleEditorInterface::KMFRuleEditorInterface( TQWidget *parent, const char *name, WFlags fl /*,IPTRule* cr */ ) : KMyFirewallRuleEditorInterface( parent, name, fl ) {
}
KMFRuleEditorInterface::~KMFRuleEditorInterface() {}

@ -33,7 +33,7 @@ class KMFRuleEditorInterface : public KMyFirewallRuleEditorInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorInterface( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorInterface( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorInterface();
void loadRule( IPTRule* );

@ -25,10 +25,10 @@
#include "kmfruleeditorinterface.h"
namespace KMF {
KMFRuleOptionEditorInterface::KMFRuleOptionEditorInterface(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditorInterface::KMFRuleOptionEditorInterface(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditorInterface::KMFRuleOptionEditorInterface(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditorInterface::KMFRuleOptionEditorInterface(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorInterface( 0 , "Edit", 0 );
m_edit->hide();
@ -43,10 +43,10 @@ KMFRuleOptionEditorInterface::KMFRuleOptionEditorInterface(TQObject *tqparent, c
KMFRuleOptionEditorInterface::~KMFRuleOptionEditorInterface() {}
void KMFRuleOptionEditorInterface::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -88,14 +88,14 @@ TQWidget* KMFRuleOptionEditorInterface::editWidget() {
// KInstance* KMFRuleOptionEditorInterfaceFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditorInterfaceFactory::s_about = 0L;
KMFRuleOptionEditorInterfaceFactory::KMFRuleOptionEditorInterfaceFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditorInterfaceFactory::KMFRuleOptionEditorInterfaceFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditorInterfaceFactory" );
}
TQObject* KMFRuleOptionEditorInterfaceFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditorInterfaceFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditorInterface( tqparent, name );
TQObject * obj = new KMFRuleOptionEditorInterface( parent, name );
emit objectCreated( obj );
return obj;
}

@ -32,7 +32,7 @@ class KMFRuleOptionEditorInterface : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditorInterface(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditorInterface(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditorInterface();
void loadRule( IPTRule* rule );
@ -55,11 +55,11 @@ class KMFRuleOptionEditorInterfaceFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditorInterfaceFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditorInterfaceFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditorInterfaceFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -44,14 +44,14 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
namespace KMF {
/*
* Constructs a KMFRuleEditIP which is a child of 'tqparent', with the
* Constructs a KMFRuleEditIP which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
KMFRuleEditIP::KMFRuleEditIP( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallRuleEditorIP ( tqparent, name, fl ) {
KMFRuleEditIP::KMFRuleEditIP( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallRuleEditorIP ( parent, name, fl ) {
m_CheckInput = new KMFCheckInput();
m_ErrorHandler = new KMFErrorHandler( "KMFRuleEditIP" );
m_err = new KMFError();

@ -29,7 +29,7 @@ class KMFRuleEditIP : public KMyFirewallRuleEditorIP /*, virtual public KMFRuleO
TQ_OBJECT
public:
KMFRuleEditIP( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFRuleEditIP( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFRuleEditIP();
// TQPtrList<TQString>* options;

@ -37,10 +37,10 @@
#include "kmfruleeditip.h"
namespace KMF {
KMFRuleOptionEditIP::KMFRuleOptionEditIP(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditIP::KMFRuleOptionEditIP(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditIP::KMFRuleOptionEditIP(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditIP::KMFRuleOptionEditIP(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditIP( 0 , "Edit", 0 );
m_edit->hide();
@ -51,10 +51,10 @@ KMFRuleOptionEditIP::KMFRuleOptionEditIP(TQObject *tqparent, const char *name)
KMFRuleOptionEditIP::~KMFRuleOptionEditIP() {}
void KMFRuleOptionEditIP::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -96,14 +96,14 @@ TQWidget* KMFRuleOptionEditIP::editWidget() {
// KInstance* KMFRuleOptionEditIPFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditIPFactory::s_about = 0L;
KMFRuleOptionEditIPFactory::KMFRuleOptionEditIPFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditIPFactory::KMFRuleOptionEditIPFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditIPFactory" );
}
TQObject* KMFRuleOptionEditIPFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditIPFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditIP( tqparent, name );
TQObject * obj = new KMFRuleOptionEditIP( parent, name );
emit objectCreated( obj );
return obj;
}

@ -42,7 +42,7 @@ class KMFRuleOptionEditIP : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditIP(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditIP(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditIP();
void loadRule( IPTRule* rule );
@ -65,11 +65,11 @@ class KMFRuleOptionEditIPFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditIPFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditIPFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditIPFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -39,7 +39,7 @@
#include "../../core/kmfundoengine.h"
#include "../../core/xmlnames.h"
namespace KMF {
KMFRuleEditorLimit::KMFRuleEditorLimit( TQWidget *tqparent, const char *name, WFlags fl /*,IPTRule* cr*/ ) : KMyFirewallRuleEditorLimit( tqparent, name, fl ) {}
KMFRuleEditorLimit::KMFRuleEditorLimit( TQWidget *parent, const char *name, WFlags fl /*,IPTRule* cr*/ ) : KMyFirewallRuleEditorLimit( parent, name, fl ) {}
KMFRuleEditorLimit::~KMFRuleEditorLimit() {}
void KMFRuleEditorLimit::loadRule( IPTRule * rule ) {
kdDebug() << "void KMFRuleEditorLimit::loadRule( IPTRule * rule )" << endl;

@ -29,7 +29,7 @@ class KMFRuleEditorLimit : public KMyFirewallRuleEditorLimit {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorLimit( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorLimit( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorLimit();
void loadRule( IPTRule* );

@ -37,10 +37,10 @@
#include "kmfruleeditorlimit.h"
namespace KMF {
KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditLimit::KMFRuleOptionEditLimit(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorLimit( 0 , "Edit", 0 );
m_edit->hide();
@ -52,10 +52,10 @@ KMFRuleOptionEditLimit::~KMFRuleOptionEditLimit() {}
void KMFRuleOptionEditLimit::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditCustom::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -98,14 +98,14 @@ TQWidget* KMFRuleOptionEditLimit::editWidget() {
// KInstance* KMFRuleOptionEditLimitFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditLimitFactory::s_about = 0L;
KMFRuleOptionEditLimitFactory::KMFRuleOptionEditLimitFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditLimitFactory::KMFRuleOptionEditLimitFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditLimitFactory" );
}
TQObject* KMFRuleOptionEditLimitFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditLimitFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditLimit( tqparent, name );
TQObject * obj = new KMFRuleOptionEditLimit( parent, name );
emit objectCreated( obj );
return obj;
}

@ -42,7 +42,7 @@ class KMFRuleOptionEditLimit : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditLimit(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditLimit(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditLimit();
void loadRule( IPTRule* rule );
@ -65,11 +65,11 @@ class KMFRuleOptionEditLimitFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditLimitFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditLimitFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditLimitFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -37,7 +37,7 @@
#include "../../core/kmfnetwork.h"
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditTargetLog::KMFRuleEditTargetLog( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTargetLog( tqparent, name, fl ) {}
KMFRuleEditTargetLog::KMFRuleEditTargetLog( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTargetLog( parent, name, fl ) {}
KMFRuleEditTargetLog::~KMFRuleEditTargetLog() {}
void KMFRuleEditTargetLog::loadRule( IPTRule* rule ) {

@ -29,7 +29,7 @@ class KMFRuleEditTargetLog : public KMyFirewallRuleEditorTargetLog {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditTargetLog( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditTargetLog( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditTargetLog();
TQPtrList<TQString>* options;

@ -25,14 +25,14 @@
#include "kmfruleedittargetlog.h"
namespace KMF {
KMFRuleTargetOptionEditLog::KMFRuleTargetOptionEditLog(TQObject *tqparent, const char *name)
: KMFRuleTargetOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleTargetOptionEditLog::KMFRuleTargetOptionEditLog(TQObject *tqparent, const char *name)" << endl;
KMFRuleTargetOptionEditLog::KMFRuleTargetOptionEditLog(TQObject *parent, const char *name)
: KMFRuleTargetOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleTargetOptionEditLog::KMFRuleTargetOptionEditLog(TQObject *parent, const char *name)" << endl;
m_managedTargets << "LOG";
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditTargetLog( 0 , "Edit", 0 );
m_edit->hide();
@ -43,10 +43,10 @@ KMFRuleTargetOptionEditLog::KMFRuleTargetOptionEditLog(TQObject *tqparent, const
KMFRuleTargetOptionEditLog::~KMFRuleTargetOptionEditLog() {}
void KMFRuleTargetOptionEditLog::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleTargetOptionEditLog::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleTargetOptionEditLog::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -94,14 +94,14 @@ bool KMFRuleTargetOptionEditLog::setTarget( const TQString& target ){
// KInstance* KMFRuleTargetOptionEditLogFactory::s_instance = 0L;
// KAboutData* KMFRuleTargetOptionEditLogFactory::s_about = 0L;
KMFRuleTargetOptionEditLogFactory::KMFRuleTargetOptionEditLogFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleTargetOptionEditLogFactory::KMFRuleTargetOptionEditLogFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleTargetOptionEditLogFactory" );
}
TQObject* KMFRuleTargetOptionEditLogFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleTargetOptionEditLogFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleTargetOptionEditLog( tqparent, name );
TQObject * obj = new KMFRuleTargetOptionEditLog( parent, name );
emit objectCreated( obj );
return obj;
}

@ -30,7 +30,7 @@ class KMFRuleTargetOptionEditLog : public KMFRuleTargetOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditLog(TQObject *tqparent = 0, const char *name = 0);
KMFRuleTargetOptionEditLog(TQObject *parent = 0, const char *name = 0);
~KMFRuleTargetOptionEditLog();
void loadRule( IPTRule* rule );
@ -54,11 +54,11 @@ class KMFRuleTargetOptionEditLogFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditLogFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleTargetOptionEditLogFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleTargetOptionEditLogFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -42,14 +42,14 @@ Author: Christian Hubinger <chubinger@irrsinnig.org>, (C) 2001-2004
namespace KMF {
/*
* Constructs a KMFRuleEditMac which is a child of 'tqparent', with the
* Constructs a KMFRuleEditMac which is a child of 'parent', with the
* name 'name' and widget flags set to 'f'
*
* The dialog will by default be modeless, unless you set 'modal' to
* TRUE to construct a modal dialog.
*/
KMFRuleEditMac::KMFRuleEditMac( TQWidget* tqparent, const char* name, WFlags fl )
: KMyFirewallRuleEditorMac( tqparent, name, fl ) {
KMFRuleEditMac::KMFRuleEditMac( TQWidget* parent, const char* name, WFlags fl )
: KMyFirewallRuleEditorMac( parent, name, fl ) {
m_err_handler = new KMFErrorHandler( "KMFRuleEditMac" );
m_check_input = new KMFCheckInput();
m_err = new KMFError();

@ -31,7 +31,7 @@ class KMFRuleEditMac : public KMyFirewallRuleEditorMac {
TQ_OBJECT
public:
KMFRuleEditMac( TQWidget* tqparent = 0, const char* name = 0, WFlags fl = 0 );
KMFRuleEditMac( TQWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~KMFRuleEditMac();
void loadRule( IPTRule* );

@ -26,10 +26,10 @@
#include "kmfruleeditmac.h"
namespace KMF {
KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditMac( 0 , "Edit", 0 );
m_edit->hide();
@ -41,10 +41,10 @@ KMFRuleOptionEditMAC::KMFRuleOptionEditMAC(TQObject *tqparent, const char *name)
KMFRuleOptionEditMAC::~KMFRuleOptionEditMAC() {}
void KMFRuleOptionEditMAC::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditMAC::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditMAC::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -86,14 +86,14 @@ TQWidget* KMFRuleOptionEditMAC::editWidget() {
// KInstance* KMFRuleOptionEditMACFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditMACFactory::s_about = 0L;
KMFRuleOptionEditMACFactory::KMFRuleOptionEditMACFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditMACFactory::KMFRuleOptionEditMACFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditMACFactory" );
}
TQObject* KMFRuleOptionEditMACFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditMACFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditMAC( tqparent, name );
TQObject * obj = new KMFRuleOptionEditMAC( parent, name );
emit objectCreated( obj );
return obj;
}

@ -46,7 +46,7 @@ class KMFRuleOptionEditMAC : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditMAC(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditMAC(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditMAC();
void loadRule( IPTRule* rule );
@ -69,11 +69,11 @@ class KMFRuleOptionEditMACFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditMACFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditMACFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditMACFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -36,7 +36,7 @@
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditTargetMark::KMFRuleEditTargetMark( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTargetMark( tqparent, name, fl ) {}
KMFRuleEditTargetMark::KMFRuleEditTargetMark( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTargetMark( parent, name, fl ) {}
KMFRuleEditTargetMark::~KMFRuleEditTargetMark() {}
void KMFRuleEditTargetMark::loadRule( IPTRule* rule ) {

@ -31,7 +31,7 @@ class KMFRuleEditTargetMark : public KMyFirewallRuleEditorTargetMark {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditTargetMark( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditTargetMark( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditTargetMark();
void loadRule( IPTRule* );
void accept();

@ -25,14 +25,14 @@
#include "kmfruleedittargetmark.h"
namespace KMF {
KMFRuleTargetOptionEditMark::KMFRuleTargetOptionEditMark(TQObject *tqparent, const char *name)
: KMFRuleTargetOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleTargetOptionEditMark::KMFRuleTargetOptionEditMark(TQObject *tqparent, const char *name)" << endl;
KMFRuleTargetOptionEditMark::KMFRuleTargetOptionEditMark(TQObject *parent, const char *name)
: KMFRuleTargetOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleTargetOptionEditMark::KMFRuleTargetOptionEditMark(TQObject *parent, const char *name)" << endl;
m_managedTargets << "MARK";
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditTargetMark( 0 , "Edit", 0 );
m_edit->hide();
@ -48,10 +48,10 @@ KMFRuleTargetOptionEditMark::KMFRuleTargetOptionEditMark(TQObject *tqparent, con
KMFRuleTargetOptionEditMark::~KMFRuleTargetOptionEditMark() {}
void KMFRuleTargetOptionEditMark::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleTargetOptionEditMark::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleTargetOptionEditMark::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -99,14 +99,14 @@ bool KMFRuleTargetOptionEditMark::setTarget( const TQString& target ){
// KInstance* KMFRuleTargetOptionEditMarkFactory::s_instance = 0L;
// KAboutData* KMFRuleTargetOptionEditMarkFactory::s_about = 0L;
KMFRuleTargetOptionEditMarkFactory::KMFRuleTargetOptionEditMarkFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleTargetOptionEditMarkFactory::KMFRuleTargetOptionEditMarkFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleTargetOptionEditMarkFactory" );
}
TQObject* KMFRuleTargetOptionEditMarkFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleTargetOptionEditMarkFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleTargetOptionEditMark( tqparent, name );
TQObject * obj = new KMFRuleTargetOptionEditMark( parent, name );
emit objectCreated( obj );
return obj;
}

@ -32,7 +32,7 @@ class KMFRuleTargetOptionEditMark : public KMFRuleTargetOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditMark(TQObject *tqparent = 0, const char *name = 0);
KMFRuleTargetOptionEditMark(TQObject *parent = 0, const char *name = 0);
~KMFRuleTargetOptionEditMark();
void loadRule( IPTRule* rule );
@ -57,11 +57,11 @@ class KMFRuleTargetOptionEditMarkFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditMarkFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleTargetOptionEditMarkFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleTargetOptionEditMarkFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -42,7 +42,7 @@ email : chubinger@irrsinnig.org
#include "../../core/kmfnetwork.h"
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditorTargetNat::KMFRuleEditorTargetNat( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTargetNat( tqparent, name, fl ) {
KMFRuleEditorTargetNat::KMFRuleEditorTargetNat( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTargetNat( parent, name, fl ) {
m_CheckInput = new KMFCheckInput();
m_ErrorHandler = new KMFErrorHandler( "KMFRuleEditProtocol" );
m_err = new KMFError() ;

@ -33,7 +33,7 @@ class KMFRuleEditorTargetNat : public KMyFirewallRuleEditorTargetNat {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorTargetNat( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorTargetNat( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorTargetNat();

@ -37,14 +37,14 @@
#include "kmfruleeditortargetnat.h"
namespace KMF {
KMFRuleTargetOptionEditNat::KMFRuleTargetOptionEditNat(TQObject *tqparent, const char *name)
: KMFRuleTargetOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleTargetOptionEditNat::KMFRuleTargetOptionEditNat(TQObject *tqparent, const char *name)" << endl;
KMFRuleTargetOptionEditNat::KMFRuleTargetOptionEditNat(TQObject *parent, const char *name)
: KMFRuleTargetOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleTargetOptionEditNat::KMFRuleTargetOptionEditNat(TQObject *parent, const char *name)" << endl;
m_managedTargets << "SNAT" << "DNAT";
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorTargetNat( 0 , "Edit", 0 );
m_edit->hide();
@ -56,10 +56,10 @@ KMFRuleTargetOptionEditNat::KMFRuleTargetOptionEditNat(TQObject *tqparent, const
KMFRuleTargetOptionEditNat::~KMFRuleTargetOptionEditNat() {}
void KMFRuleTargetOptionEditNat::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleTargetOptionEditNat::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleTargetOptionEditNat::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -111,14 +111,14 @@ bool KMFRuleTargetOptionEditNat::setTarget( const TQString& target ){
// KInstance* KMFRuleTargetOptionEditNatFactory::s_instance = 0L;
// KAboutData* KMFRuleTargetOptionEditNatFactory::s_about = 0L;
KMFRuleTargetOptionEditNatFactory::KMFRuleTargetOptionEditNatFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleTargetOptionEditNatFactory::KMFRuleTargetOptionEditNatFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleTargetOptionEditNatFactory" );
}
TQObject* KMFRuleTargetOptionEditNatFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleTargetOptionEditNatFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleTargetOptionEditNat( tqparent, name );
TQObject * obj = new KMFRuleTargetOptionEditNat( parent, name );
emit objectCreated( obj );
return obj;
}

@ -42,7 +42,7 @@ class KMFRuleTargetOptionEditNat : public KMFRuleTargetOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditNat(TQObject *tqparent = 0, const char *name = 0);
KMFRuleTargetOptionEditNat(TQObject *parent = 0, const char *name = 0);
~KMFRuleTargetOptionEditNat();
void loadRule( IPTRule* rule );
@ -66,11 +66,11 @@ class KMFRuleTargetOptionEditNatFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditNatFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleTargetOptionEditNatFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleTargetOptionEditNatFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -44,7 +44,7 @@
#include "../../kmfwidgets/kmfportwidget.h"
#include "../../kmfwidgets/kmfmultiportwidget.h"
namespace KMF {
KMFRuleEditorProtocol::KMFRuleEditorProtocol( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallRuleEditorProtocol( tqparent, name, fl ) {
KMFRuleEditorProtocol::KMFRuleEditorProtocol( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallRuleEditorProtocol( parent, name, fl ) {
use_multiport = false;
cb_icmp_type->insertItem( "echo-request" );
cb_icmp_type->insertItem( "echo-reply" );
@ -53,8 +53,8 @@ KMFRuleEditorProtocol::KMFRuleEditorProtocol( TQWidget *tqparent, const char *na
cb_icmp_type->insertItem( "router-solicitation" );
cb_icmp_type->insertItem( "timestamp-request" );
cb_icmp_type->insertItem( "timestamp-reply" );
cb_icmp_type->insertItem( "address-tqmask-request" );
cb_icmp_type->insertItem( "address-tqmask-reply" );
cb_icmp_type->insertItem( "address-mask-request" );
cb_icmp_type->insertItem( "address-mask-reply" );
cb_icmp_type->insertItem( "destination-unreachable" );
cb_icmp_type->insertItem( "network-unreachable" );
cb_icmp_type->insertItem( "host-unreachable" );
@ -207,14 +207,14 @@ void KMFRuleEditorProtocol::loadRule( IPTRule* rule ) {
c_tcp_option->setChecked( false );
c_inv_tcp_option->setChecked( false );
sb_tcp_option_num->setValue( 0 );
c_all_tqmask->setChecked( false );
c_none_tqmask->setChecked( false );
c_syn_tqmask->setChecked( false );
c_ack_tqmask->setChecked( false );
c_fin_tqmask->setChecked( false );
c_urg_tqmask->setChecked( false );
c_rst_tqmask->setChecked( false );
c_psh_tqmask->setChecked( false );
c_all_mask->setChecked( false );
c_none_mask->setChecked( false );
c_syn_mask->setChecked( false );
c_ack_mask->setChecked( false );
c_fin_mask->setChecked( false );
c_urg_mask->setChecked( false );
c_rst_mask->setChecked( false );
c_psh_mask->setChecked( false );
c_all_comp->setChecked( false );
c_none_comp->setChecked( false );
c_syn_comp->setChecked( false );
@ -320,7 +320,7 @@ void KMFRuleEditorProtocol::loadRule( IPTRule* rule ) {
}
if ( !flags.isEmpty() && flags != XML::Undefined_Value && flags != XML::BoolOff_Value ) {
kdDebug() << "Option Value --tcp-flags: " << flags << endl;
gb_tqmask->setEnabled( true );
gb_mask->setEnabled( true );
gb_comp->setEnabled( true );
c_tcp_flags->setChecked( true );
int delim = flags.find( " " );
@ -336,21 +336,21 @@ void KMFRuleEditorProtocol::loadRule( IPTRule* rule ) {
kdDebug() << "Flags for Comp: " << comp_lst << endl;
if ( mask_lst.contains( "SYN" ) > 0 )
c_syn_tqmask->setChecked( true );
c_syn_mask->setChecked( true );
if ( mask_lst.contains( "ACK" ) > 0 )
c_ack_tqmask->setChecked( true );
c_ack_mask->setChecked( true );
if ( mask_lst.contains( "FIN" ) > 0 )
c_fin_tqmask->setChecked( true );
c_fin_mask->setChecked( true );
if ( mask_lst.contains( "RST" ) > 0 )
c_rst_tqmask->setChecked( true );
c_rst_mask->setChecked( true );
if ( mask_lst.contains( "URG" ) > 0 )
c_urg_tqmask->setChecked( true );
c_urg_mask->setChecked( true );
if ( mask_lst.contains( "PSH" ) > 0 )
c_psh_tqmask->setChecked( true );
c_psh_mask->setChecked( true );
if ( mask_lst.contains( "NONE" ) > 0 )
c_none_tqmask->setChecked( true );
c_none_mask->setChecked( true );
if ( mask_lst.contains( "ALL" ) > 0 )
c_all_tqmask->setChecked( true );
c_all_mask->setChecked( true );
if ( comp_lst.contains( "SYN" ) > 0 )
c_syn_comp->setChecked( true );
@ -561,28 +561,28 @@ void KMFRuleEditorProtocol::accept() {
if ( c_inv_flags->isChecked() ) {
flags.prepend( "! " );
}
TQString tqmask = "";
TQString mask = "";
if ( ( c_all_comp->isChecked() || c_none_comp->isChecked() || c_syn_comp->isChecked() || c_fin_comp->isChecked() || c_ack_comp->isChecked() || c_rst_comp->isChecked() || c_urg_comp->isChecked() || c_psh_comp->isChecked() ) &&
( c_all_tqmask->isChecked() || c_none_tqmask->isChecked() || c_syn_tqmask->isChecked() || c_fin_tqmask->isChecked() || c_ack_tqmask->isChecked() || c_rst_tqmask->isChecked() || c_urg_tqmask->isChecked() || c_psh_tqmask->isChecked() ) ) {
if ( c_all_tqmask->isChecked() )
tqmask.append( "ALL" );
if ( c_none_tqmask->isChecked() )
tqmask.append( "NONE" );
if ( !c_all_tqmask->isChecked() && !c_none_tqmask->isChecked() ) {
if ( c_syn_tqmask->isChecked() )
tqmask.append( ",SYN" );
if ( c_fin_tqmask->isChecked() )
tqmask.append( ",FIN" );
if ( c_ack_tqmask->isChecked() )
tqmask.append( ",ACK" );
if ( c_rst_tqmask->isChecked() )
tqmask.append( ",RST" );
if ( c_psh_tqmask->isChecked() )
tqmask.append( ",PSH" );
if ( c_urg_tqmask->isChecked() )
tqmask.append( ",URG" );
if ( tqmask.startsWith( "," ) )
tqmask = tqmask.right( tqmask.length() - 1 );
( c_all_mask->isChecked() || c_none_mask->isChecked() || c_syn_mask->isChecked() || c_fin_mask->isChecked() || c_ack_mask->isChecked() || c_rst_mask->isChecked() || c_urg_mask->isChecked() || c_psh_mask->isChecked() ) ) {
if ( c_all_mask->isChecked() )
mask.append( "ALL" );
if ( c_none_mask->isChecked() )
mask.append( "NONE" );
if ( !c_all_mask->isChecked() && !c_none_mask->isChecked() ) {
if ( c_syn_mask->isChecked() )
mask.append( ",SYN" );
if ( c_fin_mask->isChecked() )
mask.append( ",FIN" );
if ( c_ack_mask->isChecked() )
mask.append( ",ACK" );
if ( c_rst_mask->isChecked() )
mask.append( ",RST" );
if ( c_psh_mask->isChecked() )
mask.append( ",PSH" );
if ( c_urg_mask->isChecked() )
mask.append( ",URG" );
if ( mask.startsWith( "," ) )
mask = mask.right( mask.length() - 1 );
}
TQString comp = "";
if ( c_all_comp->isChecked() )
@ -606,7 +606,7 @@ void KMFRuleEditorProtocol::accept() {
if ( comp.startsWith( "," ) )
comp = comp.right( comp.length() - 1 );
flags.append( tqmask );
flags.append( mask );
flags.append( " " );
flags.append( comp );
} else {

@ -35,7 +35,7 @@ class KMFRuleEditorProtocol : public KMyFirewallRuleEditorProtocol {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorProtocol( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorProtocol( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorProtocol();
void loadRule( IPTRule* rule );

@ -37,10 +37,10 @@
#include "kmfruleeditorprotocol.h"
namespace KMF {
KMFRuleOptionEditProtocol::KMFRuleOptionEditProtocol(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditProtocol::KMFRuleOptionEditProtocol(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditProtocol::KMFRuleOptionEditProtocol(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditProtocol::KMFRuleOptionEditProtocol(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorProtocol( 0 , "Edit", 0 );
m_edit->hide();
@ -54,10 +54,10 @@ KMFRuleOptionEditProtocol::~KMFRuleOptionEditProtocol() {}
void KMFRuleOptionEditProtocol::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditProtocol::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditProtocol::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -101,14 +101,14 @@ TQWidget* KMFRuleOptionEditProtocol::editWidget() {
// KInstance* KMFRuleOptionEditProtocolFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditProtocolFactory::s_about = 0L;
KMFRuleOptionEditProtocolFactory::KMFRuleOptionEditProtocolFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditProtocolFactory::KMFRuleOptionEditProtocolFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditProtocolFactory" );
}
TQObject* KMFRuleOptionEditProtocolFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditProtocolFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditProtocol( tqparent, name );
TQObject * obj = new KMFRuleOptionEditProtocol( parent, name );
emit objectCreated( obj );
return obj;
}

@ -44,7 +44,7 @@ class KMFRuleOptionEditProtocol : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditProtocol(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditProtocol(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditProtocol();
void loadRule( IPTRule* rule );
@ -67,11 +67,11 @@ class KMFRuleOptionEditProtocolFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditProtocolFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditProtocolFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditProtocolFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -306,7 +306,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</property>
<widget class="TQGroupBox" row="1" column="1">
<property name="name">
<cstring>gb_tqmask</cstring>
<cstring>gb_mask</cstring>
</property>
<property name="enabled">
<bool>false</bool>
@ -338,7 +338,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</property>
<widget class="TQCheckBox" row="0" column="0">
<property name="name">
<cstring>c_all_tqmask</cstring>
<cstring>c_all_mask</cstring>
</property>
<property name="text">
<string>ALL</string>
@ -346,7 +346,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="0" column="1">
<property name="name">
<cstring>c_none_tqmask</cstring>
<cstring>c_none_mask</cstring>
</property>
<property name="text">
<string>NONE</string>
@ -354,7 +354,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="2" column="1">
<property name="name">
<cstring>c_fin_tqmask</cstring>
<cstring>c_fin_mask</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@ -370,7 +370,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="4" column="1">
<property name="name">
<cstring>c_urg_tqmask</cstring>
<cstring>c_urg_mask</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@ -386,7 +386,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="4" column="0">
<property name="name">
<cstring>c_psh_tqmask</cstring>
<cstring>c_psh_mask</cstring>
</property>
<property name="text">
<string>PSH</string>
@ -394,7 +394,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="3" column="1">
<property name="name">
<cstring>c_rst_tqmask</cstring>
<cstring>c_rst_mask</cstring>
</property>
<property name="sizePolicy">
<sizepolicy>
@ -410,7 +410,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="2" column="0">
<property name="name">
<cstring>c_syn_tqmask</cstring>
<cstring>c_syn_mask</cstring>
</property>
<property name="text">
<string>SYN</string>
@ -418,7 +418,7 @@ You may use a portnumber an inclusive portrange or a service name from &lt;i&gt;
</widget>
<widget class="TQCheckBox" row="3" column="0">
<property name="name">
<cstring>c_ack_tqmask</cstring>
<cstring>c_ack_mask</cstring>
</property>
<property name="text">
<string>ACK</string>
@ -981,7 +981,7 @@ A misuse of this functionality may result in a hard to detect bug in the firewal
<connection>
<sender>c_tcp_flags</sender>
<signal>toggled(bool)</signal>
<receiver>gb_tqmask</receiver>
<receiver>gb_mask</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
@ -1099,15 +1099,15 @@ A misuse of this functionality may result in a hard to detect bug in the firewal
<slot>setDisabled(bool)</slot>
</connection>
<connection>
<sender>c_none_tqmask</sender>
<sender>c_none_mask</sender>
<signal>toggled(bool)</signal>
<receiver>c_all_tqmask</receiver>
<receiver>c_all_mask</receiver>
<slot>setDisabled(bool)</slot>
</connection>
<connection>
<sender>c_all_tqmask</sender>
<sender>c_all_mask</sender>
<signal>toggled(bool)</signal>
<receiver>c_none_tqmask</receiver>
<receiver>c_none_mask</receiver>
<slot>setDisabled(bool)</slot>
</connection>
<connection>
@ -1155,14 +1155,14 @@ A misuse of this functionality may result in a hard to detect bug in the firewal
<tabstop>c_inv_flags</tabstop>
<tabstop>c_inv_tcp_option</tabstop>
<tabstop>c_inv_syn</tabstop>
<tabstop>c_all_tqmask</tabstop>
<tabstop>c_none_tqmask</tabstop>
<tabstop>c_syn_tqmask</tabstop>
<tabstop>c_fin_tqmask</tabstop>
<tabstop>c_ack_tqmask</tabstop>
<tabstop>c_rst_tqmask</tabstop>
<tabstop>c_psh_tqmask</tabstop>
<tabstop>c_urg_tqmask</tabstop>
<tabstop>c_all_mask</tabstop>
<tabstop>c_none_mask</tabstop>
<tabstop>c_syn_mask</tabstop>
<tabstop>c_fin_mask</tabstop>
<tabstop>c_ack_mask</tabstop>
<tabstop>c_rst_mask</tabstop>
<tabstop>c_psh_mask</tabstop>
<tabstop>c_urg_mask</tabstop>
<tabstop>c_all_comp</tabstop>
<tabstop>c_none_comp</tabstop>
<tabstop>c_syn_comp</tabstop>

@ -38,7 +38,7 @@
#include "../../core/kmfnetwork.h"
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditorState::KMFRuleEditorState( TQWidget *tqparent, const char *name, WFlags fl /*,IPTRule* cr*/ ) : KMyFirewallRuleEditorState( tqparent, name, fl ) {}
KMFRuleEditorState::KMFRuleEditorState( TQWidget *parent, const char *name, WFlags fl /*,IPTRule* cr*/ ) : KMyFirewallRuleEditorState( parent, name, fl ) {}
KMFRuleEditorState::~KMFRuleEditorState() {}
void KMFRuleEditorState::loadRule( IPTRule *rule ) {

@ -28,7 +28,7 @@ class KMFRuleEditorState : public KMyFirewallRuleEditorState {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorState( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorState( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorState();
TQPtrList<TQString>* options;

@ -37,10 +37,10 @@
#include "kmfruleeditorstate.h"
namespace KMF {
KMFRuleOptionEditState::KMFRuleOptionEditState(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditState::KMFRuleOptionEditState(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditState::KMFRuleOptionEditState(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditState::KMFRuleOptionEditState(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorState( 0 , "Edit", 0 );
m_edit->hide();
@ -52,10 +52,10 @@ KMFRuleOptionEditState::KMFRuleOptionEditState(TQObject *tqparent, const char *n
KMFRuleOptionEditState::~KMFRuleOptionEditState() {}
void KMFRuleOptionEditState::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditState::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditState::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -94,14 +94,14 @@ TQWidget* KMFRuleOptionEditState::editWidget() {
// KInstance* KMFRuleOptionEditStateFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditStateFactory::s_about = 0L;
KMFRuleOptionEditStateFactory::KMFRuleOptionEditStateFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditStateFactory::KMFRuleOptionEditStateFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditStateFactory" );
}
TQObject* KMFRuleOptionEditStateFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditStateFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditState( tqparent, name );
TQObject * obj = new KMFRuleOptionEditState( parent, name );
emit objectCreated( obj );
return obj;
}

@ -42,7 +42,7 @@ class KMFRuleOptionEditState : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditState(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditState(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditState();
void loadRule( IPTRule* rule );
@ -65,11 +65,11 @@ class KMFRuleOptionEditStateFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditStateFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditStateFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditStateFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -38,7 +38,7 @@
#include "../../core/kmfnetwork.h"
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditorTos::KMFRuleEditorTos( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTos( tqparent, name, fl ) {
KMFRuleEditorTos::KMFRuleEditorTos( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTos( parent, name, fl ) {
m_option_type = "CHECKTOS";
}
KMFRuleEditorTos::~KMFRuleEditorTos() {}

@ -31,7 +31,7 @@ class KMFRuleEditorTos : public KMyFirewallRuleEditorTos {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorTos( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorTos( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorTos();
TQPtrList<TQString>* options;

@ -37,10 +37,10 @@
#include "kmfruleeditortos.h"
namespace KMF {
KMFRuleOptionEditTos::KMFRuleOptionEditTos(TQObject *tqparent, const char *name)
: KMFRuleOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleOptionEditTos::KMFRuleOptionEditTos(TQObject *tqparent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
KMFRuleOptionEditTos::KMFRuleOptionEditTos(TQObject *parent, const char *name)
: KMFRuleOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleOptionEditTos::KMFRuleOptionEditTos(TQObject *parent, const char *name)" << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorTos( 0 , "Edit", 0 );
m_edit->hide();
@ -53,10 +53,10 @@ KMFRuleOptionEditTos::~KMFRuleOptionEditTos() {}
void KMFRuleOptionEditTos::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleOptionEditTos::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleOptionEditTos::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -99,14 +99,14 @@ TQWidget* KMFRuleOptionEditTos::editWidget() {
// KInstance* KMFRuleOptionEditTosFactory::s_instance = 0L;
// KAboutData* KMFRuleOptionEditTosFactory::s_about = 0L;
KMFRuleOptionEditTosFactory::KMFRuleOptionEditTosFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleOptionEditTosFactory::KMFRuleOptionEditTosFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleOptionEditTosFactory" );
}
TQObject* KMFRuleOptionEditTosFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleOptionEditTosFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleOptionEditTos( tqparent, name );
TQObject * obj = new KMFRuleOptionEditTos( parent, name );
emit objectCreated( obj );
return obj;
}

@ -42,7 +42,7 @@ class KMFRuleOptionEditTos : public KMFRuleOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditTos(TQObject *tqparent = 0, const char *name = 0);
KMFRuleOptionEditTos(TQObject *parent = 0, const char *name = 0);
~KMFRuleOptionEditTos();
void loadRule( IPTRule* rule );
@ -65,11 +65,11 @@ class KMFRuleOptionEditTosFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleOptionEditTosFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleOptionEditTosFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleOptionEditTosFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

@ -39,7 +39,7 @@
#include "../../core/kmfundoengine.h"
namespace KMF {
KMFRuleEditorTos::KMFRuleEditorTos( TQWidget *tqparent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTos( tqparent, name, fl ) {
KMFRuleEditorTos::KMFRuleEditorTos( TQWidget *parent, const char *name, WFlags fl ) : KMyFirewallRuleEditorTos( parent, name, fl ) {
m_option_type = "SETTOS";
}
KMFRuleEditorTos::~KMFRuleEditorTos() {}

@ -31,7 +31,7 @@ class KMFRuleEditorTos : public KMyFirewallRuleEditorTos {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleEditorTos( TQWidget *tqparent = 0, const char *name = 0, WFlags fl = 0 );
KMFRuleEditorTos( TQWidget *parent = 0, const char *name = 0, WFlags fl = 0 );
~KMFRuleEditorTos();
TQPtrList<TQString>* options;

@ -25,14 +25,14 @@
#include "kmfruleeditortos.h"
namespace KMF {
KMFRuleTargetOptionEditTos::KMFRuleTargetOptionEditTos(TQObject *tqparent, const char *name)
: KMFRuleTargetOptionEditInterface(tqparent, name) {
kdDebug() <<"KMFRuleTargetOptionEditTos::KMFRuleTargetOptionEditTos(TQObject *tqparent, const char *name)" << endl;
KMFRuleTargetOptionEditTos::KMFRuleTargetOptionEditTos(TQObject *parent, const char *name)
: KMFRuleTargetOptionEditInterface(parent, name) {
kdDebug() <<"KMFRuleTargetOptionEditTos::KMFRuleTargetOptionEditTos(TQObject *parent, const char *name)" << endl;
m_managedTargets << "TOS" << "REJECT";
kdDebug() << "Parent has Type: " << tqparent->className() << endl;
kdDebug() << "Parent has Type: " << parent->className() << endl;
m_edit = new KMFRuleEditorTos( 0 , "Edit", 0 );
m_edit->hide();
@ -44,10 +44,10 @@ KMFRuleTargetOptionEditTos::KMFRuleTargetOptionEditTos(TQObject *tqparent, const
KMFRuleTargetOptionEditTos::~KMFRuleTargetOptionEditTos() {}
void KMFRuleTargetOptionEditTos::slotShowOverview() {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( tqparent() ) ) {
if ( KMFRuleEditInterface* ruleedit = dynamic_cast<KMFRuleEditInterface*> ( parent() ) ) {
ruleedit->showOverview();
} else {
kdDebug() << "KMFRuleTargetOptionEditTos::slotShowOverview(): tqparent() not of type KMFRuleEditInterface" << endl;
kdDebug() << "KMFRuleTargetOptionEditTos::slotShowOverview(): parent() not of type KMFRuleEditInterface" << endl;
}
}
@ -98,14 +98,14 @@ bool KMFRuleTargetOptionEditTos::setTarget( const TQString& target ){
// KInstance* KMFRuleTargetOptionEditTosFactory::s_instance = 0L;
// KAboutData* KMFRuleTargetOptionEditTosFactory::s_about = 0L;
KMFRuleTargetOptionEditTosFactory::KMFRuleTargetOptionEditTosFactory( TQObject* tqparent, const char* name )
: KLibFactory( tqparent, name ) {
KMFRuleTargetOptionEditTosFactory::KMFRuleTargetOptionEditTosFactory( TQObject* parent, const char* name )
: KLibFactory( parent, name ) {
// s_instance = new KInstance( "KMFRuleTargetOptionEditTosFactory" );
}
TQObject* KMFRuleTargetOptionEditTosFactory::createObject( TQObject* tqparent, const char* name,
TQObject* KMFRuleTargetOptionEditTosFactory::createObject( TQObject* parent, const char* name,
const char*, const TQStringList & ) {
TQObject * obj = new KMFRuleTargetOptionEditTos( tqparent, name );
TQObject * obj = new KMFRuleTargetOptionEditTos( parent, name );
emit objectCreated( obj );
return obj;
}

@ -30,7 +30,7 @@ class KMFRuleTargetOptionEditTos : public KMFRuleTargetOptionEditInterface {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditTos(TQObject *tqparent = 0, const char *name = 0);
KMFRuleTargetOptionEditTos(TQObject *parent = 0, const char *name = 0);
~KMFRuleTargetOptionEditTos();
void loadRule( IPTRule* rule );
@ -54,11 +54,11 @@ class KMFRuleTargetOptionEditTosFactory : public KLibFactory {
Q_OBJECT
TQ_OBJECT
public:
KMFRuleTargetOptionEditTosFactory( TQObject *tqparent = 0, const char *name = 0 );
KMFRuleTargetOptionEditTosFactory( TQObject *parent = 0, const char *name = 0 );
virtual ~KMFRuleTargetOptionEditTosFactory() {
/* delete s_instance; */
};
virtual TQObject* createObject( TQObject* tqparent = 0, const char* pname = 0,
virtual TQObject* createObject( TQObject* parent = 0, const char* pname = 0,
const char* name = TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList() );
/* static KInstance* instance(); */

Loading…
Cancel
Save