freeswitch/fscomm/account.cpp
2010-01-20 05:11:40 +00:00

19 lines
418 B
C++

#include <QtGui>
#include "account.h"
Account::Account(QString name) :
_name(name)
{
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;
}
}
}