From 69cac65817d949cda2672ec4f0aa73d5e66a0ba1 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 22 Jun 2011 00:30:31 +0000 Subject: TQt4 port kdenetwork This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1237912 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- krfb/srvloc/kinetinterfacewatcher.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'krfb/srvloc/kinetinterfacewatcher.h') diff --git a/krfb/srvloc/kinetinterfacewatcher.h b/krfb/srvloc/kinetinterfacewatcher.h index 75d72ef8..d767e597 100644 --- a/krfb/srvloc/kinetinterfacewatcher.h +++ b/krfb/srvloc/kinetinterfacewatcher.h @@ -45,23 +45,24 @@ class KInetInterfaceWatcherPrivate; */ class KInetInterfaceWatcher : public TQObject { Q_OBJECT + TQ_OBJECT public: /** * Creates a new KInetInterfaceWatcher. Before you can use it, * you must @ref start() it. * * @param interface the name of the interface to watch (e.g.'eth0') - * or TQString::null to watch all interfaces + * or TQString() to watch all interfaces * @param minInterval the minimum interval between two checks in * seconds. Be careful not to check too often, to * avoid unneccessary wasting of CPU time */ - KInetInterfaceWatcher(const TQString &interface = TQString::null, + KInetInterfaceWatcher(const TQString &interface = TQString(), int minInterval = 60); /** * Returns the name of the interface that is being watched. - * @return the name of the interface, or TQString::null if all + * @return the name of the interface, or TQString() if all * interfaces are watched */ TQString interface() const; @@ -71,14 +72,14 @@ public: * or all network interfaces. When one of them changed. * it emits a @ref changed() signal. * @param interface the name of the interface to watch (e.g.'eth0') - * or TQString::null to watch all interfaces + * or TQString() to watch all interfaces * @param minInterval the minimum interval between two checks in * seconds. Be careful not to check too often, to * avoid unneccessary wasting of CPU time * @see changed() * @see stop() */ - void start(const TQString &interface = TQString::null, + void start(const TQString &interface = TQString(), int minInterval = 60); /** @@ -109,7 +110,7 @@ signals: * address has changed. * * @param interfaceName the name of the interface that is watched, - * by the emitter, or TQString::null if all + * by the emitter, or TQString() if all * interfaces are being watched * @see start() */ -- cgit v1.2.1