radioengine/engine/inc/cradiordsreceiver.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:15:02 +0300
branchRCL_3
changeset 19 cce62ebc198e
permissions -rw-r--r--
Revision: 201031 Kit: 201035

/*
* Copyright (c) 2009 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:
*
*/

#ifndef CRADIORDSRECEIVER_H
#define CRADIORDSRECEIVER_H

// User includes
#include "cradiordsreceiverbase.h"

// Forward declarations
class MRadioEngineSettings;

// Class declaration
NONSHARABLE_CLASS( CRadioRdsReceiver ) : public CRadioRdsReceiverBase
    {
public:

    static CRadioRdsReceiver* NewL( MRadioEngineSettings& aSettings );

    virtual ~CRadioRdsReceiver();

private:

    CRadioRdsReceiver( MRadioEngineSettings& aSettings );

    void ConstructL();

// from base class MRadioRdsReceiver

    void InitL( CRadioUtility& aRadioUtility );
    void SetAutomaticSwitchingL( TBool aEnable );
    void StartReceiver();
    void StopReceiver();

// New functions

    /**
     * Logs the RDS receiver capabilities if logging is enabled
     */
    void LogReceiverCapabilities();

private: // data

    /** The RDS utility */
    CRadioRdsUtility*   iRdsUtility;

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

    };

#endif // CRADIORDSRECEIVER_H