diff options
author | Jan Darmochwal | 2010-10-05 12:45:20 +0200 |
---|---|---|
committer | Jan Darmochwal | 2010-10-05 12:45:20 +0200 |
commit | 610840384ff2a04d640ca4d8fe100019bab0ba16 (patch) | |
tree | faea71083d0c33f5389a9833f9576564cf0248eb /src/dialog.h | |
parent | Allow sessions to be active for a given date range (diff) | |
download | vmchooser-610840384ff2a04d640ca4d8fe100019bab0ba16.tar.gz vmchooser-610840384ff2a04d640ca4d8fe100019bab0ba16.tar.xz vmchooser-610840384ff2a04d640ca4d8fe100019bab0ba16.zip |
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.
Diffstat (limited to 'src/dialog.h')
-rw-r--r-- | src/dialog.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <QList> #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); |