@ -216,7 +216,7 @@ void KMFPFInstaller::cmdRunFW() {
// }
// }
//
//
// TQString cmd = "bash " + file + " -v start";
// TQString cmd = "bash " + file + " -v start";
// // K ProcessWrapper::instance()->slotStartLocalJob( "startfirewall", cmd, true, true );
// // TDE ProcessWrapper::instance()->slotStartLocalJob( "startfirewall", cmd, true, true );
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->runCmd( cmd, Constants::StartFirewallJob_Name, i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// execWidget()->runCmd( cmd, Constants::StartFirewallJob_Name, i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
// showOutput();
@ -257,16 +257,16 @@ void KMFPFInstaller::cmdRunFW() {
//
//
// generateInstallerPackage( rulesetDoc()->target() );
// generateInstallerPackage( rulesetDoc()->target() );
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --start";
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --start";
// K ProcessWrapper::instance()->slotStartRemoteJob( Constants::StartFirewallJob_Name, cmd, rulesetDoc()->target() );
// TDE ProcessWrapper::instance()->slotStartRemoteJob( Constants::StartFirewallJob_Name, cmd, rulesetDoc()->target() );
//
//
// if ( K ProcessWrapper::instance()->exitStatus() != 0 ) {
// if ( TDE ProcessWrapper::instance()->exitStatus() != 0 ) {
// kdDebug() << "ERROR:" << K ProcessWrapper::instance()->stdErr() << endl;
// kdDebug() << "ERROR:" << TDE ProcessWrapper::instance()->stdErr() << endl;
// KMessageBox::error( 0, K ProcessWrapper::instance()->stdCombined() );
// KMessageBox::error( 0, TDE ProcessWrapper::instance()->stdCombined() );
// return;
// return;
// }
// }
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->setText( K ProcessWrapper::instance()->stdOut(), i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( TDE ProcessWrapper::instance()->stdOut(), i18n("Start Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// showOutput();
// checkStatus();
// checkStatus();
// }
// }
@ -305,16 +305,16 @@ void KMFPFInstaller::cmdStopFW() {
//
//
// generateInstallerPackage( rulesetDoc()->target() );
// generateInstallerPackage( rulesetDoc()->target() );
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --stop";
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --stop";
// K ProcessWrapper::instance()->slotStartRemoteJob( Constants::StopFirewallJob_Name, cmd, rulesetDoc()->target() );
// TDE ProcessWrapper::instance()->slotStartRemoteJob( Constants::StopFirewallJob_Name, cmd, rulesetDoc()->target() );
//
//
// if ( K ProcessWrapper::instance()->exitStatus() != 0 ) {
// if ( TDE ProcessWrapper::instance()->exitStatus() != 0 ) {
// kdDebug() << "ERROR:" << K ProcessWrapper::instance()->stdErr() << endl;
// kdDebug() << "ERROR:" << TDE ProcessWrapper::instance()->stdErr() << endl;
// KMessageBox::error( 0, K ProcessWrapper::instance()->stdCombined() );
// KMessageBox::error( 0, TDE ProcessWrapper::instance()->stdCombined() );
// return;
// return;
// }
// }
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->setText( K ProcessWrapper::instance()->stdOut(), i18n("Stop Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( TDE ProcessWrapper::instance()->stdOut(), i18n("Stop Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// showOutput();
// checkStatus();
// checkStatus();
// }
// }
@ -333,7 +333,7 @@ void KMFPFInstaller::cmdShowRunningConfig( const TQString& para ) {
// }
// }
//
//
// if( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// if( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// // K ProcessWrapper::instance()->slotStartLocalJob( "show_config", cmd, true, true );
// // TDE ProcessWrapper::instance()->slotStartLocalJob( "show_config", cmd, true, true );
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ), true );
// execWidget()->runCmd( cmd,Constants::ShowConfigJob_Name, i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ), true );
// showOutput();
// showOutput();
@ -342,16 +342,16 @@ void KMFPFInstaller::cmdShowRunningConfig( const TQString& para ) {
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( i18n("Please wait while the scripts are uploaded and executed..."), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// showOutput();
// K ProcessWrapper::instance()->slotStartRemoteJob( Constants::ShowConfigJob_Name, cmd, rulesetDoc()->target() );
// TDE ProcessWrapper::instance()->slotStartRemoteJob( Constants::ShowConfigJob_Name, cmd, rulesetDoc()->target() );
//
//
// if ( K ProcessWrapper::instance()->exitStatus() != 0 ) {
// if ( TDE ProcessWrapper::instance()->exitStatus() != 0 ) {
// kdDebug() << "ERROR:" << K ProcessWrapper::instance()->stdErr() << endl;
// kdDebug() << "ERROR:" << TDE ProcessWrapper::instance()->stdErr() << endl;
// KMessageBox::error( 0, K ProcessWrapper::instance()->stdCombined() );
// KMessageBox::error( 0, TDE ProcessWrapper::instance()->stdCombined() );
// return;
// return;
// }
// }
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->setText( K ProcessWrapper::instance()->stdOut(), i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( TDE ProcessWrapper::instance()->stdOut(), i18n("Show Table %1 on %2").arg( para ).arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// showOutput();
// }
// }
}
}
@ -371,7 +371,7 @@ void KMFPFInstaller::cmdInstallFW() {
// }
// }
//
//
// if ( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// if ( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// KURL url ( K Global::dirs() ->findResource( "appdata", "scripts/installer/linux/kmfinstall.sh" ));
// KURL url ( TDE Global::dirs() ->findResource( "appdata", "scripts/installer/linux/kmfinstall.sh" ));
// TQString installscript = url.path();
// TQString installscript = url.path();
//
//
// if ( installscript.isEmpty() ) {
// if ( installscript.isEmpty() ) {
@ -434,7 +434,7 @@ void KMFPFInstaller::cmdInstallFW() {
// systemtype = "sysv";
// systemtype = "sysv";
//
//
// TQString cmd = "bash " + installscript + " install " + systemtype + " " + conf->initPath() + " " + conf->rcDefaultPath() + " " + initscript + " " + fwscript;
// TQString cmd = "bash " + installscript + " install " + systemtype + " " + conf->initPath() + " " + conf->rcDefaultPath() + " " + initscript + " " + fwscript;
// // K ProcessWrapper::instance()->slotStartLocalJob( "installfirewall", cmd, true, true );
// // TDE ProcessWrapper::instance()->slotStartLocalJob( "installfirewall", cmd, true, true );
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->runCmd( cmd, Constants::InstallFirewallJob_Name, i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// execWidget()->runCmd( cmd, Constants::InstallFirewallJob_Name, i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
@ -447,16 +447,16 @@ void KMFPFInstaller::cmdInstallFW() {
//
//
// generateInstallerPackage( rulesetDoc()->target() );
// generateInstallerPackage( rulesetDoc()->target() );
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --install";
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --install";
// K ProcessWrapper::instance()->slotStartRemoteJob( Constants::InstallFirewallJob_Name, cmd, rulesetDoc()->target() );
// TDE ProcessWrapper::instance()->slotStartRemoteJob( Constants::InstallFirewallJob_Name, cmd, rulesetDoc()->target() );
//
//
// if ( K ProcessWrapper::instance()->exitStatus() != 0 ) {
// if ( TDE ProcessWrapper::instance()->exitStatus() != 0 ) {
// kdDebug() << "ERROR:" << K ProcessWrapper::instance()->stdErr() << endl;
// kdDebug() << "ERROR:" << TDE ProcessWrapper::instance()->stdErr() << endl;
// KMessageBox::error( 0, K ProcessWrapper::instance()->stdCombined() );
// KMessageBox::error( 0, TDE ProcessWrapper::instance()->stdCombined() );
// return;
// return;
// }
// }
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->setText( K ProcessWrapper::instance()->stdOut(), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( TDE ProcessWrapper::instance()->stdOut(), i18n("Install Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// showOutput();
// checkStatus();
// checkStatus();
// }
// }
@ -476,7 +476,7 @@ void KMFPFInstaller::cmdUninstallFW() {
//
//
//
//
// if ( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// if ( rulesetDoc()->target()->isLocalExecuteTarget() ) {
// KURL url ( K Global::dirs() ->findResource( "appdata", "scripts/installer/linux/kmfinstall.sh" ));
// KURL url ( TDE Global::dirs() ->findResource( "appdata", "scripts/installer/linux/kmfinstall.sh" ));
// TQString installscript = url.path();
// TQString installscript = url.path();
//
//
// if ( installscript.isEmpty() ) {
// if ( installscript.isEmpty() ) {
@ -529,7 +529,7 @@ void KMFPFInstaller::cmdUninstallFW() {
// systemtype = "sysv";
// systemtype = "sysv";
//
//
// TQString cmd = "bash " + installscript + " uninstall " + systemtype + " " + conf->initPath() + " " + conf->rcDefaultPath();
// TQString cmd = "bash " + installscript + " uninstall " + systemtype + " " + conf->initPath() + " " + conf->rcDefaultPath();
// // K ProcessWrapper::instance()->slotStartLocalJob( "uninstallfirewall", cmd, true, true );
// // TDE ProcessWrapper::instance()->slotStartLocalJob( "uninstallfirewall", cmd, true, true );
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->runCmd( cmd, Constants::UninstallFirewallJob_Name, i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
// execWidget()->runCmd( cmd, Constants::UninstallFirewallJob_Name, i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ), true );
@ -543,16 +543,16 @@ void KMFPFInstaller::cmdUninstallFW() {
//
//
// generateInstallerPackage( rulesetDoc()->target() );
// generateInstallerPackage( rulesetDoc()->target() );
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --uninstall";
// TQString cmd = "cd /tmp/; sh ./kmfpackage.kmfpkg -q --uninstall";
// K ProcessWrapper::instance()->slotStartRemoteJob( Constants::UninstallFirewallJob_Name, cmd, rulesetDoc()->target() );
// TDE ProcessWrapper::instance()->slotStartRemoteJob( Constants::UninstallFirewallJob_Name, cmd, rulesetDoc()->target() );
//
//
// if ( K ProcessWrapper::instance()->exitStatus() != 0 ) {
// if ( TDE ProcessWrapper::instance()->exitStatus() != 0 ) {
// kdDebug() << "ERROR:" << K ProcessWrapper::instance()->stdErr() << endl;
// kdDebug() << "ERROR:" << TDE ProcessWrapper::instance()->stdErr() << endl;
// KMessageBox::error( 0, K ProcessWrapper::instance()->stdCombined() );
// KMessageBox::error( 0, TDE ProcessWrapper::instance()->stdCombined() );
// return;
// return;
// }
// }
//
//
// setOutputWidget( execWidget() );
// setOutputWidget( execWidget() );
// execWidget()->setText( K ProcessWrapper::instance()->stdOut(), i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// execWidget()->setText( TDE ProcessWrapper::instance()->stdOut(), i18n("Uninstall Firewall on %1").arg( rulesetDoc()->target()->toFriendlyString() ) );
// showOutput();
// showOutput();
// checkStatus();
// checkStatus();
// }
// }
@ -866,7 +866,7 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
// KTempFile *kmf_pkg_intsall = new KTempFile();
// KTempFile *kmf_pkg_intsall = new KTempFile();
// KTempFile *kmf_install_package = new KTempFile();
// KTempFile *kmf_install_package = new KTempFile();
//
//
// KURL readme_url ( K Global::dirs() ->findResource( "appdata", "README.InstallerPackage.txt" ));
// KURL readme_url ( TDE Global::dirs() ->findResource( "appdata", "README.InstallerPackage.txt" ));
// // TQString readme_txt = readme_url.path();
// // TQString readme_txt = readme_url.path();
// if ( readme_url.path().isEmpty() ) {
// if ( readme_url.path().isEmpty() ) {
// TQString msg = i18n( "<p>Unable to find the package README script <b>README.InstallerPackage.txt</b>"
// TQString msg = i18n( "<p>Unable to find the package README script <b>README.InstallerPackage.txt</b>"
@ -880,7 +880,7 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
// kdDebug() << "found readme script: " << readme_url.path() << endl;
// kdDebug() << "found readme script: " << readme_url.path() << endl;
//
//
//
//
// KURL kmfinstall_url ( K Global::dirs() ->findResource( "appdata", "scripts/installer/" + target->config()->oS() + "/kmfinstall.sh" ));
// KURL kmfinstall_url ( TDE Global::dirs() ->findResource( "appdata", "scripts/installer/" + target->config()->oS() + "/kmfinstall.sh" ));
// if ( kmfinstall_url.path().isEmpty() ) {
// if ( kmfinstall_url.path().isEmpty() ) {
// TQString msg = i18n( "<p>Unable to find install script <b>kmfinstall.sh</b>"
// TQString msg = i18n( "<p>Unable to find install script <b>kmfinstall.sh</b>"
// "<p>Please check your installation. Usually this script is installed in "
// "<p>Please check your installation. Usually this script is installed in "
@ -896,7 +896,7 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
//
//
//
//
//
//
// KURL kmfpgkinstall_url ( K Global::dirs() ->findResource( "appdata", "scripts/installer/" + target->config()->oS() + "/kmfpkginstall.sh" ));
// KURL kmfpgkinstall_url ( TDE Global::dirs() ->findResource( "appdata", "scripts/installer/" + target->config()->oS() + "/kmfpkginstall.sh" ));
// if ( kmfpgkinstall_url.path().isEmpty() ) {
// if ( kmfpgkinstall_url.path().isEmpty() ) {
// TQString msg = i18n( "<p>Unable to find install script <b>kmfinstall.sh</b>"
// TQString msg = i18n( "<p>Unable to find install script <b>kmfinstall.sh</b>"
// "<p>Please check your installation. Usually this script is installed in "
// "<p>Please check your installation. Usually this script is installed in "
@ -911,7 +911,7 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
// parseFileHeaders( kmfpgkinstall_url.path(), kmf_pkg_intsall->name() );
// parseFileHeaders( kmfpgkinstall_url.path(), kmf_pkg_intsall->name() );
//
//
//
//
// KURL kmf_install_package_url ( K Global::dirs() ->findResource( "appdata", "scripts/installer/" + target->config()->oS() + "/installpackage.sh" ));
// KURL kmf_install_package_url ( TDE Global::dirs() ->findResource( "appdata", "scripts/installer/" + target->config()->oS() + "/installpackage.sh" ));
// if ( kmf_install_package_url.path().isEmpty() ) {
// if ( kmf_install_package_url.path().isEmpty() ) {
// TQString msg = i18n( "<p>Unable to find install package script <b>installpackage.sh</b>"
// TQString msg = i18n( "<p>Unable to find install package script <b>installpackage.sh</b>"
// "<p>Please check your installation. Usually this script is installed in "
// "<p>Please check your installation. Usually this script is installed in "
@ -1080,7 +1080,7 @@ void KMFPFInstaller::generateInstallerPackage( KMFTarget* target, const KURL& pa
//
//
// void KMFPFInstaller::loadIcons() {
// void KMFPFInstaller::loadIcons() {
// kdDebug() << "void KMFPFInstaller::loadIcons()" << endl;
// kdDebug() << "void KMFPFInstaller::loadIcons()" << endl;
// KIconLoader *loader = K Global:: iconLoader();
// KIconLoader *loader = TDE Global:: iconLoader();
// TQString icon_name;
// TQString icon_name;
// icon_name = "encrypted";
// icon_name = "encrypted";
// icon_run = loader->loadIcon( icon_name, KIcon::Toolbar );
// icon_run = loader->loadIcon( icon_name, KIcon::Toolbar );