ginebra2/ProgressSnippet.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 15:40:36 +0300
changeset 1 b0dd75e285d2
parent 0 1450b09d0cfd
permissions -rw-r--r--
Revision: 201015 Kit: 201019

/*
* 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 __GINEBRA_PROGRESSSNIPPET_H__
#define __GINEBRA_PROGRESSSNIPPET_H__

#include <QtGui>
#include "NativeChromeItem.h"

namespace GVA {

  class GWebContentView;

  class ProgressSnippet : public NativeChromeItem
  {
    Q_OBJECT
  public:
    ProgressSnippet(ChromeSnippet * snippet, QGraphicsItem* parent = 0);
    virtual ~ProgressSnippet();
    void paint(QPainter* painter, const QStyleOptionGraphicsItem* opt, QWidget* widget);
  public slots:
    void onProgress(int progress);
    void onStart();
    void onFinished(bool ok);
  private:
    qreal m_progress;
    QColor m_color;
    GWebContentView * m_webView;
  };

} // end of namespace GVA

#endif // __GINEBRA_PROGRESSSNIPPET_H__