2010-01-20 00:11:40 -05:00
|
|
|
#include <QtGui>
|
2010-01-18 23:03:34 -05:00
|
|
|
#include "account.h"
|
|
|
|
|
2010-01-20 00:11:40 -05:00
|
|
|
Account::Account(QString name) :
|
|
|
|
_name(name)
|
2010-01-18 23:03:34 -05:00
|
|
|
{
|
2010-01-20 00:11:40 -05:00
|
|
|
QSettings settings;
|
|
|
|
settings.beginGroup("FreeSWITCH/conf/sofia.conf/profiles/profile/gateways");
|
|
|
|
foreach(QString g, settings.childGroups())
|
|
|
|
{
|
|
|
|
settings.beginGroup(g);
|
|
|
|
if(settings.value("gateway/attrs/name").toString() == name)
|
|
|
|
{
|
|
|
|
_uuid = g;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2010-01-18 23:03:34 -05:00
|
|
|
}
|