// This file is generated by kconfig_compiler from pppoe.kcfg.
// All changes you do to this file will be lost.

#include "pppoe.h"
#include "pppoesecrets.h"

using namespace Knm;

PppoeSetting::PppoeSetting() : Setting(Setting::Pppoe)
{
    m_secretsObject = new PppoeSecrets(this);
}

PppoeSetting::PppoeSetting(PppoeSetting *setting) : Setting(setting)
{
    m_secretsObject = new PppoeSecrets(static_cast<PppoeSecrets*>(setting->getSecretsObject()), this);
    setService(setting->service());
    setUsername(setting->username());
    setPassword(setting->password());
    setPasswordflags(setting->passwordflags());
}

PppoeSetting::~PppoeSetting()
{
}

QString PppoeSetting::name() const
{
  return QLatin1String("pppoe");
}
bool PppoeSetting::hasSecrets() const
{
  return true;
}
void PppoeSetting::setSecrets(Setting::secretsTypes types)
{
    if (!mPassword.isEmpty())
        setPasswordflags(types);
}
