Code owners
Assign users and groups as approvers for specific file changes. Learn more.
voIPLink.cpp 2.08 KiB
/**
* Copyright (C) 2005 Savoir-Faire Linux inc.
* Author : Laurielle Lea <laurielle.lea@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <string>
#include "user_cfg.h"
#include "voIPLink.h"
using namespace std;
VoIPLink::VoIPLink (short id)
{
_id = id;
initConstructor();
}
VoIPLink::~VoIPLink (void)
{
}
void
VoIPLink::setId (short id)
{
_id = id;
}
short
VoIPLink::getId (void)
{
return _id;
}
void
VoIPLink::setType (VoIPLinkType type)
{
_type = type;
}
VoIPLinkType
VoIPLink::getType (void)
{
return _type;
}
void
VoIPLink::setFullName (const string& fullname)
{
_fullname = fullname;
}
string
VoIPLink::getFullName (void)
{
return _fullname;
}
void
VoIPLink::setHostName (const string& hostname)
{
_hostname = hostname;
}
string
VoIPLink::getHostName (void)
{
return _hostname;
}
void
VoIPLink::setLocalIpAddress (const string& ipAdress)
{
_localIpAddress = ipAdress;
}
string
VoIPLink::getLocalIpAddress (void)
{
return _localIpAddress;
}
void
VoIPLink::initConstructor(void)
{
_type = Sip;
_fullname = get_config_fields_str(SIGNALISATION,FULL_NAME);
_hostname = get_config_fields_str(SIGNALISATION,HOST_PART);
_localIpAddress = "";
}