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: Example of home screen widget |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HELLOWORLDWIDGETPROVIDER_H |
|
19 #define HELLOWORLDWIDGETPROVIDER_H |
|
20 |
|
21 |
|
22 #include <hsiwidgetprovider.h> |
|
23 |
|
24 class HsWidget; |
|
25 |
|
26 class HelloWorldWidgetProvider : public QObject, public IHsWidgetProvider |
|
27 { |
|
28 Q_OBJECT |
|
29 Q_INTERFACES(IHsWidgetProvider) |
|
30 |
|
31 public: |
|
32 HelloWorldWidgetProvider(); |
|
33 virtual ~HelloWorldWidgetProvider(); |
|
34 |
|
35 public: |
|
36 QList<HsWidgetToken> widgets(); |
|
37 HsWidget* createWidget(const HsWidgetToken& token); |
|
38 |
|
39 private: |
|
40 HsWidgetToken mWidgetToken; |
|
41 }; |
|
42 |
|
43 #endif // HELLOWORLDWIDGETPROVIDER_H |
|