radioapp/radiowidgets/inc/radiocarouselitem.h
changeset 38 f8c3d4e6102c
parent 34 bc10a61bd7d3
child 57 21be958eb3ce
equal deleted inserted replaced
36:ba22309243a1 38:f8c3d4e6102c
    35 // Class declaration
    35 // Class declaration
    36 class RadioCarouselItem : public HbWidget
    36 class RadioCarouselItem : public HbWidget
    37 {
    37 {
    38     Q_OBJECT
    38     Q_OBJECT
    39     Q_PROPERTY(Appearance appearance READ appearance WRITE setAppearance)
    39     Q_PROPERTY(Appearance appearance READ appearance WRITE setAppearance)
       
    40     Q_PROPERTY(bool landscape READ landscape WRITE setLandscape)
    40     Q_ENUMS(Appearance)
    41     Q_ENUMS(Appearance)
    41 
    42 
    42     friend class RadioStationCarousel;
    43     friend class RadioStationCarousel;
    43 
    44 
    44 public:
    45 public:
    68 
    69 
    69 // New functions
    70 // New functions
    70 
    71 
    71     void setAppearance( Appearance appearance );
    72     void setAppearance( Appearance appearance );
    72     Appearance appearance() const;
    73     Appearance appearance() const;
       
    74 
       
    75     void setLandscape( bool landscape );
       
    76     bool landscape() const;
    73 
    77 
    74     void setSeekLayout( bool seekLayout );
    78     void setSeekLayout( bool seekLayout );
    75 
    79 
    76     void setStation( const RadioStation& station );
    80     void setStation( const RadioStation& station );
    77 
    81 
   120     HbRichTextItem*                     mRadiotextItem;
   124     HbRichTextItem*                     mRadiotextItem;
   121     HbTextItem*                         mUrlItem;
   125     HbTextItem*                         mUrlItem;
   122 
   126 
   123     Appearance                          mAppearance;
   127     Appearance                          mAppearance;
   124     bool                                mOwnsCss;
   128     bool                                mOwnsCss;
       
   129     bool                                mLandscapeMode;
   125     CarouselItemFlags                   mFlags;
   130     CarouselItemFlags                   mFlags;
   126 
   131 
   127 };
   132 };
   128 
   133 
   129 Q_DECLARE_OPERATORS_FOR_FLAGS( RadioCarouselItem::CarouselItemFlags )
   134 Q_DECLARE_OPERATORS_FOR_FLAGS( RadioCarouselItem::CarouselItemFlags )