diff options
Diffstat (limited to 'wifi/kcmwifi/wificonfig.h')
-rw-r--r-- | wifi/kcmwifi/wificonfig.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/wifi/kcmwifi/wificonfig.h b/wifi/kcmwifi/wificonfig.h index b9186298..b78e32f6 100644 --- a/wifi/kcmwifi/wificonfig.h +++ b/wifi/kcmwifi/wificonfig.h @@ -20,8 +20,8 @@ #ifndef WIFICONFIG_H #define WIFICONFIG_H -#include <qstring.h> -#include <qvaluelist.h> +#include <tqstring.h> +#include <tqvaluelist.h> #include "kcmwifi.h" @@ -33,20 +33,20 @@ enum KeyStates { EMPTY=0, INVALID=1, HEX_64=2, HEX_128=3, HEX_256=4, STRING_64=5 class Key { public: - Key( const QString &key ); + Key( const TQString &key ); Key(); - QString key() const { return m_key; } - static KeyStates isValid( QString keyCandidate ); - QString rawKey() const; + TQString key() const { return m_key; } + static KeyStates isValid( TQString keyCandidate ); + TQString rawKey() const; - void setKey( const QString &key ); + void setKey( const TQString &key ); protected: - QString m_key; + TQString m_key; }; -typedef QValueList<Key> KeyList; +typedef TQValueList<Key> KeyList; class IfConfig { @@ -61,29 +61,29 @@ class IfConfig void load( KConfig *config, int i ); void save( KConfig *config, int i ); - QString speedAsString(); - QString wifimodeAsString(); - QString cryptomodeAsString(); - QString powermodeAsString(); + TQString speedAsString(); + TQString wifimodeAsString(); + TQString cryptomodeAsString(); + TQString powermodeAsString(); int activeKeyId(); Key activeKey(); - static Speed convertToSpeedFromString( const QString &s ); - static WifiMode convertToWifiModeFromString( const QString &s ); - static PowerMode convertToPowerModeFromString( const QString &s ); - static CryptoMode convertToCryptoModeFromString( const QString &s ); + static Speed convertToSpeedFromString( const TQString &s ); + static WifiMode convertToWifiModeFromString( const TQString &s ); + static PowerMode convertToPowerModeFromString( const TQString &s ); + static CryptoMode convertToCryptoModeFromString( const TQString &s ); - void speedFromString( const QString &s ); - void wifimodeFromString( const QString &s ); - void powermodeFromString( const QString &s ); - void cryptomodeFromString( const QString &s ); + void speedFromString( const TQString &s ); + void wifimodeFromString( const TQString &s ); + void powermodeFromString( const TQString &s ); + void cryptomodeFromString( const TQString &s ); - QString m_networkName; - QString m_interface; + TQString m_networkName; + TQString m_interface; WifiMode m_wifiMode; Speed m_speed; bool m_runScript; - QString m_connectScript; + TQString m_connectScript; bool m_useCrypto; CryptoMode m_cryptoMode; @@ -101,7 +101,7 @@ class WifiConfig : QObject Q_OBJECT public: static WifiConfig *instance(); - QString autoDetectInterface(); + TQString autoDetectInterface(); ~WifiConfig(); void load(); @@ -120,7 +120,7 @@ class WifiConfig : QObject KSimpleConfig *m_config; static WifiConfig *m_instance; - QString m_detectedInterface; + TQString m_detectedInterface; }; #endif // WIFICONFIG_H |