Index: qtnx-0.9/settingsdialog.ui
===================================================================
--- qtnx-0.9.orig/settingsdialog.ui 2008-10-15 14:31:27.000000000 +0200
+++ qtnx-0.9/settingsdialog.ui 2008-10-15 14:31:27.000000000 +0200
@@ -5,8 +5,8 @@
0
0
- 454
- 559
+ 480
+ 570
@@ -26,8 +26,8 @@
0
0
- 432
- 501
+ 443
+ 512
@@ -52,570 +52,548 @@
Basic
-
-
-
- 9
- 9
- 391
- 72
-
-
-
- General
-
-
-
- 6
-
-
- 9
-
- -
-
-
- 6
-
-
- 0
-
-
-
-
-
-
- 0
- 0
-
-
-
- Session Name:
-
-
-
- -
-
-
-
-
-
-
-
-
-
- 9
- 87
- 391
- 106
-
-
-
- Server
-
-
-
- 6
-
-
- 9
-
- -
-
-
- 6
-
-
- 0
-
-
-
-
-
-
- 0
- 0
-
-
-
- Hostname:
-
-
-
- -
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Port:
-
-
-
- -
-
-
- 1
-
-
- 65535
-
-
- 22
-
-
-
-
-
- -
-
+
+
-
+
+
+ General
+
+
6
- 0
+ 9
-
-
-
- Use default key
-
-
- true
-
-
-
- -
-
-
- false
+
+
+ 6
-
- &Set Authentication Key...
+
+ 0
-
+
-
+
+
+
+ 0
+ 0
+
+
+
+ Session Name:
+
+
+
+ -
+
+
+
-
-
-
-
-
-
- 9
- 199
- 391
- 105
-
-
-
- Desktop
-
-
-
- 6
-
-
- 9
-
- -
-
+
+
+ -
+
+
+ Server
+
+
6
- 0
+ 9
-
-
-
-
- 0
- 0
-
+
+
+ 6
-
- Platform:
+
+ 0
-
-
- -
-
-
-
- UNIX
-
+
+
+
+ 0
+ 0
+
+
+
+ Hostname:
+
+
+
+ -
+
-
-
- Windows
-
+
+
+
+ 0
+ 0
+
+
+
+ Port:
+
+
-
-
- VNC Proxy
-
+
+
+ 1
+
+
+ 65535
+
+
+ 22
+
+
-
+
-
-
-
-
- 0
- 0
-
+
+
+ 6
-
- Type:
+
+ 0
-
-
- -
-
-
-
-
- KDE
-
-
- -
-
- GNOME
-
-
- -
-
- CDE
-
-
-
-
- XDM
-
+
+
+ Use default key
+
+
+ true
+
+
-
-
- Custom
-
+
+
+ false
+
+
+ &Set Authentication Key...
+
+
-
+
+
+
+
+ -
+
+
+ Desktop
+
+
+
+ 6
+
+
+ 9
+
-
-
-
-
- 0
- 0
-
+
+
+ 6
-
- Link:
+
+ 0
-
-
- -
-
-
-
- Modem
-
+
+
+
+ 0
+ 0
+
+
+
+ Platform:
+
+
+
+ -
+
+
-
+
+ UNIX
+
+
+ -
+
+ Windows
+
+
+ -
+
+ VNC Proxy
+
+
+
-
-
- ISDN
-
+
+
+
+ 0
+ 0
+
+
+
+ Type:
+
+
-
-
- ADSL
-
+
+
-
+
+ KDE
+
+
+ -
+
+ GNOME
+
+
+ -
+
+ CDE
+
+
+ -
+
+ XDM
+
+
+ -
+
+ Custom
+
+
+
-
-
- WAN
-
+
+
+
+ 0
+ 0
+
+
+
+ Link:
+
+
-
-
- LAN
-
+
+
-
+
+ Modem
+
+
+ -
+
+ ISDN
+
+
+ -
+
+ ADSL
+
+
+ -
+
+ WAN
+
+
+ -
+
+ LAN
+
+
+
-
-
-
-
- -
-
-
- 6
-
-
- 0
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 173
- 20
-
-
-
+
-
-
-
- false
+
+
+ 6
-
- &Settings...
+
+ 0
-
+
-
+
+
+ Qt::Horizontal
+
+
+
+ 173
+ 20
+
+
+
+
+ -
+
+
+ false
+
+
+ &Settings...
+
+
+
+
-
-
-
-
-
-
- 9
- 310
- 391
- 133
-
-
-
- Geometry
-
-
-
- 6
-
-
- 9
-
- -
-
+
+
+ -
+
+
+ Geometry
+
+
6
- 0
+ 9
-
-
-
-
- 0
- 0
-
+
+
+ 6
-
- Resolution:
+
+ 0
-
-
- -
-
-
-
- 640x480
-
-
- -
-
- 800x600
-
+
+
+
+ 0
+ 0
+
+
+
+ Resolution:
+
+
-
-
- 1024x768
-
+
+
-
+
+ 640x480
+
+
+ -
+
+ 800x600
+
+
+ -
+
+ 1024x768
+
+
+ -
+
+ Fullscreen
+
+
+ -
+
+ Custom
+
+
+
-
-
- Fullscreen
-
+
+
+
+ 0
+ 0
+
+
+
+ Compression:
+
+
-
-
- Custom
-
+
+
-
+
+ PNG
+
+
+ -
+
+ JPEG
+
+
+ -
+
+ Raw X11
+
+
+
-
+
-
-
-
-
- 0
- 0
-
+
+
+ 6
-
- Compression:
+
+ 0
-
-
- -
-
-
-
-
- PNG
-
-
-
-
- JPEG
-
+
+
+
+ 0
+ 0
+
+
+
+ JPEG Quality:
+
+
-
-
- Raw X11
-
+
+
+ false
+
+
+ 1
+
+
+ 9
+
+
+ 9
+
+
+ 6
+
+
+ Qt::Horizontal
+
+
+ QSlider::TicksBelow
+
+
+ 1
+
+
-
-
-
-
- -
-
-
- 6
-
-
- 0
-
-
-
-
-
-
- 0
- 0
-
-
-
- JPEG Quality:
-
-
+
-
-
-
- false
-
-
- 1
-
-
- 9
-
-
- 9
-
-
+
+
6
-
- Qt::Horizontal
-
-
- QSlider::TicksBelow
-
-
- 1
-
-
-
-
-
- -
-
-
- 6
-
-
- 0
-
-
-
-
-
- Use RENDER Extension
-
-
- true
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Width:
-
-
-
- -
-
-
- false
-
-
- 9999
-
-
- 800
-
-
-
- -
-
-
-
- 0
- 0
-
-
-
- Height:
-
-
-
- -
-
-
- false
-
-
- 9999
-
-
- 600
+
+ 0
-
+
-
+
+
+ Use RENDER Extension
+
+
+ true
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Width:
+
+
+
+ -
+
+
+ false
+
+
+ 9999
+
+
+ 800
+
+
+
+ -
+
+
+
+ 0
+ 0
+
+
+
+ Height:
+
+
+
+ -
+
+
+ false
+
+
+ 9999
+
+
+ 600
+
+
+
+
-
-
-
+
+
+
Advanced
-
+
-
@@ -948,17 +926,29 @@
-
-
-
- Qt::Vertical
-
-
-
- 20
- 40
-
+
+
+ Sessionfiles
-
+
+
+ 6
+
+
+ 9
+
+
-
+
+
+ Delete Sessionfiles
+
+
+ true
+
+
+
+
+
Index: qtnx-0.9/nxparsexml.cpp
===================================================================
--- qtnx-0.9.orig/nxparsexml.cpp 2008-10-15 14:31:27.000000000 +0200
+++ qtnx-0.9/nxparsexml.cpp 2008-10-15 14:31:27.000000000 +0200
@@ -167,6 +167,13 @@
sessionData->proxyPass = attributes.value("value").toStdString();
}
+ if (attributes.value("key") == "Delete Sessionfiles") {
+ if (attributes.value("value") == "True")
+ sessionData->delSessionfiles = true;
+ else
+ sessionData->delSessionfiles = false;
+ }
+
return true;
}
Index: qtnx-0.9/nxwritexml.cpp
===================================================================
--- qtnx-0.9.orig/nxwritexml.cpp 2008-10-15 14:31:27.000000000 +0200
+++ qtnx-0.9/nxwritexml.cpp 2008-10-15 14:31:27.000000000 +0200
@@ -171,6 +171,14 @@
xml << "\n";
+ if (sessionData.delSessionfiles == true)
+ xml << "\n";
+ else
+ xml << "\n";
+
+
xml << "\n";
file.close();
Index: qtnx-0.9/qtnxsettings.cpp
===================================================================
--- qtnx-0.9.orig/qtnxsettings.cpp 2008-10-15 14:31:27.000000000 +0200
+++ qtnx-0.9/qtnxsettings.cpp 2008-10-15 14:31:27.000000000 +0200
@@ -175,6 +175,7 @@
ui_sd.proxyPass->setText(QString::fromStdString(config.proxyPass));
ui_sd.encryption->setChecked(config.encryption);
+ ui_sd.delSessionfiles->setChecked(config.delSessionfiles);
ui_sd.memoryCache->setValue(config.cache);
ui_sd.diskCache->setValue(config.images);
@@ -356,6 +357,11 @@
else
config.encryption = false;
+ if (ui_sd.delSessionfiles->checkState() == Qt::Checked)
+ config.delSessionfiles = true;
+ else
+ config.delSessionfiles = false;
+
config.cache = ui_sd.memoryCache->value();
config.images = ui_sd.diskCache->value();
Index: qtnx-0.9/qtnxwindow.cpp
===================================================================
--- qtnx-0.9.orig/qtnxwindow.cpp 2008-10-15 14:31:27.000000000 +0200
+++ qtnx-0.9/qtnxwindow.cpp 2008-10-15 15:31:26.000000000 +0200
@@ -86,6 +86,13 @@
connect(&callback, SIGNAL(atCapacity()), this, SLOT(handleAtCapacity()));
connect(&callback, SIGNAL(connectedSuccessfully()), this, SLOT(quit()));
+
+ if (config.delSessionfiles)
+ {
+ cout << "delete Session files" << endl;
+ statusBar->showMessage("delete Sessionfiles");
+ NXClientLib::deleteAllSessionfiles();
+ }
}
void QtNXWindow::updateLinkType(QString sessionName)
Index: qtnx-0.9/qtnxwindow.h
===================================================================
--- qtnx-0.9.orig/qtnxwindow.h 2008-10-15 14:31:27.000000000 +0200
+++ qtnx-0.9/qtnxwindow.h 2008-10-15 14:31:27.000000000 +0200
@@ -24,8 +24,10 @@
#include
#include
-#include "nxclientlib.h"
-#include "nxdata.h"
+#include
+#include
+
+
#include "nxparsexml.h"
#include "qtnxsessions.h"