summaryrefslogtreecommitdiffstats
path: root/src/kvpnc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvpnc.h')
-rw-r--r--src/kvpnc.h259
1 files changed, 130 insertions, 129 deletions
diff --git a/src/kvpnc.h b/src/kvpnc.h
index 51e29fb..731fc3d 100644
--- a/src/kvpnc.h
+++ b/src/kvpnc.h
@@ -24,19 +24,19 @@
#ifndef __KVPNC_H__
#define __KVPNC_H__
-#include <qwidget.h>
-#include <qstrlist.h>
-#include <qpixmap.h>
-#include <qtimer.h>
-#include <qfile.h>
-#include <qdatetime.h>
-#include <qptrlist.h>
-#include <qlabel.h>
-#include <qtextstream.h>
-#include <qpixmap.h>
-#include <qpoint.h>
-#include <qsize.h>
-#include <qpopupmenu.h>
+#include <tqwidget.h>
+#include <tqstrlist.h>
+#include <tqpixmap.h>
+#include <tqtimer.h>
+#include <tqfile.h>
+#include <tqdatetime.h>
+#include <tqptrlist.h>
+#include <tqlabel.h>
+#include <tqtextstream.h>
+#include <tqpixmap.h>
+#include <tqpoint.h>
+#include <tqsize.h>
+#include <tqpopupmenu.h>
#include <kapp.h>
#include <kmainwindow.h>
#include <kaction.h>
@@ -72,6 +72,7 @@
class KVpnc : public KMainWindow , DCOPObject
{
Q_OBJECT
+ TQ_OBJECT
K_DCOP
public:
/**
@@ -79,7 +80,7 @@ public:
* @param parent Parent widget
* @param name Name of the Mainwindow
*/
- KVpnc( KApplication *parent, QWidget *qparent = 0, const char *name = 0 );
+ KVpnc( KApplication *parent, TQWidget *qparent = 0, const char *name = 0 );
/**
* Destruktor
@@ -110,13 +111,13 @@ protected:
* sets the gui status
* @param status The status that will be set
*/
- void setGuiStatus( int status );
+ void setGuitqStatus( int status );
/**
* terminates the connection
* @param proc the connect process
*/
- void terminateConnection ( QProcess *proc );
+ void terminateConnection ( TQProcess *proc );
/**
* called when quit requested
*/
@@ -134,18 +135,18 @@ public:
* @param Cert certificate from wich should be extracted
* @param user true if user id, false if issuer id
*/
- QString getX509CertificateID( QString Cert, bool user );
+ TQString getX509CertificateID( TQString Cert, bool user );
void profileAddedOrDeleted();
bool setVirtualIP();
private:
// FIXME also declared at kvpncconfig -> made it only in one place
- enum ConnectionStatus {disconnected=0, connecting=1, connected=2};
+ enum ConnectiontqStatus {disconnected=0, connecting=1, connected=2};
enum LogType {info=0, remote=1, error=2, success=3, debug=4};
KApplication *parent;
- QStringList *env;
+ TQStringList *env;
KVpncConfig *GlobalConfig;
KVpncKicker* KVpncDock; //< kicker menu
@@ -182,15 +183,15 @@ private:
KToggleAction *DebugconsoleAction; //< toggle debug console
KToggleAction *GenerateOpenvpnKeyAction; //< generate OpenVPN key
MainView* mw; //< Main gui
- QTimer timer;
- QTimer durationTimer; //< timer for counting connection time
- QTimer IpsecWhackStatusTimer; //< getting ipsec status periodically
- QTimer L2tpWaitForPppUpTimer; //< getting ppp device
+ TQTimer timer;
+ TQTimer durationTimer; //< timer for counting connection time
+ TQTimer IpsecWhackStatusTimer; //< getting ipsec status periodically
+ TQTimer L2tpWaitForPppUpTimer; //< getting ppp device
int connectCounter; //< counter for connecting
int RacoonctlConnectCounter; //<< counter for waiting of adminsock
int sec, min, hour;
int racoon_tunnel_state; // 0 => no tunnel, 1 => first tunnel, 2 => second tunnel
- int prevConnectionState; //< needed for setGuiStatus(), holds previous state before disconnect (connected, connecting)
+ int prevConnectionState; //< needed for setGuitqStatus(), holds previous state before disconnect (connected, connecting)
bool cancelClicked;
bool deviceaddrstr2addr;
@@ -215,103 +216,103 @@ private:
bool pppdHasReplacedefaultrouteSupport;
- QString OldDefaultroute;
- QString VpncConnectScript;
- QString VpncDisconnectScript;
- QString tmpPath;
- QString ProcessMsg_connect;
- QString ProcessMsg_disconnect;
- QString deviceaddrstr;
- QString deviceaddr;
- QString tmpInterface;
- QString LocalIP;
- QString VpncGateway;
- QString PptpGateway;
- QString VpncScript;
- QString issuerID; // for id extract
- QString userID; // for id extract
- QString TunnelInterfaceIP;
- QString TmpDns1;
- QString TmpDns2;
- QString VpncDevice;
- QString CiscoVpncDevice;
- QString L2tpPppDevice;
- QString PppdDevice;
- QString OpenvpnDevice;
- QString SshDevice;
- QString IpsecType; //< openswan, strongswan, freeswan
- QString Pkcs11PIN;
- QString PrettyTypeString;
- QString PrettyStatusMessage;
-
- QProcess *VpncProcess;
+ TQString OldDefaultroute;
+ TQString VpncConnectScript;
+ TQString VpncDisconnectScript;
+ TQString tmpPath;
+ TQString ProcessMsg_connect;
+ TQString ProcessMsg_disconnect;
+ TQString deviceaddrstr;
+ TQString deviceaddr;
+ TQString tmpInterface;
+ TQString LocalIP;
+ TQString VpncGateway;
+ TQString PptpGateway;
+ TQString VpncScript;
+ TQString issuerID; // for id extract
+ TQString userID; // for id extract
+ TQString TunnelInterfaceIP;
+ TQString TmpDns1;
+ TQString TmpDns2;
+ TQString VpncDevice;
+ TQString CiscoVpncDevice;
+ TQString L2tpPppDevice;
+ TQString PppdDevice;
+ TQString OpenvpnDevice;
+ TQString SshDevice;
+ TQString IpsecType; //< openswan, strongswan, freeswan
+ TQString Pkcs11PIN;
+ TQString PrettyTypeString;
+ TQString PrettyStatusMessage;
+
+ TQProcess *VpncProcess;
KProcess *IpsecConnectProcess;
- QProcess *DisconnectProcess;
- QProcess *CiscoVpncProcess; //< vpnclient
- QProcess *RacoonProcess; //< racoon
- QProcess *RacoonHelperProcess;
- QProcess *IpsecProcess; //< freeswan/openswan/strongswan
- QProcess *IpsecStartProcess;
- QProcess *IpsecWhackProcess; //< ipsec whack --initate
- QProcess *IpsecWhackStatusProcess; //< ipsec whack --status
- QProcess *IpsecWhackListenProcess; //< ipsec whack --listen
- QProcess *IpsecWhackDeleteProcess; //< ipsec whack --delete
- QProcess *PingProcess;
- QProcess *RacoonTailProcess;
- QProcess *RacoonctlProcess; //< racoonctl
- QProcess *X509CertificateExtractProcess;
- QProcess *PptpProcess;
- QProcess *OpenvpnProcess;
- QProcess *CmdBeforeConnectProcess;
- QProcess *CmdBeforeDisconnectProcess;
- QProcess *CmdAfterConnectProcess;
- QProcess *CmdAfterDisconnectProcess;
- QProcess *SetFirewallAfterConnectProcess;
- QProcess *SetFirewallBeforeDisconnectProcess;
- QProcess *RouteProcess;
- QProcess *SetVirtualIPProcess;
- QProcess *ReplaceDefaultRouteProcess;
- QProcess *ConnectionStatusCheckProcess;
- QProcess *TestCiscoVpncProcess;
- QProcess *IptablesProcess;
- QProcess *KillProcess;
- QProcess *PptpRouteProcess;
- QProcess *ChmodProcess;
- QProcess *pppdUpProcess;
- QProcess *pppdDelDefaultRouteProcess;
- QProcess *L2tpdProcess;
- QProcess *OpenL2tpProcess;
- QProcess *RemoveSetkeyProcess;
- QProcess *BugReportProcess;
- QProcess *DonateProcess;
- QProcess *VtundProcess;
- QProcess *StartStopOpenl2tpProcess;
+ TQProcess *DisconnectProcess;
+ TQProcess *CiscoVpncProcess; //< vpnclient
+ TQProcess *RacoonProcess; //< racoon
+ TQProcess *RacoonHelperProcess;
+ TQProcess *IpsecProcess; //< freeswan/openswan/strongswan
+ TQProcess *IpsecStartProcess;
+ TQProcess *IpsecWhackProcess; //< ipsec whack --initate
+ TQProcess *IpsecWhackStatusProcess; //< ipsec whack --status
+ TQProcess *IpsecWhackListenProcess; //< ipsec whack --listen
+ TQProcess *IpsecWhackDeleteProcess; //< ipsec whack --delete
+ TQProcess *PingProcess;
+ TQProcess *RacoonTailProcess;
+ TQProcess *RacoonctlProcess; //< racoonctl
+ TQProcess *X509CertificateExtractProcess;
+ TQProcess *PptpProcess;
+ TQProcess *OpenvpnProcess;
+ TQProcess *CmdBeforeConnectProcess;
+ TQProcess *CmdBeforeDisconnectProcess;
+ TQProcess *CmdAfterConnectProcess;
+ TQProcess *CmdAfterDisconnectProcess;
+ TQProcess *SetFirewallAfterConnectProcess;
+ TQProcess *SetFirewallBeforeDisconnectProcess;
+ TQProcess *RouteProcess;
+ TQProcess *SetVirtualIPProcess;
+ TQProcess *ReplaceDefaultRouteProcess;
+ TQProcess *ConnectionStatusCheckProcess;
+ TQProcess *TestCiscoVpncProcess;
+ TQProcess *IptablesProcess;
+ TQProcess *KillProcess;
+ TQProcess *PptpRouteProcess;
+ TQProcess *ChmodProcess;
+ TQProcess *pppdUpProcess;
+ TQProcess *pppdDelDefaultRouteProcess;
+ TQProcess *L2tpdProcess;
+ TQProcess *OpenL2tpProcess;
+ TQProcess *RemoveSetkeyProcess;
+ TQProcess *BugReportProcess;
+ TQProcess *DonateProcess;
+ TQProcess *VtundProcess;
+ TQProcess *StartStopOpenl2tpProcess;
KProcess *SshProcess;
- QProcess *backupDefaultRouteProcess;
- QProcess *pptpdKillProcess;
- QProcess *SshDownProcess;
- QProcess *pppdDownProcess;
- QProcess *killracoonprocess;
- QProcess *killl2tpdprocess;
- QProcess *SshUpProcess;
+ TQProcess *backupDefaultRouteProcess;
+ TQProcess *pptpdKillProcess;
+ TQProcess *SshDownProcess;
+ TQProcess *pppdDownProcess;
+ TQProcess *killracoonprocess;
+ TQProcess *killl2tpdprocess;
+ TQProcess *SshUpProcess;
int TimeOutProcess; //< for timeout
int ConnectingProcess; //< for killing process
- QPixmap connectedIcon;
- QPixmap disconnectedIcon;
- QPixmap connectingIcon;
- QPixmap *connectingStatusPixmap;
- QPixmap *disconnectedStatusPixmap;
- QPixmap *connectedStatusPixmap;
+ TQPixmap connectedIcon;
+ TQPixmap disconnectedIcon;
+ TQPixmap connectingIcon;
+ TQPixmap *connectingStatusPixmap;
+ TQPixmap *disconnectedStatusPixmap;
+ TQPixmap *connectedStatusPixmap;
- QLabel *statusColorLabel;
- QPopupMenu *QuickConnectMenu;
+ TQLabel *statusColorLabel;
+ TQPopupMenu *QuickConnectMenu;
OpenvpnManagementHandler *managementhandler ;
KFeedbackDialog *FeedbackDialog;
- QString L2tpdBufferStdoutString;
- QString L2tpdBufferStderrString;
+ TQString L2tpdBufferStdoutString;
+ TQString L2tpdBufferStderrString;
PreferencesDialog *prefDlg;
@@ -336,7 +337,7 @@ public slots:
* @param text The text that will be set
* @param id What type its is
*/
- void slotStatusMsg( const QString &text, int id = ID_STATUS_MSG );
+ void slotStatusMsg( const TQString &text, int id = ID_STATUS_MSG );
void connectClicked();
void disconnectClicked();
@@ -344,7 +345,7 @@ public slots:
void newSessionClicked();
void deleteSessionClicked();
void renameSessionClicked ();
- void sessionToggled( const QString& );
+ void sessionToggled( const TQString& );
void helpClicked();
void toolsInfoClicked();
void vpnTypesInfoClicked();
@@ -360,7 +361,7 @@ private slots:
* called if close clicked
* @param e the event which happen
*/
- void closeEvent( QCloseEvent* e );
+ void closeEvent( TQCloseEvent* e );
bool queryClose();
void shutdownCalled();
void slotCancelClicked();
@@ -437,7 +438,7 @@ private slots:
void racoonctlExited();
void prepareL2tpd(); //< write l2tpd conf etc.
void start_ipsec_initiate();
- void doAddRemoveVirtualIp(QString action);
+ void doAddRemoveVirtualIp(TQString action);
void importProfileClicked(); //< PCF import
void importIpsecProfileClicked();
@@ -467,7 +468,7 @@ private slots:
void vpncStarted();
void ipsecStarted();
void ipsecPhase2Established();
- void checkIpsecWhackStatus();
+ void checkIpsecWhacktqStatus();
void addIpsecConnection();
void racoonStarted();
void pppdStarted();
@@ -500,7 +501,7 @@ private slots:
void sendFeedbackMail();
void feedbackMailSent();
void start_l2tpd();
- bool checkCiscoVpncStatus();
+ bool checkCiscoVpnctqStatus();
void startCiscoVpnc();
void startStopIpsec(bool stop=false, bool silent=false);
void startStopOpenl2tp(bool stop=false, bool silent=false);
@@ -508,39 +509,39 @@ private slots:
signals:
void L2tpdStdoutRecieved();
void L2tpdStderrRecieved();
- void newProfileCreated(QString Name);
+ void newProfileCreated(TQString Name);
public:
- void importOpenvpnProfileClicked(QString file); //< OpenVPN config file import
- void importProfileClicked(QString file); //< PCF import
+ void importOpenvpnProfileClicked(TQString file); //< OpenVPN config file import
+ void importProfileClicked(TQString file); //< PCF import
bool backupResolvConf();
bool restoreResolvConf();
public:
k_dcop:
- QString getVersion();
+ TQString getVersion();
void doConnect();
void doDisconnect();
uint getConnectedTime();
- QString getStatus();
- QString getCurrentProfile();
- void setProfile(QString profilename);
+ TQString gettqStatus();
+ TQString getCurrentProfile();
+ void setProfile(TQString profilename);
void createNewProfile();
void createNewProfileWithWizard();
void deleteCurrentProfile();
void openPreferences();
void doImportCert();
void doImportPcf();
- void doImportPcf(QString file);
+ void doImportPcf(TQString file);
void doImportOpenvpnConfig();
- void doImportOpenvpnConfig(QString file);
- QStringList profiles();
- QStringList toolinfo();
+ void doImportOpenvpnConfig(TQString file);
+ TQStringList profiles();
+ TQStringList toolinfo();
void doQuit();
void doGenerateOpenvpnKey();
void doSendFeedbackMail();
- QStringList getProfileTypes();
+ TQStringList getProfileTypes();
};