|
|
@ -240,6 +240,7 @@ void UserManagementPart::terminalServiceAddGroupButtonClicked() {
|
|
|
|
keyedServerList.append(TQKeyedStringPair(TQString("%1").arg(*it2), 0));
|
|
|
|
keyedServerList.append(TQKeyedStringPair(TQString("%1").arg(*it2), 0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
groupauthdlg.setAvailableServers(keyedServerList);
|
|
|
|
groupauthdlg.setAvailableServers(keyedServerList);
|
|
|
|
|
|
|
|
groupauthdlg.setSessionLimit(0, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (groupauthdlg.exec() == TQDialog::Accepted) {
|
|
|
|
if (groupauthdlg.exec() == TQDialog::Accepted) {
|
|
|
|
m_updateTerminalServiceAuthGroupList.clear();
|
|
|
|
m_updateTerminalServiceAuthGroupList.clear();
|
|
|
@ -251,6 +252,7 @@ void UserManagementPart::terminalServiceAddGroupButtonClicked() {
|
|
|
|
for (TQKeyedStringList::Iterator it = selectedServers.begin(); it != selectedServers.end(); ++it) {
|
|
|
|
for (TQKeyedStringList::Iterator it = selectedServers.begin(); it != selectedServers.end(); ++it) {
|
|
|
|
agt.allowedServerNames.append((*it).first);
|
|
|
|
agt.allowedServerNames.append((*it).first);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
agt.maximumActiveSessionCount = groupauthdlg.sessionLimit();
|
|
|
|
m_updateTerminalServiceAuthGroupList.append(agt);
|
|
|
|
m_updateTerminalServiceAuthGroupList.append(agt);
|
|
|
|
m_commHandlerNextState = ModeUpdate_TerminalServices;
|
|
|
|
m_commHandlerNextState = ModeUpdate_TerminalServices;
|
|
|
|
m_commHandlerNextMode = ModeUpdate;
|
|
|
|
m_commHandlerNextMode = ModeUpdate;
|
|
|
@ -278,6 +280,7 @@ void UserManagementPart::terminalServiceModifyGroupButtonClicked() {
|
|
|
|
keyedServerList.append(TQKeyedStringPair(TQString("%1").arg(*it2), 0));
|
|
|
|
keyedServerList.append(TQKeyedStringPair(TQString("%1").arg(*it2), 0));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
groupauthdlg.setSelectedServers(keyedServerList);
|
|
|
|
groupauthdlg.setSelectedServers(keyedServerList);
|
|
|
|
|
|
|
|
groupauthdlg.setSessionLimit((*it).maximumActiveSessionCount, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
groupauthdlg.setGroupName(item->text(0), false);
|
|
|
|
groupauthdlg.setGroupName(item->text(0), false);
|
|
|
|
if (groupauthdlg.exec() == TQDialog::Accepted) {
|
|
|
|
if (groupauthdlg.exec() == TQDialog::Accepted) {
|
|
|
@ -289,6 +292,7 @@ void UserManagementPart::terminalServiceModifyGroupButtonClicked() {
|
|
|
|
for (TQKeyedStringList::Iterator it = selectedServers.begin(); it != selectedServers.end(); ++it) {
|
|
|
|
for (TQKeyedStringList::Iterator it = selectedServers.begin(); it != selectedServers.end(); ++it) {
|
|
|
|
agt.allowedServerNames.append((*it).first);
|
|
|
|
agt.allowedServerNames.append((*it).first);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
agt.maximumActiveSessionCount = groupauthdlg.sessionLimit();
|
|
|
|
m_updateTerminalServiceAuthGroupList.append(agt);
|
|
|
|
m_updateTerminalServiceAuthGroupList.append(agt);
|
|
|
|
m_commHandlerNextState = ModeUpdate_TerminalServices;
|
|
|
|
m_commHandlerNextState = ModeUpdate_TerminalServices;
|
|
|
|
m_commHandlerNextMode = ModeUpdate;
|
|
|
|
m_commHandlerNextMode = ModeUpdate;
|
|
|
@ -315,6 +319,7 @@ void UserManagementPart::terminalServiceDeleteGroupButtonClicked() {
|
|
|
|
void UserManagementPart::workspaceAddGroupButtonClicked() {
|
|
|
|
void UserManagementPart::workspaceAddGroupButtonClicked() {
|
|
|
|
GroupPermissionsDialog groupauthdlg(0);
|
|
|
|
GroupPermissionsDialog groupauthdlg(0);
|
|
|
|
groupauthdlg.setPermissionsSelectorLabel(i18n("Allowed Stations"));
|
|
|
|
groupauthdlg.setPermissionsSelectorLabel(i18n("Allowed Stations"));
|
|
|
|
|
|
|
|
groupauthdlg.setSessionLimit(-1, false);
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQKeyedStringList friendlyStations;
|
|
|
|
TQKeyedStringList friendlyStations;
|
|
|
|
for (StationList::iterator it = m_availableWorkspaceStationsList.begin(); it != m_availableWorkspaceStationsList.end(); ++it) {
|
|
|
|
for (StationList::iterator it = m_availableWorkspaceStationsList.begin(); it != m_availableWorkspaceStationsList.end(); ++it) {
|
|
|
@ -344,6 +349,7 @@ void UserManagementPart::workspaceModifyGroupButtonClicked() {
|
|
|
|
|
|
|
|
|
|
|
|
GroupPermissionsDialog groupauthdlg(0);
|
|
|
|
GroupPermissionsDialog groupauthdlg(0);
|
|
|
|
groupauthdlg.setPermissionsSelectorLabel(i18n("Allowed Stations"));
|
|
|
|
groupauthdlg.setPermissionsSelectorLabel(i18n("Allowed Stations"));
|
|
|
|
|
|
|
|
groupauthdlg.setSessionLimit(-1, false);
|
|
|
|
{
|
|
|
|
{
|
|
|
|
TQKeyedStringList friendlyStations;
|
|
|
|
TQKeyedStringList friendlyStations;
|
|
|
|
for (StationList::iterator it = m_availableWorkspaceStationsList.begin(); it != m_availableWorkspaceStationsList.end(); ++it) {
|
|
|
|
for (StationList::iterator it = m_availableWorkspaceStationsList.begin(); it != m_availableWorkspaceStationsList.end(); ++it) {
|
|
|
@ -633,6 +639,7 @@ void UserManagementPart::mainEventLoop() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
item->setText(0, TQString("%1").arg(info.groupName));
|
|
|
|
item->setText(0, TQString("%1").arg(info.groupName));
|
|
|
|
item->setText(1, info.allowedServerNames.join(", "));
|
|
|
|
item->setText(1, info.allowedServerNames.join(", "));
|
|
|
|
|
|
|
|
item->setText(2, TQString("%1").arg(info.maximumActiveSessionCount));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
it2 = TQListViewItemIterator(m_base->ts_list);
|
|
|
|
it2 = TQListViewItemIterator(m_base->ts_list);
|
|
|
|
while (it2.current()) {
|
|
|
|
while (it2.current()) {
|
|
|
|