homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hslistviewitem.h
changeset 92 6727c5d0afc7
parent 77 4b195f3bea29
child 90 3ac3aaebaee5
equal deleted inserted replaced
85:35368b604b28 92:6727c5d0afc7
    25 
    25 
    26 // TODO: this is only temporary class for show progress bar.
    26 // TODO: this is only temporary class for show progress bar.
    27 // It should be remove when fix from orbit will be in official platfrom.
    27 // It should be remove when fix from orbit will be in official platfrom.
    28 class HsProgressBar: public HbProgressBar {
    28 class HsProgressBar: public HbProgressBar {
    29 public:
    29 public:
    30     HsProgressBar(QGraphicsItem *parent=0):HbProgressBar(parent) {}
    30     HsProgressBar(QGraphicsItem *parent=0):HbProgressBar(parent),mTargetValue(0),mTimerId(0) {}
    31     
    31     void setTargetProgressValue(int value);
       
    32 
    32 protected:
    33 protected:
    33     void paint ( QPainter * painter, 
    34     void paint ( QPainter * painter, 
    34             const QStyleOptionGraphicsItem * option, 
    35             const QStyleOptionGraphicsItem * option, 
    35             QWidget * widget = 0 );
    36             QWidget * widget = 0 );
       
    37     void timerEvent(QTimerEvent *event);
       
    38 private:
       
    39     int mTargetValue;
       
    40     int mTimerId;
    36 };
    41 };
    37 
    42 
    38 HS_STATES_TEST_CLASS(MenuStatesTest)
    43 HS_STATES_TEST_CLASS(MenuStatesTest)
    39 
    44 
    40 class HsListViewItem : public HbListViewItem
    45 class HsListViewItem : public HbListViewItem