summaryrefslogtreecommitdiffstats
path: root/src/kvpncconfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kvpncconfig.h')
-rw-r--r--src/kvpncconfig.h200
1 files changed, 100 insertions, 100 deletions
diff --git a/src/kvpncconfig.h b/src/kvpncconfig.h
index 4ea2ddd..18821f1 100644
--- a/src/kvpncconfig.h
+++ b/src/kvpncconfig.h
@@ -21,18 +21,18 @@
#define __KVPNCCONFIG_H__
//BEGIN INCLUDES
-#include <qobject.h>
-#include <qptrlist.h>
-#include <qstring.h>
-#include <qapplication.h>
-#include <qcolor.h>
-#include <qpoint.h>
-#include <qsize.h>
-#include <qfile.h>
-#include <qtextstream.h>
-#include <qtextedit.h>
-#include <qcolor.h>
-#include <qstringlist.h>
+#include <tqobject.h>
+#include <tqptrlist.h>
+#include <tqstring.h>
+#include <tqapplication.h>
+#include <tqcolor.h>
+#include <tqpoint.h>
+#include <tqsize.h>
+#include <tqfile.h>
+#include <tqtextstream.h>
+#include <tqtextedit.h>
+#include <tqcolor.h>
+#include <tqstringlist.h>
#include <kconfig.h>
#include <kwallet.h>
#include <kstatusbar.h>
@@ -50,69 +50,69 @@
This class holds global configuration data.
@author Christoph Thielecke <[email protected]>
*/
-class KVpncConfig : public QObject
+class KVpncConfig : public TQObject
{
public:
- KVpncConfig(QWidget *parent,KStatusBar *statusbar);
+ KVpncConfig(TQWidget *parent,KStatusBar *statusbar);
~KVpncConfig();
public:
- 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};
- QString pathToVpnc;
- QString pathToCiscoVpnc;
- QString pathToRacoon;
- QString pathToRacoonctl;
- QString pathToSetkey;
- QString pathToIptables;
- QString pathToOpenssl;
- QString pathToIpsec;
- QString pathToPppd;
- QString pathToPptp;
- QString pathToL2tpd;
- QString pathToXl2tpd;
- QString pathToOpenl2tp;
- QString pathToKill;
- QString pathToKillall;
- QString pathToPing;
- QString pathToOpenvpn;
- QString pathToIp;
- QString pathToIfconfig;
- QString pathToRoute;
- QString pathToNetstat;
- QString pathToPkcs11Tool;
- QString pathToVtund;
- QString pathToCiscoCertMgr;
- QString pathToTail;
- QString pathToSsh;
- QString pathToKsshAskpass;
- QString pathToGnomeSshAskpass;
- QString AutoConnectProfile;
- QString RacoonDebugLevel;
- QString Vpnc_pid_file;
- QString Pppd_pid_file;
- QString lastProfile;
- QString logfileName;
- QString InterpreterShell;
-
- QString TmpPassword; //< from enter password dialog
- QString TmpGroupPassword; //< from enter password dialog
- QString TmpUsername; //< from enter password dialog
- QString TmpPrivKeyPassStr;
- QString TmpGatewayIP;
- QString TmpXauthInterPasscode; //< from Xauth interactive passcode dialog
- QString TmpPrivateKeyPass;
- QString TmpHttpProxyPassword;
- QString DnsDevice; //< device which the dns entry was added
-
- QString OldDefaultGw; //< default gw before connect
- QString OldDefaultDev; //< default gw dev before connect
-
- QString NewDefaultGw;
-
- QStringList PlutoDebug;
- QStringList KlipsDebug;
+ TQString pathToVpnc;
+ TQString pathToCiscoVpnc;
+ TQString pathToRacoon;
+ TQString pathToRacoonctl;
+ TQString pathToSetkey;
+ TQString pathToIptables;
+ TQString pathToOpenssl;
+ TQString pathToIpsec;
+ TQString pathToPppd;
+ TQString pathToPptp;
+ TQString pathToL2tpd;
+ TQString pathToXl2tpd;
+ TQString pathToOpenl2tp;
+ TQString pathToKill;
+ TQString pathToKillall;
+ TQString pathToPing;
+ TQString pathToOpenvpn;
+ TQString pathToIp;
+ TQString pathToIfconfig;
+ TQString pathToRoute;
+ TQString pathToNetstat;
+ TQString pathToPkcs11Tool;
+ TQString pathToVtund;
+ TQString pathToCiscoCertMgr;
+ TQString pathToTail;
+ TQString pathToSsh;
+ TQString pathToKsshAskpass;
+ TQString pathToGnomeSshAskpass;
+ TQString AutoConnectProfile;
+ TQString RacoonDebugLevel;
+ TQString Vpnc_pid_file;
+ TQString Pppd_pid_file;
+ TQString lastProfile;
+ TQString logfileName;
+ TQString InterpreterShell;
+
+ TQString TmpPassword; //< from enter password dialog
+ TQString TmpGroupPassword; //< from enter password dialog
+ TQString TmpUsername; //< from enter password dialog
+ TQString TmpPrivKeyPassStr;
+ TQString TmpGatewayIP;
+ TQString TmpXauthInterPasscode; //< from Xauth interactive passcode dialog
+ TQString TmpPrivateKeyPass;
+ TQString TmpHttpProxyPassword;
+ TQString DnsDevice; //< device which the dns entry was added
+
+ TQString OldDefaultGw; //< default gw before connect
+ TQString OldDefaultDev; //< default gw dev before connect
+
+ TQString NewDefaultGw;
+
+ TQStringList PlutoDebug;
+ TQStringList KlipsDebug;
bool minimizeAfterConnect;
bool showDebugConsole;
@@ -180,37 +180,37 @@ public:
int maxConnectRetry; // max connect tries
int currentConnectRetry;
- QPtrList<ToolInfo> *ToolList;
- QPtrList<VpnAccountData> *AccountList;
+ TQPtrList<ToolInfo> *ToolList;
+ TQPtrList<VpnAccountData> *AccountList;
VpnAccountData *currentProfile;
- QColor InfoLogColor;
- QColor RemoteLogColor;
- QColor ErrorLogColor;
- QColor SuccessLogColor;
- QColor DebugLogColor;
- QColor DebugBackgroundcolor;
-
- QApplication *appPointer;
- QPoint pos;
- ConnectionStatus status;
- QFile logfile;
- QTextStream logFileStream;
- QTextEdit *LogOutput;
+ TQColor InfoLogColor;
+ TQColor RemoteLogColor;
+ TQColor ErrorLogColor;
+ TQColor SuccessLogColor;
+ TQColor DebugLogColor;
+ TQColor DebugBackgroundcolor;
+
+ TQApplication *appPointer;
+ TQPoint pos;
+ ConnectiontqStatus status;
+ TQFile logfile;
+ TQTextStream logFileStream;
+ TQTextEdit *LogOutput;
KWallet::Wallet *wallet;
KConfig* config; //< configuration data
- QPoint WindowPos;
- QSize WindowSize;
+ TQPoint WindowPos;
+ TQSize WindowSize;
struct IpsecImportSection {
- QString SectionName;
- QStringList SectionData;
+ TQString SectionName;
+ TQStringList SectionData;
};
- QPtrList<VpnAccountData> *ImportedAccountList;
+ TQPtrList<VpnAccountData> *ImportedAccountList;
- QWidget *parent;
+ TQWidget *parent;
KStatusBar *statusbar;
/**
@@ -218,18 +218,18 @@ public:
* @param msg the text to append
* @param type the type of the msg (info, debug, error, etc)
*/
- void appendLogEntry( QString msg, LogType type );
+ void appendLogEntry( TQString msg, LogType type );
/**
* Sets the output textedit for debug output
* @param LogOutput
*/
- void setLogOutput(QTextEdit *LogOutput);
+ void setLogOutput(TQTextEdit *LogOutput);
/**
* save configuration
*/
- void saveOptions(bool saveOneProfile=false, QString Profile="" );
+ void saveOptions(bool saveOneProfile=false, TQString Profile="" );
/**
* load configuration
@@ -251,20 +251,20 @@ public:
* removes a entry from configuration file
* @param Name the entry which should be removed
*/
- void removeEntry(QString Name);
+ void removeEntry(TQString Name);
- VpnAccountData* findProfile(QPtrList<VpnAccountData> *list,const QString& Name);
- QString removeWhiteSpaceAtBegin(const QString);
+ VpnAccountData* findProfile(TQPtrList<VpnAccountData> *list,const TQString& Name);
+ TQString removeWhiteSpaceAtBegin(const TQString);
- void slotStatusMsg( const QString &text, int id = ID_STATUS_MSG );
+ void slotStatusMsg( const TQString &text, int id = ID_STATUS_MSG );
void doBackupConfig();
void restoreBackupConfig();
- bool exportKvpncConfig(QString filename);
- bool importKvpncConfig(QString filename, QString& Name, bool& openProfileManager); //< true if profiles imported
+ bool exportKvpncConfig(TQString filename);
+ bool importKvpncConfig(TQString filename, TQString& Name, bool& openProfileManager); //< true if profiles imported
- bool importIpsecConfig(QString filename, QString& Name, bool& openProfileManager);
- bool importFritzboxConfig(QString filename, QString& Name, bool& openProfileManager);
+ bool importIpsecConfig(TQString filename, TQString& Name, bool& openProfileManager);
+ bool importFritzboxConfig(TQString filename, TQString& Name, bool& openProfileManager);
};