radioapp/radiouiengine/inc/radioscannerengine_p.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 17 Sep 2010 08:29:29 +0300
changeset 50 c44f9bb56771
parent 24 6df133bd92e1
child 37 451b2e1545b2
permissions -rw-r--r--
Revision: 201035 Kit: 201037

/*
* 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 RADIOSCANNERENGINE_P_H_
#define RADIOSCANNERENGINE_P_H_

#include <QObject>
#include <QMap>

// User includes
#include "radioenginewrapperobserver.h"

// Forward declarations
class RadioScannerEngine;
class RadioUiEnginePrivate;
class RadioStationHandlerIf;
class RadioStation;
class RadioEngineWrapper;

// Constants

// Class declaration
class RadioScannerEnginePrivate : public RadioEngineWrapperObserver
    {
    Q_DECLARE_PUBLIC( RadioScannerEngine )
    Q_DISABLE_COPY( RadioScannerEnginePrivate )

public:

    RadioScannerEnginePrivate( RadioScannerEngine* scanner, RadioUiEnginePrivate& uiEngine );
    virtual ~RadioScannerEnginePrivate();

private:

// from base class RadioEngineWrapperObserver

    void tunedToFrequency( uint frequency, int reason );

// New functions

    void addFrequencyAndReport( const uint frequency );

private: // data

    /**
     * Pointer to the public class
     * Not own.
     */
    RadioScannerEngine*     q_ptr;

    RadioUiEnginePrivate&   mUiEngine;

    /**
     * Last scanned frequency. Used to know when the scanning has looped around the
     * frequency band and it should stop
     */
    uint                    mLastFoundFrequency;

    bool                    mMutedByScanner;

    bool                    mIsScanning;

    };


#endif // RADIOSCANNERENGINE_P_H_