//
// $Id: NoTuner.h 4551 2009-03-26 13:47:59Z adcockj $
//
/////////////////////////////////////////////////////////////////////////////
//
// copyleft 2001 itt@myself.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., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA
//
/////////////////////////////////////////////////////////////////////////////

/**
 * @file notuner.h notuner Header
 */

#if !defined(__NOTUNER_H__)
#define __NOTUNER_H__

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "ITuner.h"

/**  Used when tuner is not present to stub out functions and avoid crashes
*/
class CNoTuner : public II2CTuner
{
public:
    CNoTuner()
    {
    }
    eTunerId GetTunerId()
    {
        return TUNER_ABSENT;
    }
    eVideoFormat GetDefaultVideoFormat()
    {
        return VIDEOFORMAT_NTSC_M;
    }
    BOOL HasRadio() const
    {
        return FALSE;
    }
    BOOL SetRadioFrequency(long nFrequency)
    {
        return TRUE;
    }
    BOOL SetTVFrequency(long nFrequency, eVideoFormat videoFormat)
    {
        return TRUE;
    }
    long GetFrequency()
    {
        return 0;
    }
    eTunerLocked IsLocked()
    {
        return TUNER_LOCK_NOTSUPPORTED;
    }
    eTunerAFCStatus GetAFCStatus(long &nFreqDeviation)
    {
        return TUNER_AFC_NOTSUPPORTED;
    }

protected:
    virtual BYTE GetDefaultAddress()const
    {
        return 0;
    }

};

#endif // !defined(__NOTUNER_H__)
