homescreenapp/stateplugins/hsmenuworkerstateplugin/tsrc/t_hsmenuworkerstateplugin/inc/t_hscontentservice.h
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 T_HSCONTENTSERVICE_H |
|
18 #define T_HSCONTENTSERVICE_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QMetaType> |
|
22 #include <QVariant> |
|
23 |
|
24 class HsWidgetHost; |
|
25 |
|
26 class HsContentService : public QObject |
|
27 { |
|
28 Q_OBJECT |
|
29 public: |
|
30 HsContentService(QObject *parent = 0); |
|
31 ~HsContentService(); |
|
32 |
|
33 bool createWidget(const QVariantHash ¶ms); |
|
34 HsWidgetHost *createWidgetForPreview(const QVariantHash ¶ms); |
|
35 static HsContentService *instance(); |
|
36 public: |
|
37 QVariantHash mParams; |
|
38 private: |
|
39 Q_DISABLE_COPY(HsContentService) |
|
40 |
|
41 }; |
|
42 |
|
43 Q_DECLARE_METATYPE(HsContentService *) |
|
44 |
|
45 #endif // T_HSCONTENTSERVICE_H |