@ -129,12 +129,12 @@ KVpncConfig::KVpncConfig(TQWidget *parent,KStatusBar *statusbar)
dontQuitOnCloseEvent = true ;
PppdDebugLevel = false ;
doAutoConnectAtStartup = false ;
use K wallet= true ;
use TDE wallet= true ;
showStatusBar = true ;
showToolBar = true ;
firstUseOf K wallet= true ;
firstUseOf TDE wallet= true ;
shutdownIsCalled = false ;
skip K walletStoring = false ;
skip TDE walletStoring = false ;
hideOnCloseInfo = false ;
enableFreeswanVerbose = false ;
doKillL2tpdIfStillRunning = true ;
@ -410,7 +410,7 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
config - > writeEntry ( " Mainwindow position y " , parent - > y ( ) ) ;
config - > writeEntry ( " Openvpn management port " , OpenvpnManagementPort ) ;
//config->writeEntry( "ToolBar Settings" ,parent->toolBar( "mainToolBar" ));
config - > writeEntry ( " Use TDEWallet " , use K wallet) ;
config - > writeEntry ( " Use TDEWallet " , use TDE wallet) ;
config - > writeEntry ( " FeedbackMailSent " , feedbackMailSent ) ;
config - > writeEntry ( " Do kill l2tpd if still running " , doKillL2tpdIfStillRunning ) ;
config - > writeEntry ( " Do kill racoon if still running " , doKillRacoonIfStillRunning ) ;
@ -426,16 +426,16 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
//appPointer->processEvents();
}
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
config - > writeEntry ( " First use of K wallet" , false ) ;
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
config - > writeEntry ( " First use of TDE wallet" , false ) ;
/* = user data = */
VpnAccountData * it ;
if ( ! AccountList - > isEmpty ( ) )
{
/* passwords with tdewallet */
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
{
if ( ! skip K walletStoring )
if ( ! skip TDE walletStoring )
{
if ( KvpncDebugLevel > 2 )
appendLogEntry ( i18n ( " Wallet enabled and available, writing to wallet. " ) , debug ) ;
@ -488,9 +488,9 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
config - > writeEntry ( " Description " , it - > getDescription ( ) ) ;
/* passwords with tdewallet */
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
{
if ( ! skip K walletStoring )
if ( ! skip TDE walletStoring )
{
if ( KvpncDebugLevel > 2 )
appendLogEntry ( i18n ( " Wallet enabled and available, writing to wallet. " ) , debug ) ;
@ -618,7 +618,7 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
else
{
//Wallet not available
//if (!use K wallet)
//if (!use TDE wallet)
{
if ( KvpncDebugLevel > 2 )
appendLogEntry ( i18n ( " Wallet disabled or not available, writing to config file. " ) , debug ) ;
@ -891,8 +891,8 @@ void KVpncConfig::saveOptions(bool saveOneProfile, TQString Profile)
}
// if ( !skip K walletStoring && wallet != 0)
// if (use K wallet && TDEWallet::Wallet::isEnabled())
// if ( !skip TDE walletStoring && wallet != 0)
// if (use TDE wallet && TDEWallet::Wallet::isEnabled())
// if (wallet->isOpen())
// wallet->sync();
config - > sync ( ) ;
@ -1036,8 +1036,8 @@ void KVpncConfig::loadOptions()
}
}
use K wallet = config - > readBoolEntry ( " Use TDEWallet " , true ) ;
firstUseOf K wallet = config - > readBoolEntry ( " First use of K wallet" , true ) ;
use TDE wallet = config - > readBoolEntry ( " Use TDEWallet " , true ) ;
firstUseOf TDE wallet = config - > readBoolEntry ( " First use of TDE wallet" , true ) ;
feedbackMailSent = config - > readBoolEntry ( " FeedbackMailSent " , false ) ;
doKillL2tpdIfStillRunning = config - > readBoolEntry ( " Do kill l2tpd if still running " , true ) ;
doKillXl2tpdIfStillRunning = config - > readBoolEntry ( " Do kill xl2tpd if still running " , true ) ;
@ -1096,7 +1096,7 @@ void KVpncConfig::loadOptions()
TQString PreSharedKey = " " ;
/* passwords with tdewallet */
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
{
if ( KvpncDebugLevel > 2 )
appendLogEntry ( i18n ( " Wallet enabled and available, reading passwords from wallet. " ) , debug ) ;
@ -1156,7 +1156,7 @@ void KVpncConfig::loadOptions()
{
if ( KvpncDebugLevel > 2 )
{
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) & & firstUseOf K wallet)
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) & & firstUseOf TDE wallet)
appendLogEntry ( i18n ( " Wallet enabled, available but first time, reading passwords from config file. " ) , debug ) ;
else
appendLogEntry ( i18n ( " Wallet disabled or not available, reading passwords from config file. " ) , debug ) ;
@ -1743,7 +1743,7 @@ bool KVpncConfig::exportKvpncConfig(TQString filename)
ExportStream < < " \t \t <option name= \" Openvpn management port \" " < < " type= \" int \" " < < " > " < < int ( OpenvpnManagementPort ) < < " </option> \n " ;
ExportStream < < " \t \t <option name= \" hideOnCloseInfo \" " < < " type= \" bool \" " < < " > " < < int ( hideOnCloseInfo ) < < " </option> \n " ;
// ExportStream << "\t\t<option name=\"ToolBar Settings\"" << " type=\"bool\"" << ">" << parent->toolBar( "mainToolBar" )<< "</option>\n";
ExportStream < < " \t \t <option name= \" Use TDEWallet \" " < < " type= \" bool \" " < < " > " < < int ( use K wallet) < < " </option> \n " ;
ExportStream < < " \t \t <option name= \" Use TDEWallet \" " < < " type= \" bool \" " < < " > " < < int ( use TDE wallet) < < " </option> \n " ;
ExportStream < < " \t \t <option name= \" FeedbackMailSent \" " < < " type= \" bool \" " < < " > " < < int ( feedbackMailSent ) < < " </option> \n " ;
ExportStream < < " \t \t <option name= \" Do kill l2tpd if still running \" " < < " type= \" bool \" " < < " > " < < int ( doKillL2tpdIfStillRunning ) < < " </option> \n " ;
ExportStream < < " \t \t <option name= \" Do kill xl2tpd if still running \" " < < " type= \" bool \" " < < " > " < < int ( doKillXl2tpdIfStillRunning ) < < " </option> \n " ;
@ -2077,14 +2077,14 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool&
bool showInterfaceIPinTooltip = true ;
bool dontQuitOnCloseEvent = true ;
bool doAutoConnectAtStartup = false ;
bool use K wallet= true ;
bool use TDE wallet= true ;
bool showStatusBar = true ;
bool showToolBar = true ;
bool hideMainWindow = false ;
bool PppdDebugLevel = false ;
bool firstUseOf K wallet= false ;
bool firstUseOf TDE wallet= false ;
bool shutdownIsCalled = false ;
bool skip K walletStoring= false ;
bool skip TDE walletStoring= false ;
bool hideOnCloseInfo = false ;
bool feedbackMailSent = false ;
bool doKillL2tpdIfStillRunning = false ;
@ -2258,7 +2258,7 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool&
else if ( n1 . toElement ( ) . tagName ( ) = = " Openvpn management port " ) { OpenvpnManagementPort = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
else if ( n1 . toElement ( ) . tagName ( ) = = " hideOnCloseInfo " ) { hideOnCloseInfo = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
// else if (n1.toElement().tagName() == "ToolBar Settings") { parent->toolBar( "mainToolBar" ) = n1.toElement().text(); }
else if ( n1 . toElement ( ) . tagName ( ) = = " Use TDEWallet " ) { use K wallet = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
else if ( n1 . toElement ( ) . tagName ( ) = = " Use TDEWallet " ) { use TDE wallet = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
else if ( n1 . toElement ( ) . tagName ( ) = = " FeedbackMailSent " ) { feedbackMailSent = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
else if ( n1 . toElement ( ) . tagName ( ) = = " Do kill l2tpd if still running " ) { doKillL2tpdIfStillRunning = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
else if ( n1 . toElement ( ) . tagName ( ) = = " Do kill xl2tpd if still running " ) { doKillXl2tpdIfStillRunning = n1 . toElement ( ) . text ( ) . toInt ( ) ; }
@ -2717,14 +2717,14 @@ bool KVpncConfig::importKvpncConfig(TQString filename, TQString& RetName, bool&
this - > showInterfaceIPinTooltip = showInterfaceIPinTooltip ;
this - > dontQuitOnCloseEvent = dontQuitOnCloseEvent ;
this - > doAutoConnectAtStartup = doAutoConnectAtStartup ;
this - > use Kwallet= useK wallet;
this - > use TDEwallet= useTDE wallet;
this - > showStatusBar = showStatusBar ;
this - > showToolBar = showToolBar ;
this - > hideMainWindow = hideMainWindow ;
this - > PppdDebugLevel = PppdDebugLevel ;
this - > firstUseOf Kwallet= firstUseOfK wallet;
this - > firstUseOf TDEwallet= firstUseOfTDE wallet;
this - > shutdownIsCalled = shutdownIsCalled ;
this - > skip KwalletStoring= skipK walletStoring;
this - > skip TDEwalletStoring= skipTDE walletStoring;
this - > hideOnCloseInfo = hideOnCloseInfo ;
this - > feedbackMailSent = feedbackMailSent ;
this - > doKillL2tpdIfStillRunning = doKillL2tpdIfStillRunning ;
@ -4344,8 +4344,8 @@ void KVpncConfig::removeEntry(TQString Name)
appPointer - > processEvents ( ) ;
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
config - > deleteEntry ( " First use of K wallet" , false ) ;
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
config - > deleteEntry ( " First use of TDE wallet" , false ) ;
/* = user data = */
VpnAccountData * it ;
if ( ! AccountList - > isEmpty ( ) )
@ -4363,7 +4363,7 @@ void KVpncConfig::removeEntry(TQString Name)
config - > setGroup ( ProfileName ) ;
/* passwords with tdewallet */
if ( use K wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
if ( use TDE wallet & & TDEWallet : : Wallet : : isEnabled ( ) )
{
// if (KvpncDebugLevel > 0)
// appendLogEntry(i18n( "Wallet enabled and available, writing to wallet." ),debug);