1 /* |
1 /* |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
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 * |
4 * |
9 * Initial Contributors: |
5 * This program is free software: you can redistribute it and/or modify |
10 * Nokia Corporation - initial contribution. |
6 * it under the terms of the GNU Lesser General Public License as published by |
|
7 * the Free Software Foundation, version 2.1 of the License. |
11 * |
8 * |
12 * Contributors: |
9 * This program is distributed in the hope that it will be useful, |
|
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 * GNU Lesser General Public License for more details. |
13 * |
13 * |
14 * Description: |
14 * You should have received a copy of the GNU Lesser General Public License |
|
15 * along with this program. If not, |
|
16 * see "http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html/". |
|
17 * |
|
18 * Description: |
15 * |
19 * |
16 */ |
20 */ |
17 |
|
18 |
21 |
19 #ifndef MOSTVISITEDSNIPPET_H |
22 #ifndef MOSTVISITEDSNIPPET_H |
20 #define MOSTVISITEDSNIPPET_H |
23 #define MOSTVISITEDSNIPPET_H |
21 |
24 |
22 #include "ChromeSnippet.h" |
25 #include "ChromeSnippet.h" |
23 #include "ChromeWidget.h" |
26 #include "ChromeWidget.h" |
24 |
27 |
25 namespace GVA { |
28 namespace GVA { |
26 |
29 |
27 class MostVisitedSnippet : public ChromeSnippet |
30 class MostVisitedSnippet : public ChromeSnippet |
28 { |
31 { |
29 Q_OBJECT |
32 Q_OBJECT |
30 public: |
33 public: |
31 MostVisitedSnippet(const QString & elementId, ChromeWidget * chrome, QGraphicsWidget * widget, const QWebElement & element); |
34 MostVisitedSnippet(const QString & elementId, ChromeWidget * chrome, QGraphicsWidget * widget, const QWebElement & element); |
|
35 static MostVisitedSnippet * instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element); |
32 void toggleVisibility(bool animate); |
36 void toggleVisibility(bool animate); |
33 void hide(bool animate); |
37 void hide(bool animate); |
34 void updateMVGeometry(); |
38 void updateMVGeometry(); |
35 void setWidget(QGraphicsWidget * widget); |
39 void setChromeWidget(QGraphicsWidget * widget); |
36 virtual ~MostVisitedSnippet(); |
40 virtual ~MostVisitedSnippet(); |
37 void close(); |
41 void close(); |
38 Q_SIGNALS: |
42 Q_SIGNALS: |
39 void mostVisitedSnippetCloseComplete(); |
43 void mostVisitedSnippetCloseComplete(); |
40 private slots : |
44 private slots : |