diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 23:28:10 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 23:28:10 -0600 |
commit | aea462f777680f3dd68968a32b309aa069b75a98 (patch) | |
tree | c453a883e48e19ffc238fb46a6599c62fa3470d6 /clients/tde/src/part/adminusermgmt/groupauthdlg.cpp | |
parent | be64ff0e7e45df0fcf594951d5297e1bee95339e (diff) | |
download | ulab-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.cpp | 17 |
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(); } |