19 * |
19 * |
20 */ |
20 */ |
21 |
21 |
22 #ifndef MOSTVISITEDSNIPPET_H |
22 #ifndef MOSTVISITEDSNIPPET_H |
23 #define MOSTVISITEDSNIPPET_H |
23 #define MOSTVISITEDSNIPPET_H |
24 |
|
25 #include "ChromeSnippet.h" |
24 #include "ChromeSnippet.h" |
26 #include "ChromeWidget.h" |
25 #include "ChromeWidget.h" |
27 |
26 |
28 namespace GVA { |
27 namespace GVA { |
|
28 |
|
29 class ExternalEventCharm; |
29 |
30 |
30 class MostVisitedSnippet : public ChromeSnippet |
31 class MostVisitedSnippet : public ChromeSnippet |
31 { |
32 { |
32 Q_OBJECT |
33 Q_OBJECT |
33 public: |
34 public: |
34 MostVisitedSnippet(const QString & elementId, ChromeWidget * chrome, QGraphicsWidget * widget, const QWebElement & element); |
35 MostVisitedSnippet(const QString & elementId, ChromeWidget * chrome, QGraphicsWidget * widget, const QWebElement & element); |
35 static MostVisitedSnippet * instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element); |
36 static MostVisitedSnippet * instance(const QString& elementId, ChromeWidget * chrome, const QWebElement & element); |
36 void toggleVisibility(bool animate); |
37 void toggleVisibility(bool animate); |
37 void hide(bool animate); |
38 void hide(bool animate); |
38 void updateMVGeometry(); |
|
39 void setChromeWidget(QGraphicsWidget * widget); |
39 void setChromeWidget(QGraphicsWidget * widget); |
40 virtual ~MostVisitedSnippet(); |
40 virtual ~MostVisitedSnippet(); |
41 void close(); |
41 void close(); |
42 Q_SIGNALS: |
42 Q_SIGNALS: |
43 void mostVisitedSnippetCloseComplete(); |
43 void mostVisitedSnippetCloseComplete(); |
44 private slots : |
44 private slots : |
45 void displayModeChanged(int newMode); |
45 void displayModeChanged(int newMode); |
|
46 void onWidgetCloseComplete(); |
46 private: |
47 private: |
47 ChromeWidget *m_chrome; |
48 ChromeWidget *m_chrome; |
|
49 ExternalEventCharm *m_externalEventCharm; |
48 }; |
50 }; |
49 } |
51 } |
50 |
|
51 #endif // MOSTVISITEDSNIPPET_H |
52 #endif // MOSTVISITEDSNIPPET_H |