mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
Edit gateway works too. Now we need to start parsing events right.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16301 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -10,6 +10,7 @@ PrefAccounts::PrefAccounts(Ui::PrefDialog *ui) :
|
||||
_accDlg = NULL;
|
||||
connect(_ui->sofiaGwAddBtn, SIGNAL(clicked()), this, SLOT(addAccountBtnClicked()));
|
||||
connect(_ui->sofiaGwRemBtn, SIGNAL(clicked()), this, SLOT(remAccountBtnClicked()));
|
||||
connect(_ui->sofiaGwEditBtn, SIGNAL(clicked()), this, SLOT(editAccountBtnClicked()));
|
||||
}
|
||||
|
||||
void PrefAccounts::addAccountBtnClicked()
|
||||
@@ -42,6 +43,33 @@ void PrefAccounts::addAccountBtnClicked()
|
||||
_accDlg->activateWindow();
|
||||
}
|
||||
|
||||
void PrefAccounts::editAccountBtnClicked()
|
||||
{
|
||||
QList<QTableWidgetSelectionRange> selList = _ui->accountsTable->selectedRanges();
|
||||
|
||||
if (selList.isEmpty())
|
||||
return;
|
||||
QTableWidgetSelectionRange range = selList[0];
|
||||
|
||||
QString uuid = _ui->accountsTable->item(range.topRow(),0)->data(Qt::UserRole).toString();
|
||||
|
||||
if (!_accDlg)
|
||||
{
|
||||
_accDlg = new AccountDialog(uuid);
|
||||
connect(_accDlg, SIGNAL(gwAdded()), this, SLOT(readConfig()));
|
||||
}
|
||||
else
|
||||
{
|
||||
_accDlg->setAccId(uuid);
|
||||
}
|
||||
|
||||
_accDlg->readConfig();
|
||||
|
||||
_accDlg->show();
|
||||
_accDlg->raise();
|
||||
_accDlg->activateWindow();
|
||||
}
|
||||
|
||||
void PrefAccounts::remAccountBtnClicked()
|
||||
{
|
||||
QList<QTableWidgetSelectionRange> sel = _ui->accountsTable->selectedRanges();
|
||||
|
Reference in New Issue
Block a user