diff options
Diffstat (limited to 'src/preferencesdialog.h')
-rw-r--r-- | src/preferencesdialog.h | 175 |
1 files changed, 88 insertions, 87 deletions
diff --git a/src/preferencesdialog.h b/src/preferencesdialog.h index 20b88db..ff89dea 100644 --- a/src/preferencesdialog.h +++ b/src/preferencesdialog.h @@ -22,11 +22,11 @@ #include <kdialogbase.h> -#include <qptrlist.h> -#include <qstringlist.h> -#include <qtextedit.h> -#include <qcolor.h> -#include <qscrollview.h> +#include <tqptrlist.h> +#include <tqstringlist.h> +#include <tqtextedit.h> +#include <tqcolor.h> +#include <tqscrollview.h> #include "vpnaccountdata.h" @@ -66,6 +66,7 @@ class PreferencesDialog : public KDialogBase { Q_OBJECT + TQ_OBJECT public: /** @@ -77,7 +78,7 @@ public: * @param showOnlyProfiles view mode. true: show as profile manager, false: show as preferences dialog * @return */ - PreferencesDialog( QWidget *parent, QApplication *app,QTextEdit *LogOutput, KVpncConfig *GlobalConfig, bool showOnlyProfiles); + PreferencesDialog( TQWidget *parent, TQApplication *app,TQTextEdit *LogOutput, KVpncConfig *GlobalConfig, bool showOnlyProfiles); ~PreferencesDialog(); public slots: @@ -86,13 +87,13 @@ public slots: void slotApply(); void authTypeChanged( int authtype ); void connectionTypeChanged( int connectiontype ); - void profileChanged( const QString& itemtext ); + void profileChanged( const TQString& itemtext ); void saveSessionClicked(); void deleteSessionClicked(); void renameSessionClicked(); void newSessionClicked(); void importCertificate(); - void pageChanged(QWidget *); + void pageChanged(TQWidget *); void userAuthToggled(bool); void useUdpToggled(bool); void useSpecialServerSmartcardificateToggled(bool); @@ -103,54 +104,54 @@ public slots: void useKwalletToggled(bool); void dpdToggled(bool); void useCiscoCertStoreToggled(bool); - void natModeToggled( const QString &); - void slotProfileCreated(QString Name); + void natModeToggled( const TQString &); + void slotProfileCreated(TQString Name); private slots: - void OpenvpnPathChanged(const QString&); - void FreeswanPathChanged(const QString&); - void PppdPathChanged(const QString&); - void PptpPathChanged(const QString&); - void RacoonPathChanged(const QString&); - void VpncPathChanged(const QString&); - void CiscoVpncPathChanged(const QString&); - void L2tpdPathChanged(const QString&); - void Xl2tpdPathChanged(const QString&); - void Openl2tpPathChanged(const QString&); - void VtundPathChanged(const QString&); - void SshPathChanged(const QString&); - void showEvent(QShowEvent* e); + void OpenvpnPathChanged(const TQString&); + void FreeswanPathChanged(const TQString&); + void PppdPathChanged(const TQString&); + void PptpPathChanged(const TQString&); + void RacoonPathChanged(const TQString&); + void VpncPathChanged(const TQString&); + void CiscoVpncPathChanged(const TQString&); + void L2tpdPathChanged(const TQString&); + void Xl2tpdPathChanged(const TQString&); + void Openl2tpPathChanged(const TQString&); + void VtundPathChanged(const TQString&); + void SshPathChanged(const TQString&); + void showEvent(TQShowEvent* e); void detectPkcs11Ids(); void detectPkcs11Slots(); void localPortToggled(bool); - void tunnelDeviceTypeChanged(const QString &); + void tunnelDeviceTypeChanged(const TQString &); void useXauthToggled(bool); - void slotStatusMsg ( const QString &text, int id ); + void slotStatusMsg ( const TQString &text, int id ); bool getVpncHasHybridSupport(); protected: void setupGui(); - QPtrList<VpnAccountData> *AccountList; - QTextEdit *LogOutput; + TQPtrList<VpnAccountData> *AccountList; + TQTextEdit *LogOutput; VpnAccountData *currentProfile; KVpncConfig *GlobalConfig; - QString lastProfileName; + TQString lastProfileName; int KvpncDebugLevel; bool canAccept; bool configChanged; - QPixmap ok_icon; - QPixmap wrong_icon; - QScrollView* DaemonScrollView; - QStringList CiscoCerts; - QStringList CiscoCaCerts; + TQPixmap ok_icon; + TQPixmap wrong_icon; + TQScrollView* DaemonScrollView; + TQStringList CiscoCerts; + TQStringList CiscoCaCerts; private: - QWidget *prev_page; - QWidget *current_page; + TQWidget *prev_page; + TQWidget *current_page; public: - QApplication *app; + TQApplication *app; /* -- option pages -- */ // Kvpnc @@ -186,63 +187,63 @@ public: ProfileCmdExecAfterConnectOptions *ProfileCmdExecAfterConnectOptionsWidget; ProfileCmdExecAfterDisconnectOptions *ProfileCmdExecAfterDisconnectOptionsWidget; - QFrame* ProfileNetworkRouteOptionsFrame; - QFrame* ConfigConnectOptionsFrame; - QFrame* DaemonOptionsFrame; - QFrame* DebugFrame; - QFrame* LogFrame; - QFrame* HelperProgramFrame; - QFrame* ProfileGeneralOptionsFrame; - QFrame* ProfileUserOptionsFrame; - QFrame* ProfileCertOptionsFrame; - QFrame* ProfileCiscoOptionsFrame; - QFrame* ProfileNetworkHttpProxyOptionsFrame; - QFrame* ProfileCmdExecAfterConnectOptionsFrame; - QFrame* ProfileCmdExecBeforeDisconnectOptionsFrame; - QFrame* ProfileCmdExecAfterDisconnectOptionsFrame; - QFrame* ProfileCmdExecBeforeConnectOptionsFrame; - QFrame* GeneralFrame; - QFrame* ProfileSmartcardOptionsFrame; - QFrame* ProfilePskOptionsFrame; - QFrame* ProfileNetworkGeneralOptionsFrame; - QFrame* ProfileNetworkNatOptionsFrame; - QFrame* ProfileNetworkVirtualIpOptionsFrame; - QFrame* ProfileRacoonOptionsFrame; - QFrame* ProfileIpsecOptionsFrame; - QFrame* ProfileOpenvpnOptionsFrame; - QFrame* ProfilePptpOptionsFrame; - QFrame* ProfileVtunOptionsFrame; - QFrame* ProfileSshOptionsFrame; - - - QComboBox *ProfileGeneralSelector; - QComboBox *ProfileNetworkRouteSelector; - QComboBox *ProfileNetworkGeneralSelector; - QComboBox *ProfileNetworkNatSelector; - QComboBox *ProfileNetworkVirtualIpSelector; - QComboBox *ProfileCertSelector; - QComboBox *ProfileSmartcardSelector; - QComboBox *ProfilePskSelector; - QComboBox *ProfileUserSelector; - QComboBox *ProfileOpenvpnSelector; - QComboBox *ProfileNetworkHttpProxySelector; - QComboBox *ProfilePptpSelector; - QComboBox *ProfileRacoonSelector; - QComboBox *ProfileIpsecSelector; - QComboBox *ProfileCiscoSelector; - QComboBox *ProfileVtunSelector; - QComboBox *ProfileSshSelector; - QComboBox *ProfileCmdExecBeforeConnectSelector; - QComboBox *ProfileCmdExecBeforeDisconnectSelector; - QComboBox *ProfileCmdExecAfterConnectSelector; - QComboBox *ProfileCmdExecAfterDisconnectSelector; + TQFrame* ProfileNetworkRouteOptionsFrame; + TQFrame* ConfigConnectOptionsFrame; + TQFrame* DaemonOptionsFrame; + TQFrame* DebugFrame; + TQFrame* LogFrame; + TQFrame* HelperProgramFrame; + TQFrame* ProfileGeneralOptionsFrame; + TQFrame* ProfileUserOptionsFrame; + TQFrame* ProfileCertOptionsFrame; + TQFrame* ProfileCiscoOptionsFrame; + TQFrame* ProfileNetworkHttpProxyOptionsFrame; + TQFrame* ProfileCmdExecAfterConnectOptionsFrame; + TQFrame* ProfileCmdExecBeforeDisconnectOptionsFrame; + TQFrame* ProfileCmdExecAfterDisconnectOptionsFrame; + TQFrame* ProfileCmdExecBeforeConnectOptionsFrame; + TQFrame* GeneralFrame; + TQFrame* ProfileSmartcardOptionsFrame; + TQFrame* ProfilePskOptionsFrame; + TQFrame* ProfileNetworkGeneralOptionsFrame; + TQFrame* ProfileNetworkNatOptionsFrame; + TQFrame* ProfileNetworkVirtualIpOptionsFrame; + TQFrame* ProfileRacoonOptionsFrame; + TQFrame* ProfileIpsecOptionsFrame; + TQFrame* ProfileOpenvpnOptionsFrame; + TQFrame* ProfilePptpOptionsFrame; + TQFrame* ProfileVtunOptionsFrame; + TQFrame* ProfileSshOptionsFrame; + + + TQComboBox *ProfileGeneralSelector; + TQComboBox *ProfileNetworkRouteSelector; + TQComboBox *ProfileNetworkGeneralSelector; + TQComboBox *ProfileNetworkNatSelector; + TQComboBox *ProfileNetworkVirtualIpSelector; + TQComboBox *ProfileCertSelector; + TQComboBox *ProfileSmartcardSelector; + TQComboBox *ProfilePskSelector; + TQComboBox *ProfileUserSelector; + TQComboBox *ProfileOpenvpnSelector; + TQComboBox *ProfileNetworkHttpProxySelector; + TQComboBox *ProfilePptpSelector; + TQComboBox *ProfileRacoonSelector; + TQComboBox *ProfileIpsecSelector; + TQComboBox *ProfileCiscoSelector; + TQComboBox *ProfileVtunSelector; + TQComboBox *ProfileSshSelector; + TQComboBox *ProfileCmdExecBeforeConnectSelector; + TQComboBox *ProfileCmdExecBeforeDisconnectSelector; + TQComboBox *ProfileCmdExecAfterConnectSelector; + TQComboBox *ProfileCmdExecAfterDisconnectSelector; bool profileAddedOrDeleted; bool profileHasChanged; bool showOnlyProfiles; - QString NewProfileName; + TQString NewProfileName; }; #endif |