From 1b89319fd93b88313cab40f1e9de24c067b04efb Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 6 Dec 2011 14:15:01 -0600 Subject: Initial TQt conversion --- src/main.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index c599ea5..7c45fcf 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -27,30 +27,30 @@ #include #include -#include +#include // App includes #include "kvpnc.h" static const char *description = I18N_NOOP ( "KDE frontend for various vpn clients\nCurrently supported protocols:\n* Cisco (vpnc (free), vpnclient (propritary))\n* IPSec (FreeS/WAN, Openswan, strongSwan, racoon)\n* PPTP\n* OpenVPN\n* L2TP (l2tpd, xl2tpd, openl2tp) over IPSec (racoon, FreeS/WAN, Openswan, strongSwan)\n* Vtun\n* SSH" ); -// QDate().fromString(, Qt::LocalDate ).toString( "yyyyMMdd" ) -QString date ( __DATE__ ); -QString day= date.section ( ' ',0,0 ); -QString month= QString().setNum ( QDate::fromString ( date.section ( ' ',0,0 ),Qt::ISODate ).month() ); -QString year= date.section ( ' ',2,2 ); +// TQDate().fromString(, Qt::LocalDate ).toString( "yyyyMMdd" ) +TQString date ( __DATE__ ); +TQString day= date.section ( ' ',0,0 ); +TQString month= TQString().setNum ( TQDate::fromString ( date.section ( ' ',0,0 ),Qt::ISODate ).month() ); +TQString year= date.section ( ' ',2,2 ); -QString currentdate ( "+SVN(" + date+" "+ QTime().fromString ( QString ( __TIME__ ) ).toString ( "hhmm" ) + ")" ); +TQString currentdate ( "+SVN(" + date+" "+ TQTime().fromString ( TQString ( __TIME__ ) ).toString ( "hhmm" ) + ")" ); #define __is_release__ -QString versionstring1 = "0.9.6"; +TQString versionstring1 = "0.9.6"; #ifdef __is_release__ static const char *KVPNCVERSION = versionstring1.ascii(); -QString versionstring =QString ( KVPNCVERSION ); +TQString versionstring =TQString ( KVPNCVERSION ); #else -QString versionstring = versionstring1 + QString (" KDE3 ") + currentdate; +TQString versionstring = versionstring1 + TQString (" KDE3 ") + currentdate; static const char *KVPNCVERSION = versionstring.ascii() ; #endif @@ -146,12 +146,12 @@ int main ( int argc, char *argv[] ) if ( args->isSet ( "openvpnimport" ) ) { - QString openvpnimportfile = QString ( args->getOption ( "openvpnimport" ) ); + TQString openvpnimportfile = TQString ( args->getOption ( "openvpnimport" ) ); kvpnc->importOpenvpnProfileClicked ( openvpnimportfile ); } else if ( args->isSet ( "ciscoimport" ) ) { - QString ciscoimportfile = QString ( args->getOption ( "ciscoimport" ) ); + TQString ciscoimportfile = TQString ( args->getOption ( "ciscoimport" ) ); kvpnc->importOpenvpnProfileClicked ( ciscoimportfile ); } -- cgit v1.2.1