@ -70,7 +70,7 @@ KMFNetZone::KMFNetZone( NetfilterObject *tqparent, const char* name, const TQStr
if ( KMFNetZone * zone = dynamic_cast < KMFNetZone * > ( tqparent ) ) {
m_zoneType = NODE ;
m_zone = zone ;
setZone ( * m_zone - > address ( ) , m_zone - > tq maskLength( ) /* , *m_zone->tqmask() */ ) ;
setZone ( * m_zone - > address ( ) , m_zone - > maskLength( ) /* , *m_zone->tqmask() */ ) ;
} else if ( KMFGenericDoc * doc = dynamic_cast < KMFGenericDoc * > ( tqparent ) ) {
m_zoneType = ROOT ;
m_doc = doc ;
@ -223,13 +223,13 @@ void KMFNetZone::setMaskLength( int len ){
// kdDebug() << "void KMFNetZone::setMaskLength( int len )" << endl;
if ( len < 0 | | len > 32 ) {
kdDebug ( ) < < " ERROR: Mask Lengh invalid: " < < len < < endl ;
m_ tq maskLen = - 1 ;
m_ maskLen = - 1 ;
return ;
}
if ( m_ tq maskLen = = len ) {
if ( m_ maskLen = = len ) {
return ;
}
m_ tq maskLen = len ;
m_ maskLen = len ;
changed ( ) ;
}
@ -391,9 +391,9 @@ bool KMFNetZone::protocolInherited( const TQUuid& uuid ) const {
return m_zone - > protocolInherited ( uuid ) ;
}
void KMFNetZone : : setZone ( const IPAddress & from , int tq maskLen ) {
void KMFNetZone : : setZone ( const IPAddress & from , int maskLen ) {
m_address - > setAddress ( from . toString ( ) ) ;
setMaskLength ( tq maskLen ) ;
setMaskLength ( maskLen ) ;
changed ( ) ;
}
@ -532,7 +532,7 @@ TQString KMFNetZone::toString() {
" Zone: " + address ( ) - > toString ( ) +
" /%1 " +
" name: " + NetfilterObject : : name ( ) +
" GUIName: " + guiName ( ) ) . tqarg ( tq maskLength( ) ) ;
" GUIName: " + guiName ( ) ) . tqarg ( maskLength( ) ) ;
return ret ;
}
@ -601,12 +601,12 @@ void KMFNetZone::refreshNetworkTree() {
KMFNetZone * thisTry = allZones - > at ( j ) ;
if ( thisTry ! = currZone & & ! (
( thisTry - > address ( ) = = currZone - > address ( ) ) = = IPAddress : : ETQUAL & &
thisTry - > tq maskLength( ) = = currZone - > tq maskLength( )
thisTry - > maskLength( ) = = currZone - > maskLength( )
) & &
IPAddress : : hostsOnSameNetwork ( * thisTry - > address ( ) , * currZone - > address ( ) , thisTry - > tq maskLength( ) ) ) {
IPAddress : : hostsOnSameNetwork ( * thisTry - > address ( ) , * currZone - > address ( ) , thisTry - > maskLength( ) ) ) {
thisTry - > placeZoneInZone ( currZone ) ;
// allZones->remove( thisTry );
// kdDebug() << "Add Zone: " << currZone->toString() << endl;
@ -646,7 +646,7 @@ void KMFNetZone::refreshNetworkTree() {
KMFTarget * currHost = allHosts - > at ( i ) ;
for ( int j = allZones - > count ( ) - 1 ; allZones - > count ( ) > 0 & & j > = 0 ; j - - ) {
KMFNetZone * currZone = allZones - > at ( j ) ;
if ( IPAddress : : hostsOnSameNetwork ( * currZone - > address ( ) , * currHost - > address ( ) , currZone - > tq maskLength( ) ) ) {
if ( IPAddress : : hostsOnSameNetwork ( * currZone - > address ( ) , * currHost - > address ( ) , currZone - > maskLength( ) ) ) {
currZone - > placeHostInZone ( currHost ) ;
/* kdDebug() << "Add Host: " << currHost->toString() << endl;
kdDebug ( ) < < " to Zone : " < < currZone - > toString ( ) < < endl ; */
@ -799,7 +799,7 @@ const TQDomDocument& KMFNetZone::getDOMTree() {
TQDomElement tqmask = doc . createElement ( XML : : NetMask_Element ) ;
root . appendChild ( tqmask ) ;
tqmask . setAttribute ( XML : : Address_Attribute , tq maskLength( ) ) ;
tqmask . setAttribute ( XML : : Address_Attribute , maskLength( ) ) ;
TQPtrListIterator < KMFNetZone > it ( m_zones ) ;
while ( it . current ( ) ) {