equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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 |
|
18 |
|
19 #ifndef __GINEBRA_CACHEDHANDLER_H__ |
|
20 #define __GINEBRA_CACHEDHANDLER_H__ |
|
21 |
|
22 #include <QString> |
|
23 #include <QRect> |
|
24 |
|
25 namespace GVA { |
|
26 |
|
27 class ChromeWidget; |
|
28 |
|
29 class CachedHandler |
|
30 { |
|
31 public: |
|
32 CachedHandler(const QString & elementId, const QString & script, const QRectF & rect, ChromeWidget * m_chrome, const QString &targetView); |
|
33 QString elementId() const {return m_id;} |
|
34 QString script() const {return m_script;} |
|
35 inline const QRectF & rect() const {return m_rect;} |
|
36 void invoke() const; |
|
37 private: |
|
38 QString m_id; |
|
39 QString m_script; |
|
40 QRectF m_rect; |
|
41 ChromeWidget * m_chrome; |
|
42 QString m_targetView; |
|
43 }; |
|
44 |
|
45 } // end of namespace GVA |
|
46 |
|
47 #endif // __GINEBRA_CACHEDHANDLER_H__ |