homescreenapp/hsapplication/tsrc/t_hsapplication/t_hsapplicationexe/src/hscontentservice_mock.cpp
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 #include "hscontentservice.h" |
|
18 |
|
19 HsContentService::HsContentService(QObject *parent): QObject(parent) {} |
|
20 |
|
21 HsContentService::~HsContentService() {} |
|
22 |
|
23 HsContentService *HsContentService::instance() { |
|
24 static HsContentService service; |
|
25 return &service; |
|
26 } |
|
27 bool HsContentService::createWidget(const QVariantHash ¶ms) |
|
28 { |
|
29 Q_UNUSED(params); |
|
30 return true; |
|
31 } |
|
32 |
|
33 HsWidgetHost *HsContentService::createWidgetForPreview(const QVariantHash ¶ms) |
|
34 { |
|
35 Q_UNUSED(params); |
|
36 return 0; |
|
37 } |
|
38 |
|
39 bool HsContentService::addWidget(const QString &uri, const QVariantHash &preferences, |
|
40 const QVariant &homescreenData) |
|
41 { |
|
42 Q_UNUSED(preferences); |
|
43 Q_UNUSED(homescreenData); |
|
44 if (!uri.isEmpty()) { |
|
45 return true; |
|
46 } else { |
|
47 return false; |
|
48 } |
|
49 } |
|
50 |
|
51 void HsContentService::emitWidgetRemoved(const QString &uri, const QVariantHash &preferences) |
|
52 { |
|
53 Q_UNUSED(uri); |
|
54 Q_UNUSED(preferences); |
|
55 } |
|
56 |
|
57 void HsContentService::widgetStartFaulted() |
|
58 { |
|
59 } |