diff -r cce62ebc198e -r 93c594350b9a radioapp/radiowidgets/inc/radiofrequencyscanner.h --- a/radioapp/radiowidgets/inc/radiofrequencyscanner.h Tue Aug 31 15:15:02 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,93 +0,0 @@ -/* -* 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 RADIOPRESETSCANNER_H_ -#define RADIOPRESETSCANNER_H_ - -// System includes -#include -#include - -// Forward declarations -class HbProgressDialog; -class RadioStation; -class RadioUiEngine; -class RadioWindow; -class RadioFrequencyStrip; -class RadioStationCarousel; -class RadioScannerEngine; - -// Class declaration -class RadioFrequencyScanner : public QObject -{ - Q_OBJECT - -public: - - RadioFrequencyScanner( RadioUiEngine& uiEngine, QObject* parent ); - ~RadioFrequencyScanner(); - - void startScanning(); - - bool isAlive() const; - -signals: - - void frequencyScannerFinished(); - -public slots: - - void cancelScanning(); - -private slots: - - void delayedStart(); - void updateScanProgress( const RadioStation& station ); - void continueScanning(); - void restoreUiControls(); - -private: - - void finishScanning(); - -private: // data - - /*! - * Reference to the Ui engine - */ - RadioUiEngine& mUiEngine; - - bool mInMainView; - - QSharedPointer mScannerEngine; - - /** - * Scanning progress note - * Own. - */ - QWeakPointer mScanningProgressNote; - - int mStripScrollTime; - int mCarouselScrollTime; - - bool mIsAlive; - - bool mUserCanceled; - -}; - -#endif // RADIOPRESETSCANNER_H_