From 610840384ff2a04d640ca4d8fe100019bab0ba16 Mon Sep 17 00:00:00 2001 From: Jan Darmochwal Date: Tue, 5 Oct 2010 12:45:20 +0200 Subject: simple PVS configuration in vmchooser This patch adds a GroupBox with PVS access restriction options to vmchooser. Vmchooser checks if a PVS daemon is running and if so, displays some access configuration options. The options will be sent to the PVS daemon after a session has been started (just before vmchooser exits). All PVS configuration program logic is contained in the Dialog class. (It would probably be better to use a custom widget for the PVS options.) The file org.openslx.pvs.xml has been copied from a PVS build. This file has to be updated manually when the PVS D-Bus specification changes. --- src/dialog.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/dialog.h') diff --git a/src/dialog.h b/src/dialog.h index f452c61..e4d87e9 100644 --- a/src/dialog.h +++ b/src/dialog.h @@ -6,6 +6,7 @@ #include #include "session.h" #include "sessiontreemodel.h" +#include "pvsinterface.h" namespace Ui { class Dialog; @@ -24,8 +25,13 @@ protected: private: Ui::Dialog *ui; SessionTreeModel *model_; + OrgOpenslxPvsInterface *ifaceDBus_; + void readPVSSettings(); + void writePVSSettings(); private slots: + void on_comboBoxOthers_currentIndexChanged(int index); + void on_comboBoxLecturer_currentIndexChanged(int index); void on_pushButtonStart_clicked(); void on_pushButtonAbort_clicked(); void on_treeView_activated(QModelIndex index); -- cgit v1.2.3-55-g7522