mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
62 lines
1.4 KiB
C++
62 lines
1.4 KiB
C++
/* 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;
|
|
}
|
|
|