summaryrefslogtreecommitdiffstats
path: root/src/generateopenvpnkeydialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/generateopenvpnkeydialog.cpp')
-rw-r--r--src/generateopenvpnkeydialog.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/generateopenvpnkeydialog.cpp b/src/generateopenvpnkeydialog.cpp
index 4315668..04e13e9 100644
--- a/src/generateopenvpnkeydialog.cpp
+++ b/src/generateopenvpnkeydialog.cpp
@@ -23,14 +23,14 @@
#include <klocale.h>
#include <kdialogbase.h>
#include <kurlrequester.h>
-#include <qfile.h>
-#include <qurl.h>
+#include <tqfile.h>
+#include <tqurl.h>
#include <kurl.h>
-#include <qstring.h>
+#include <tqstring.h>
#include <iostream>
//
-GenerateOpenvpnKeyDialog::GenerateOpenvpnKeyDialog(KVpncConfig *GlobalConfig,QWidget *parent, const QString& caption)
+GenerateOpenvpnKeyDialog::GenerateOpenvpnKeyDialog(KVpncConfig *GlobalConfig,TQWidget *parent, const TQString& caption)
: KDialogBase( parent, "Import_Cisco_PCF_profile", true, caption,
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true )
{
@@ -39,7 +39,7 @@ GenerateOpenvpnKeyDialog::GenerateOpenvpnKeyDialog(KVpncConfig *GlobalConfig,QWi
genOk = false;
main = new GenerateOpenvpnKeyDialogBase(this);
setMainWidget(main);
- //main->setMinimumSize(main->sizeHint());
+ //main->setMinimumSize(main->tqsizeHint());
main->FilenameUrlrequester->setFilter( "*.key" );
@@ -73,7 +73,7 @@ void GenerateOpenvpnKeyDialog::canAccept()
{
/*
- QFile f( filename );
+ TQFile f( filename );
if ( !f.exists() )
{
KMessageBox::information( 0, i18n( "File not found." ), i18n( "No fFile" ) );
@@ -81,22 +81,22 @@ void GenerateOpenvpnKeyDialog::canAccept()
// emit progress( 100 );
return ;
}*/
- generateOpenvpnKeyProcess = new QProcess(this);
+ generateOpenvpnKeyProcess = new TQProcess(this);
generateOpenvpnKeyProcess->addArgument(GlobalConfig->pathToOpenvpn);
generateOpenvpnKeyProcess->addArgument("--genkey");
generateOpenvpnKeyProcess->addArgument("--secret");
generateOpenvpnKeyProcess->addArgument(filename);
- connect( generateOpenvpnKeyProcess, SIGNAL( readyReadStderr() ), this, SLOT( readStdErr() ) );
- connect( generateOpenvpnKeyProcess, SIGNAL( readyReadStdout() ), this, SLOT( readStdErr() ) );
+ connect( generateOpenvpnKeyProcess, TQT_SIGNAL( readyReadStderr() ), this, TQT_SLOT( readStdErr() ) );
+ connect( generateOpenvpnKeyProcess, TQT_SIGNAL( readyReadStdout() ), this, TQT_SLOT( readStdErr() ) );
if ( !generateOpenvpnKeyProcess->start(env) )
{
- KMessageBox::sorry( this, i18n( "Generating of %1 key failed!" ).arg( "openvpn" ) );
- GlobalConfig->appendLogEntry(i18n( "\"%1\" start failed!" ).arg( "openvpn" ),GlobalConfig->error);
+ KMessageBox::sorry( this, i18n( "Generating of %1 key failed!" ).tqarg( "openvpn" ) );
+ GlobalConfig->appendLogEntry(i18n( "\"%1\" start failed!" ).tqarg( "openvpn" ),GlobalConfig->error);
}
else
{
- GlobalConfig->appendLogEntry( i18n("Generating of %1 key was successful.").arg("openvpn"), GlobalConfig->info);
+ GlobalConfig->appendLogEntry( i18n("Generating of %1 key was successful.").tqarg("openvpn"), GlobalConfig->info);
genOk = true;
}
@@ -104,25 +104,25 @@ void GenerateOpenvpnKeyDialog::canAccept()
{
sleep(1);
}
- disconnect( generateOpenvpnKeyProcess, SIGNAL( readyReadStderr() ), this, SLOT( readStdErr() ) );
- disconnect( generateOpenvpnKeyProcess, SIGNAL( readyReadStdout() ), this, SLOT( readStdErr() ) );
+ disconnect( generateOpenvpnKeyProcess, TQT_SIGNAL( readyReadStderr() ), this, TQT_SLOT( readStdErr() ) );
+ disconnect( generateOpenvpnKeyProcess, TQT_SIGNAL( readyReadStdout() ), this, TQT_SLOT( readStdErr() ) );
delete generateOpenvpnKeyProcess;
generateOpenvpnKeyProcess = 0L;
if (genOk)
- KMessageBox::information( this, i18n( "Generating the key in \"%1\" was successful." ).arg( filename ) );
+ KMessageBox::information( this, i18n( "Generating the key in \"%1\" was successful." ).tqarg( filename ) );
else
- KMessageBox::sorry( this, i18n( "Generating the key in \"%1\" failed!" ).arg( filename ) );
+ KMessageBox::sorry( this, i18n( "Generating the key in \"%1\" failed!" ).tqarg( filename ) );
//std::cout << "accept" << std::endl;
- QDialog::accept();
+ TQDialog::accept();
}
void GenerateOpenvpnKeyDialog::readStdErr()
{
// while ( generateOpenvpnKeyProcess->canReadLineStderr() ) {
// ProcessMsg_connect = generateOpenvpnKeyProcess->readLineStderr();
- QString ProcessMsg_connect = QString( generateOpenvpnKeyProcess->readStderr() );
+ TQString ProcessMsg_connect = TQString( generateOpenvpnKeyProcess->readStderr() );
if (ProcessMsg_connect.isEmpty())
- ProcessMsg_connect = QString( generateOpenvpnKeyProcess->readStdout() );
+ ProcessMsg_connect = TQString( generateOpenvpnKeyProcess->readStdout() );
if ( ProcessMsg_connect.find( "Permission denied", 0 , FALSE ) > -1 )
{