summaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 14:15:01 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-06 14:15:01 -0600
commit1b89319fd93b88313cab40f1e9de24c067b04efb (patch)
tree80132996de993c3dcab4040864d7729842875b2d /src/main.cpp
parentd08a0ede1d2cb15bb14b0ff75eacf5c682b1fa0a (diff)
downloadkvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.tar.gz
kvpnc-1b89319fd93b88313cab40f1e9de24c067b04efb.zip
Initial TQt conversion
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp24
1 files changed, 12 insertions, 12 deletions
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 <klocale.h>
#include <dcopclient.h>
-#include <qstring.h>
+#include <tqstring.h>
// 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 );
}