mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-09 21:14:02 +00:00
Add all the new stuff to persist accounts and sofia configs. Still not working, but a lot work as been done and panes not working are disabled.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16235 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
#include <QtGui>
|
||||
#include "prefaccounts.h"
|
||||
|
||||
PrefAccounts::PrefAccounts(Ui::PrefDialog *ui) :
|
||||
_ui(ui)
|
||||
{
|
||||
_settings = new QSettings();
|
||||
}
|
||||
|
||||
void PrefAccounts::writeConfig()
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
void PrefAccounts::readConfig()
|
||||
{
|
||||
_settings->beginGroup("FreeSWITCH/conf/accounts");
|
||||
foreach(QString accountName, _settings->childGroups())
|
||||
{
|
||||
_settings->beginGroup(accountName);
|
||||
QTableWidgetItem *item0 = new QTableWidgetItem(accountName);
|
||||
QTableWidgetItem *item1 = new QTableWidgetItem(_settings->value("username").toString());
|
||||
_settings->endGroup();
|
||||
_ui->accountsTable->setRowCount(_ui->accountsTable->rowCount()+1);
|
||||
_ui->accountsTable->setItem(_ui->accountsTable->rowCount()-1, 0, item0);
|
||||
_ui->accountsTable->setItem(_ui->accountsTable->rowCount()-1, 1, item1);
|
||||
}
|
||||
|
||||
_settings->endGroup();
|
||||
}
|
||||
Reference in New Issue
Block a user