homescreenapp/hsutils/inc/hspageindicatoritem.h
changeset 36 cdae8c6c3876
equal deleted inserted replaced
35:f9ce957a272c 36:cdae8c6c3876
       
     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 HSPAGEINDICATORITEM_H
       
    19 #define HSPAGEINDICATORITEM_H
       
    20 
       
    21 #include <HbWidget>
       
    22 
       
    23 class HbIconItem;
       
    24 
       
    25 class HsPageIndicatorItem : public HbWidget
       
    26 {
       
    27     Q_OBJECT
       
    28 
       
    29 public:
       
    30     HsPageIndicatorItem(bool active = false, QGraphicsItem *parent = 0);
       
    31     ~HsPageIndicatorItem();
       
    32 
       
    33 public:
       
    34     void setActive(bool active = true);
       
    35     bool isActive() const;
       
    36 
       
    37     bool isAnimationRunning() const;
       
    38 
       
    39 private:
       
    40     Q_DISABLE_COPY(HsPageIndicatorItem)
       
    41     void startAnimation();
       
    42 
       
    43 private slots:
       
    44     void animationFinished();
       
    45 
       
    46 private:
       
    47     HbIconItem *mIconItem;    
       
    48     bool mIsActive;    
       
    49 };
       
    50 
       
    51 #endif // HSPAGEINDICATORITEM_H