fmradio/fmradioengine/inc/fmradiordsreceiver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:40:34 +0200
branchRCL_3
changeset 6 3cb097cb90f8
parent 0 f3d95d9c00ab
permissions -rw-r--r--
Revision: 201009 Kit: 201010

/*
* Copyright (c) 2006-2006 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  The RDS receiver implementation for FM Radio
*
*/


#ifndef CFMRADIORDSRECEIVER_H
#define CFMRADIORDSRECEIVER_H

#include "fmradioengineradiosettings.h"
#include "fmradiordsobserver.h"
#include "fmradiordsreceiverbase.h"

NONSHARABLE_CLASS( CFMRadioRdsReceiver ) : public CFMRadioRdsReceiverBase
    {
public:

    /**
     * The two-phased constructor
     *
     * @param aSettings The radio settings
     */
    static CFMRadioRdsReceiver* NewL( TRadioSettings& aSettings );

    /**
     * The destructor
     */
    virtual ~CFMRadioRdsReceiver();

    // from CFMRadioRdsReceiverBase
    void InitL( CRadioUtility& aRadioUtility, CFMRadioPubSub* aPubSub );
    void SetAutomaticSwitchingL( TBool aEnable );
    void StartReceiver();
    void StopReceiver();

private:

    /**
     * The default constructor
     *
     * @param aSettings The radio settings
     */
    CFMRadioRdsReceiver( TRadioSettings& aSettings );

    /**
     * Second phase constructor
     */
    void ConstructL();

private: // data
    
    /** The RDS utility */
    CRadioRdsUtility* iRdsUtility;

    /** State of the RDS receiver */
    TBool iStarted;
    };

#endif // CFMRADIORDSRECEIVER_H