radioapp/radiowidgets/inc/radioplaylogview.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 RADIOPLAYLOGVIEW_H
       
    19 #define RADIOPLAYLOGVIEW_H
       
    20 
       
    21 // User includes
       
    22 #include "radioviewbase.h"
       
    23 #include "radiowidgetsexport.h"
       
    24 
       
    25 // Forward declarations
       
    26 class RadioXmlUiLoader;
       
    27 class HbListView;
       
    28 class HbAction;
       
    29 class RadioStationFilterModel;
       
    30 class HbAbstractViewItem;
       
    31 
       
    32 // Class declaration
       
    33 class WIDGETS_DLL_EXPORT RadioPlayLogView : public RadioViewBase
       
    34 {
       
    35     Q_OBJECT
       
    36 
       
    37 public:
       
    38 
       
    39     explicit RadioPlayLogView( RadioXmlUiLoader* uiLoader );
       
    40 
       
    41 private slots:
       
    42 
       
    43     void deckButtonPressed();
       
    44     void clearList();
       
    45     void updateVisibilities();
       
    46     void listItemClicked( const QModelIndex& index );
       
    47     void listItemLongPressed( HbAbstractViewItem* item, const QPointF& coords );
       
    48 
       
    49 private:
       
    50 
       
    51 // from base class RadioViewBase
       
    52 
       
    53     void init( RadioMainWindow* aMainWindow, RadioStationModel* aModel );
       
    54     void setOrientation();
       
    55 
       
    56 // New functions
       
    57 
       
    58     void showContextMenu( const QModelIndex& index );
       
    59 
       
    60 private: //data
       
    61 
       
    62     HbListView*         mPlayLogList;
       
    63     HbAction*           mAllSongsButton;
       
    64     HbAction*           mFavoritesButton;
       
    65     RadioStationFilterModel*   mFilterModel;
       
    66 
       
    67 };
       
    68 
       
    69 #endif // RADIOPLAYLOGVIEW_H