equal
deleted
inserted
replaced
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 #ifndef __GINEBRA_PROGRESSSNIPPET_H__ |
|
18 #define __GINEBRA_PROGRESSSNIPPET_H__ |
|
19 |
|
20 #include <QtGui> |
|
21 #include "NativeChromeItem.h" |
|
22 |
|
23 namespace GVA { |
|
24 |
|
25 class GWebContentView; |
|
26 |
|
27 class ProgressSnippet : public NativeChromeItem |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 ProgressSnippet(ChromeSnippet * snippet, QGraphicsItem* parent = 0); |
|
32 virtual ~ProgressSnippet(); |
|
33 void paint(QPainter* painter, const QStyleOptionGraphicsItem* opt, QWidget* widget); |
|
34 public slots: |
|
35 void onProgress(int progress); |
|
36 void onStart(); |
|
37 void onFinished(bool ok); |
|
38 private: |
|
39 qreal m_progress; |
|
40 QColor m_color; |
|
41 GWebContentView * m_webView; |
|
42 }; |
|
43 |
|
44 } // end of namespace GVA |
|
45 |
|
46 #endif // __GINEBRA_PROGRESSSNIPPET_H__ |
|