dom/fm/nsFMRadioSettings.cpp
author Gregory Szorc <gps@mozilla.com>
Wed, 05 Dec 2012 22:46:01 -0800
changeset 115100 051613fd8775ca08852db74e244aff2324ae2146
parent 107524 75923725b2fc72927458f6281a78ebaab8f6bc71
permissions -rw-r--r--
Bug 803400 - Add clobber mach command; r=glandium DONTBUILD (NPOTB)

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "nsFMRadioSettings.h"

NS_IMPL_ISUPPORTS1(nsFMRadioSettings, nsIFMRadioSettings)

nsFMRadioSettings::nsFMRadioSettings(int32_t aUpperLimit,
                                     int32_t aLowerLimit,
                                     int32_t aChannelWidth)
{
  mUpperLimit = aUpperLimit;
  mLowerLimit = aLowerLimit;
  mChannelWidth  = aChannelWidth;
}

nsFMRadioSettings::~nsFMRadioSettings()
{

}

/* attribute long upperLimit; */
NS_IMETHODIMP nsFMRadioSettings::GetUpperLimit(int32_t *aUpperLimit)
{
  *aUpperLimit = mUpperLimit;
  return NS_OK;
}

NS_IMETHODIMP nsFMRadioSettings::SetUpperLimit(int32_t aUpperLimit)
{
  mUpperLimit = aUpperLimit;
  return NS_OK;
}

/* attribute long lowerLimit; */
NS_IMETHODIMP nsFMRadioSettings::GetLowerLimit(int32_t *aLowerLimit)
{
  *aLowerLimit = mLowerLimit;
  return NS_OK;
}

NS_IMETHODIMP nsFMRadioSettings::SetLowerLimit(int32_t aLowerLimit)
{
  mLowerLimit = aLowerLimit;
  return NS_OK;
}

/* attribute long spaceType; */
NS_IMETHODIMP nsFMRadioSettings::GetChannelWidth(int32_t *aChannelWidth)
{
  *aChannelWidth = mChannelWidth;
  return NS_OK;
}

NS_IMETHODIMP nsFMRadioSettings::SetChannelWidth(int32_t aChannelWidth)
{
  mChannelWidth = aChannelWidth;
  return NS_OK;
}