radioapp/radiowidgets/inc/radiostationsview.h
changeset 51 bbebb0235466
parent 34 bc10a61bd7d3
child 54 a8ba0c289b44
equal deleted inserted replaced
47:74b7c6e79031 51:bbebb0235466
    41 class RadioStationsView : public RadioViewBase
    41 class RadioStationsView : public RadioViewBase
    42 {
    42 {
    43     Q_OBJECT
    43     Q_OBJECT
    44     Q_PROPERTY(HbIcon nowPlayingIcon READ nowPlayingIcon WRITE setNowPlayingIcon)
    44     Q_PROPERTY(HbIcon nowPlayingIcon READ nowPlayingIcon WRITE setNowPlayingIcon)
    45     Q_PROPERTY(HbIcon favoriteIcon READ favoriteIcon WRITE setFavoriteIcon)
    45     Q_PROPERTY(HbIcon favoriteIcon READ favoriteIcon WRITE setFavoriteIcon)
       
    46     Q_PROPERTY(HbIcon nonFavoriteIcon READ nonFavoriteIcon WRITE setNonFavoriteIcon)
    46 
    47 
    47 public:
    48 public:
    48 
    49 
    49     explicit RadioStationsView();
    50     explicit RadioStationsView();
    50     ~RadioStationsView();
    51     ~RadioStationsView();
    52     void setNowPlayingIcon( const HbIcon& nowPlayingIcon );
    53     void setNowPlayingIcon( const HbIcon& nowPlayingIcon );
    53     HbIcon nowPlayingIcon() const;
    54     HbIcon nowPlayingIcon() const;
    54 
    55 
    55     void setFavoriteIcon( const HbIcon& favoriteIcon );
    56     void setFavoriteIcon( const HbIcon& favoriteIcon );
    56     HbIcon favoriteIcon() const;
    57     HbIcon favoriteIcon() const;
       
    58 
       
    59     void setNonFavoriteIcon( const HbIcon& nonFavoriteIcon );
       
    60     HbIcon nonFavoriteIcon() const;
    57 
    61 
    58 private slots:
    62 private slots:
    59 
    63 
    60     void handleClick( const QModelIndex& index );
    64     void handleClick( const QModelIndex& index );
    61     void handleLongPress( HbAbstractViewItem* item, const QPointF& coords );
    65     void handleLongPress( HbAbstractViewItem* item, const QPointF& coords );
    95 
    99 
    96     HbAction*                               mFavoritesButton;
   100     HbAction*                               mFavoritesButton;
    97     HbAction*                               mLocalStationsButton;
   101     HbAction*                               mLocalStationsButton;
    98 
   102 
    99     HbIcon                                  mFavoriteIcon;
   103     HbIcon                                  mFavoriteIcon;
       
   104     HbIcon                                  mNonFavoriteIcon;
   100     HbIcon                                  mNowPlayingIcon;
   105     HbIcon                                  mNowPlayingIcon;
   101 
   106 
   102     QScopedPointer<RadioStation>            mSelectedStation;
   107     QScopedPointer<RadioStation>            mSelectedStation;
   103 
   108 
   104     QScopedPointer<RadioFrequencyScanner>   mFrequencyScanner;
   109     QScopedPointer<RadioFrequencyScanner>   mFrequencyScanner;