summaryrefslogtreecommitdiffstats
path: root/clients/tde/src/part/adminusermgmt/groupauthdlg.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 23:28:10 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-25 23:28:10 -0600
commitaea462f777680f3dd68968a32b309aa069b75a98 (patch)
treec453a883e48e19ffc238fb46a6599c62fa3470d6 /clients/tde/src/part/adminusermgmt/groupauthdlg.cpp
parentbe64ff0e7e45df0fcf594951d5297e1bee95339e (diff)
downloadulab-aea462f777680f3dd68968a32b309aa069b75a98.tar.gz
ulab-aea462f777680f3dd68968a32b309aa069b75a98.zip
Add ability to set maximum terminal service users in group
Diffstat (limited to 'clients/tde/src/part/adminusermgmt/groupauthdlg.cpp')
-rw-r--r--clients/tde/src/part/adminusermgmt/groupauthdlg.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/clients/tde/src/part/adminusermgmt/groupauthdlg.cpp b/clients/tde/src/part/adminusermgmt/groupauthdlg.cpp
index 3633332..7832b10 100644
--- a/clients/tde/src/part/adminusermgmt/groupauthdlg.cpp
+++ b/clients/tde/src/part/adminusermgmt/groupauthdlg.cpp
@@ -129,6 +129,23 @@ TQKeyedStringList GroupPermissionsDialog::selectedServers() {
return list;
}
+void GroupPermissionsDialog::setSessionLimit(int limit, bool visible) {
+ if (visible) {
+ m_base->m_sessionLimitLabel->show();
+ m_base->m_sessionLimit->show();
+ }
+ else {
+ m_base->m_sessionLimitLabel->hide();
+ m_base->m_sessionLimit->hide();
+ }
+
+ m_base->m_sessionLimit->setValue(limit);
+}
+
+int GroupPermissionsDialog::sessionLimit() {
+ return m_base->m_sessionLimit->value();
+}
+
void GroupPermissionsDialog::slotOk() {
accept();
}