summaryrefslogtreecommitdiffstats
path: root/kmyfirewall/core/ipaddress.h
diff options
context:
space:
mode:
Diffstat (limited to 'kmyfirewall/core/ipaddress.h')
-rw-r--r--kmyfirewall/core/ipaddress.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/kmyfirewall/core/ipaddress.h b/kmyfirewall/core/ipaddress.h
index b9a71cc..9bf8b2c 100644
--- a/kmyfirewall/core/ipaddress.h
+++ b/kmyfirewall/core/ipaddress.h
@@ -27,8 +27,8 @@
*/
// QT includes
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
// KDE includes
#include <kdemacros.h>
@@ -53,7 +53,7 @@ public:
/** Set the address to the address given in the string.
Returns false if the address is invalid */
- bool setAddress( const QString& );
+ bool setAddress( const TQString& );
IPAddress& plus(int); // FIXME: remove that!!!
@@ -64,11 +64,11 @@ public:
/** Return the int for the given posintion in the address */
int getDigit( int num ) const;
- /** returns a QString holding the address e.g. 123.234.123.234 */
- const QString& toString() const;
+ /** returns a TQString holding the address e.g. 123.234.123.234 */
+ const TQString& toString() const;
/** Return values for the comparision operator== */
- enum { EQUAL, BIGGER, SMALLER };
+ enum { ETQUAL, BIGGER, SMALLER };
private:
int m_digits[ NUMDIGITS ];
@@ -79,25 +79,25 @@ private:
// static stuff
public:
- /** Calculates the netmask from the mask length
+ /** Calculates the nettqmask from the tqmask length
e.g. 255.255.255.0 -> 24 */
- static IPAddress& calcNetworkMaskFromLength( int maskLen );
+ static IPAddress& calcNetworkMaskFromLength( int tqmaskLen );
- /** Calculates the given netmask length to the net mask.
+ /** Calculates the given nettqmask length to the net tqmask.
e.g. 24 -> 255.255.255.0 */
static int calcLenthToMask( IPAddress& );
- /** Returns true it the given adddress is a valid net mask */
+ /** Returns true it the given adddress is a valid net tqmask */
static bool isValidMask( IPAddress& );
- /** Returns true it the given adddress is a valid net mask */
+ /** Returns true it the given adddress is a valid net tqmask */
static bool isValidAddress( IPAddress& );
/** Checks if the the addresses are on the same network. */
- static bool hostsOnSameNetwork( IPAddress&, IPAddress&, int maskLen );
+ static bool hostsOnSameNetwork( IPAddress&, IPAddress&, int tqmaskLen );
/** Checks if the the addresses are on the same network. */
- static bool hostsOnSameNetwork( IPAddress&, IPAddress&, IPAddress& mask );
+ static bool hostsOnSameNetwork( IPAddress&, IPAddress&, IPAddress& tqmask );
private:
private: static int calcLenthToMaskDigit( int nMask, int *nextOne );