#include "localserver.h"
#include "localserverinterface.h"
#include "server_room.h"

LocalServer::LocalServer(QObject *parent)
	: Server(parent)
{
	addRoom(new Server_Room(0, QString(), QString(), false, QString(), QStringList(), this));
}

LocalServer::~LocalServer()
{
	prepareDestroy();
}

LocalServerInterface *LocalServer::newConnection()
{
	LocalServerInterface *lsi = new LocalServerInterface(this);
	addClient(lsi);
	return lsi;
}

ServerInfo_User LocalServer::getUserData(const QString &name)
{
	ServerInfo_User result;
	result.set_name(name.toStdString());
	return result;
}