logsui/logsapp/inc/logspageindicatoritem.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 27 May 2010 12:51:53 +0300
changeset 4 e52d42f9500c
parent 0 4a5361db8937
permissions -rw-r--r--
Revision: 201019 Kit: 2010121

/*
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/

#ifndef LOGSPAGEINDICATORITEM_H
#define LOGSPAGEINDICATORITEM_H

#include <hbiconitem.h>


class LogsPageIndicatorItem : public HbIconItem
{
    Q_OBJECT
    friend class UT_LogsPageIndicatorItem;
    
public:
    
    explicit LogsPageIndicatorItem(bool active = false, QGraphicsItem *parent = 0);
    ~LogsPageIndicatorItem();
    
public:

    void setActive(bool active = true);
    bool isActive() const;
   
protected:
    
    void changeEvent(QEvent * event);

private:

    void updateColor();
    void startAnimation();

private slots:
    
    void animationFinished();
    
private:
    
    bool mIsActive;    
};

#endif // LOGSPAGEINDICATORITEM_H