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: Homescreen widget plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <qserviceinterfacedescriptor.h> |
|
19 #include <qabstractsecuritysession.h> |
|
20 #include <qservicecontext.h> |
|
21 |
|
22 #include "hsdialerwidgetplugin.h" |
|
23 #include "hsdialerwidget.h" |
|
24 #include "qtphonelog.h" |
|
25 |
|
26 #ifdef COVERAGE_MEASUREMENT |
|
27 #pragma CTC SKIP |
|
28 #endif //COVERAGE_MEASUREMENT |
|
29 |
|
30 QObject *HsDialerWidgetPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor, |
|
31 QServiceContext *context, |
|
32 QAbstractSecuritySession *session) |
|
33 { |
|
34 PHONE_DEBUG("HsDialerWidgetPlugin::createInstance"); |
|
35 Q_UNUSED(context); |
|
36 Q_UNUSED(session); |
|
37 |
|
38 if (descriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenWidget")) { |
|
39 PHONE_DEBUG("creating HsDialerWidget instance"); |
|
40 return new HsDialerWidget(); |
|
41 } else { |
|
42 return 0; |
|
43 } |
|
44 } |
|
45 |
|
46 Q_EXPORT_PLUGIN2(hsdialerwidgetplugin, HsDialerWidgetPlugin) |
|
47 |
|
48 #ifdef COVERAGE_MEASUREMENT |
|
49 #pragma CTC ENDSKIP |
|
50 #endif //COVERAGE_MEASUREMENT |
|