mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 01:26:58 +00:00
Remove QObject inheritance from Account and add event for account removal.
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@16412 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1,6 +1,18 @@
|
||||
#include <QtGui>
|
||||
#include "account.h"
|
||||
|
||||
Account::Account(QObject *parent) :
|
||||
QObject(parent)
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user