@ -549,7 +549,7 @@ void KVpnc::slotSettings()
}
}
else
else
{
{
GlobalConfig - > logFileStream < < i18n ( " Log session started at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session started at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
}
}
}
}
}
}
@ -558,7 +558,7 @@ void KVpnc::slotSettings()
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
//TQTextStream s( &logfile );
//TQTextStream s( &logfile );
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
}
}
}
}
@ -686,7 +686,7 @@ void KVpnc:: quitCalled()
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
// TQTextStream s( &logfile );
// TQTextStream s( &logfile );
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
@ -713,7 +713,7 @@ void KVpnc:: quitCalled()
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
// TQTextStream s( &logfile );
// TQTextStream s( &logfile );
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
@ -740,7 +740,7 @@ void KVpnc:: quitCalled()
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
// TQTextStream s( &logfile );
// TQTextStream s( &logfile );
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
@ -769,7 +769,7 @@ void KVpnc:: quitCalled()
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
// TQTextStream s( &logfile );
// TQTextStream s( &logfile );
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
@ -868,7 +868,7 @@ void KVpnc::closeEvent ( TQCloseEvent *e )
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
// TQTextStream s( &logfile );
// TQTextStream s( &logfile );
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
}
}
@ -918,7 +918,7 @@ void KVpnc::closeEvent ( TQCloseEvent *e )
{
{
if ( GlobalConfig - > logfile . isOpen ( ) )
if ( GlobalConfig - > logfile . isOpen ( ) )
{
{
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) < < endl ;
GlobalConfig - > logFileStream < < i18n ( " Log session ended at: " ) < < TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) < < endl ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . flush ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > logfile . close ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
GlobalConfig - > appPointer - > processEvents ( ) ;
@ -19981,7 +19981,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " %5: %2@%1, %3 [%4] " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) . arg ( PrettyTypeString ) . arg ( ConnectionStatus ) ;
ConnectMsg = i18n ( " %5: %2@%1, %3 [%4] " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) . arg ( PrettyTypeString ) . arg ( ConnectionStatus ) ;
LogMsg = i18n ( " Successful connected to server: \" %1 \" , user: \" %2 \" , IPSec ID: \" %3 \" at %4 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( GlobalConfig - > currentProfile - > getUserName ( ) ) . arg ( GlobalConfig - > currentProfile - > getID ( ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Successful connected to server: \" %1 \" , user: \" %2 \" , IPSec ID: \" %3 \" at %4 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( GlobalConfig - > currentProfile - > getUserName ( ) ) . arg ( GlobalConfig - > currentProfile - > getID ( ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) + " [ " + PrettyTypeString + " ] " ) ;
}
}
if ( GlobalConfig - > currentProfile - > getAuthType ( ) = = VpnAccountData : : cert )
if ( GlobalConfig - > currentProfile - > getAuthType ( ) = = VpnAccountData : : cert )
{
{
@ -19989,7 +19989,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " %5: %2@%1, %3 [%4] " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) . arg ( PrettyTypeString ) . arg ( ConnectionStatus ) ;
ConnectMsg = i18n ( " %5: %2@%1, %3 [%4] " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) . arg ( PrettyTypeString ) . arg ( ConnectionStatus ) ;
LogMsg = i18n ( " Successful connected to server: \" %1 \" , user: \" %2 \" at %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Successful connected to server: \" %1 \" , user: \" %2 \" at %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) + " [ " + PrettyTypeString + " ] " ) ;
}
}
}
}
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : pptp )
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : pptp )
@ -20001,7 +20001,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " Connected: %2@%1, %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) ;
ConnectMsg = i18n ( " Connected: %2@%1, %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) ;
TQString TypeString2 = " [ " + PrettyTypeString + TQString ( " ] " ) ;
TQString TypeString2 = " [ " + PrettyTypeString + TQString ( " ] " ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" \n user: \" %2 \" at %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( TQString ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) ) + TypeString2 ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" \n user: \" %2 \" at %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( TQString ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) ) + TypeString2 ) ;
}
}
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : racoon | | GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : l2tpd_racoon | | GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : freeswan | | GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : l2tpd_freeswan )
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : racoon | | GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : l2tpd_racoon | | GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : freeswan | | GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : l2tpd_freeswan )
{
{
@ -20044,7 +20044,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " Connected: %2@%1, %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) ;
ConnectMsg = i18n ( " Connected: %2@%1, %3 " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( Username ) . arg ( durationString ) ;
}
}
LogMsg = i18n ( " Policy successful activated and daemon (%1) running for server \" %2 \" (%3) at date %4, profile \" %5 \" . " ) . arg ( DaemonString ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( GlobalConfig - > TmpGatewayIP ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Policy successful activated and daemon (%1) running for server \" %2 \" (%3) at date %4, profile \" %5 \" . " ) . arg ( DaemonString ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( GlobalConfig - > TmpGatewayIP ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
}
}
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : openvpn )
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : openvpn )
@ -20055,7 +20055,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " Connected: %1, %2, profile \" %3 \" " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( durationString ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
ConnectMsg = i18n ( " Connected: %1, %2, profile \" %3 \" " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( durationString ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" at %2, profile \" %3 \" . " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" at %2, profile \" %3 \" . " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
}
}
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : vtun )
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : vtun )
{
{
@ -20065,7 +20065,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " Connected: %1, %2, profile \" %3 \" " ) . arg ( TQString ( GlobalConfig - > currentProfile - > getGateway ( ) ) ) . arg ( durationString ) . arg ( TQString ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ) ;
ConnectMsg = i18n ( " Connected: %1, %2, profile \" %3 \" " ) . arg ( TQString ( GlobalConfig - > currentProfile - > getGateway ( ) ) ) . arg ( durationString ) . arg ( TQString ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" at %2, profile \" %3 \" . " ) . arg ( TQString ( GlobalConfig - > currentProfile - > getGateway ( ) ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) ) . arg ( TQString ( GlobalConfig - > currentProfile - > getName ( ) ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" at %2, profile \" %3 \" . " ) . arg ( TQString ( GlobalConfig - > currentProfile - > getGateway ( ) ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) ) . arg ( TQString ( GlobalConfig - > currentProfile - > getName ( ) ) + " [ " + PrettyTypeString + " ] " ) ;
}
}
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : ssh )
else if ( GlobalConfig - > currentProfile - > getConnectionType ( ) = = VpnAccountData : : ssh )
{
{
@ -20075,7 +20075,7 @@ void KVpnc::setGuiStatus ( int status )
ConnectMsg = i18n ( " %4: %1, %2, profile \" %3 \" " ) . arg ( TQString ( GlobalConfig - > currentProfile - > getGateway ( ) ) ) . arg ( durationString ) . arg ( TQString ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ) ;
ConnectMsg = i18n ( " %4: %1, %2, profile \" %3 \" " ) . arg ( TQString ( GlobalConfig - > currentProfile - > getGateway ( ) ) ) . arg ( durationString ) . arg ( TQString ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" at %2, profile \" %3 \" . " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( Qt: : TextDate ) ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
LogMsg = i18n ( " Successful connected to server \" %1 \" at %2, profile \" %3 \" . " ) . arg ( GlobalConfig - > currentProfile - > getGateway ( ) ) . arg ( TQDateTime : : currentDateTime ( ) . toString ( T Qt: : TextDate ) ) . arg ( GlobalConfig - > currentProfile - > getName ( ) + " [ " + PrettyTypeString + " ] " ) ;
}
}
if ( status = = GlobalConfig - > connected )
if ( status = = GlobalConfig - > connected )
KNotifyClient : : event ( topLevelWidget ( ) - > winId ( ) , " connection established " , ConnectMsg ) ;
KNotifyClient : : event ( topLevelWidget ( ) - > winId ( ) , " connection established " , ConnectMsg ) ;