mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
Start doing the accounts configurations. It does not work yet, only dialogs are designed.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16203 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "ui_prefdialog.h"
|
||||
#include "prefportaudio.h"
|
||||
#include "prefsofia.h"
|
||||
#include "accountdialog.h"
|
||||
|
||||
PrefDialog::PrefDialog(QWidget *parent) :
|
||||
QDialog(parent),
|
||||
@@ -11,7 +12,9 @@ PrefDialog::PrefDialog(QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
_settings = new QSettings();
|
||||
connect(this, SIGNAL(accepted()), this, SLOT(writeConfig()));
|
||||
connect(ui->sofiaGwAddBtn, SIGNAL(clicked()), this, SLOT(addAccountBtnClicked()));
|
||||
|
||||
_accDlg = NULL;
|
||||
_mod_portaudio = new PrefPortaudio(ui, this);
|
||||
_mod_sofia = new PrefSofia(ui, this);
|
||||
readConfig();
|
||||
@@ -22,6 +25,16 @@ PrefDialog::~PrefDialog()
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void PrefDialog::addAccountBtnClicked()
|
||||
{
|
||||
if (!_accDlg)
|
||||
_accDlg = new AccountDialog();
|
||||
|
||||
_accDlg->show();
|
||||
_accDlg->raise();
|
||||
_accDlg->activateWindow();
|
||||
}
|
||||
|
||||
void PrefDialog::writeConfig()
|
||||
{
|
||||
_mod_portaudio->writeConfig();
|
||||
|
Reference in New Issue
Block a user