radioapp/radiowidgets/inc/radiowizardview.h
changeset 16 f54ebcfc1b80
parent 14 63aabac4416d
child 17 2cf3bab7c5c6
child 19 afea38384506
equal deleted inserted replaced
14:63aabac4416d 16:f54ebcfc1b80
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef RADIOWIZARDVIEW_H_
       
    19 #define RADIOWIZARDVIEW_H_
       
    20 
       
    21 // User includes
       
    22 #include "radioviewbase.h"
       
    23 #include "radiowidgetsexport.h"
       
    24 
       
    25 // Forward declarations
       
    26 class RadioMainWindow;
       
    27 class HbLabel;
       
    28 class HbPushButton;
       
    29 class HbListView;
       
    30 class RadioBannerLabel;
       
    31 
       
    32 // Class declaration
       
    33 class WIDGETS_DLL_EXPORT RadioWizardView : public RadioViewBase
       
    34     {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38 
       
    39     explicit RadioWizardView( RadioXmlUiLoader* uiLoader );
       
    40 
       
    41 private:
       
    42 
       
    43 // from base class RadioViewBase
       
    44 
       
    45     void init( RadioMainWindow* aMainWindow, RadioStationModel* aModel );
       
    46 
       
    47 // from base class QGraphicsWidget
       
    48 
       
    49     void showEvent( QShowEvent* event );
       
    50 
       
    51 private slots:
       
    52 
       
    53     void saveSelectedAsFavorites();
       
    54     void listItemClicked( const QModelIndex& index );
       
    55     void engineStatusChanged( bool radioIsOn );
       
    56 
       
    57 private:
       
    58 
       
    59     void setDoneAction();
       
    60     void startScanning();
       
    61 
       
    62 private: // data
       
    63 
       
    64     HbListView*        mList;
       
    65     RadioBannerLabel*  mBannerLabel;
       
    66     bool               mStartScanningRequested;
       
    67 
       
    68     };
       
    69 
       
    70 #endif // RADIOWIZARDVIEW_H_