summaryrefslogtreecommitdiffstats
path: root/src/pvsgui.cpp
diff options
context:
space:
mode:
authorJohann Latocha2010-07-10 01:54:35 +0200
committerJohann Latocha2010-07-10 01:54:35 +0200
commit25305a6ef01120bf3b0d929bae0ba7693f41c46b (patch)
tree4e02673cd14fcc9db4477309f5fa1ff295a06c04 /src/pvsgui.cpp
parentRevoke Fabians changes. (diff)
downloadpvs-25305a6ef01120bf3b0d929bae0ba7693f41c46b.tar.gz
pvs-25305a6ef01120bf3b0d929bae0ba7693f41c46b.tar.xz
pvs-25305a6ef01120bf3b0d929bae0ba7693f41c46b.zip
Configuration by pvs via D-Bus. Old .allow ist now deprecated, config file: .config/openslx/pvs.conf
Diffstat (limited to 'src/pvsgui.cpp')
-rw-r--r--src/pvsgui.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp
index 25f1cd6..6fdd673 100644
--- a/src/pvsgui.cpp
+++ b/src/pvsgui.cpp
@@ -76,18 +76,6 @@ PVSGUI::PVSGUI(QWidget *parent) :
if (dbus.isConnected())
qDebug("[%s] Connection to DBus successful!", metaObject()->className());
- // TODO: perhaps this can go if fadi does his work
- // check if vnc is allowed and setup checkbox
- QFile file(QDir::toNativeSeparators(QDir::homePath() + "/.pvs/.allow"));
- if (file.open(QIODevice::ReadOnly | QIODevice::Text))
- {
- QTextStream in(&file);
- QString line = in.readLine();
- if (line == "1")
- vncCheckBox->setChecked(true);
- file.close();
- }
-
// listen on port 29481 for incoming file transfers
_serverSocket = new QTcpServer();
_serverSocket->listen(QHostAddress::Any, 29481);
@@ -108,8 +96,6 @@ PVSGUI::PVSGUI(QWidget *parent) :
connect(_hostMenu, SIGNAL(aboutToHide()), this, SLOT(hide()));
connect(_hostMenu, SIGNAL(triggered(QAction*)), this,
SLOT(pvsConnect(QAction*)));
- connect(vncCheckBox, SIGNAL(stateChanged(int)), this,
- SLOT(setVncAllow(int)));
// signals & slots - dbus
connect(_ifaceDBus, SIGNAL(showMessage(QString, QString, bool)), this,
@@ -392,22 +378,6 @@ void PVSGUI::delHost(QString host)
}
}
-// TODO: perhaps this can go if fadi does his work
-void PVSGUI::setVncAllow(int i)
-{
- QFile file(QDir::toNativeSeparators(QDir::homePath() + "/.pvs/.allow"));
- if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
- return;
-
- QTextStream out(&file);
- if (i == 0)
- out << 0;
- else
- out << 1;
-
- file.close();
-}
-
void PVSGUI::sendFile()
{
ClientFileSendDialog *d = new ClientFileSendDialog();