Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (41 sloc) 1.33 KB
/*
* Eleutian Trainer Studio Application Opensource Edition, a VoIP client with Webkit and Flash support.
* Copyright (C) 2011, Eleutian Technology, LLC <http://www.eleutian.com>
*
* Version: Apache License 2.0
*
* The content of this file is licensed under the Apache License, Version 2.0. (the "License").
* You may not use this file except in compliance with
* the License. You may obtain a copy of the License at
* http://www.apache.org/licenses/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* The Original Code is Eleutian Trainer Studio Application Opensource Edition.
*
* The Initial Developer of the Original Code is
* Seven Du <seven@eleutian.com>
* Portions created by the Initial Developer are Copyright (C)
* the Initial Developer. All Rights Reserved.
*
* Contributor(s):
*
* Jadob Lewallen <jacob@eleutian.com>
*/
#include "user.h"
User::User(QVariantMap &details)
{
_details = details;
}
QString User::getVoipServer()
{
QVariantList servers = _details["servers"].toList();
QVariantMap server = servers[0].toMap();
return QString("%1:%2").arg(server["sip_proxy"].toString(), server["sip_port"].toString());
}
User::~User()
{
}
Jump to Line
Something went wrong with that request. Please try again.