19 #include <qabstractsecuritysession.h> |
19 #include <qabstractsecuritysession.h> |
20 #include <qservicecontext.h> |
20 #include <qservicecontext.h> |
21 |
21 |
22 #include "hsdialerwidgetplugin.h" |
22 #include "hsdialerwidgetplugin.h" |
23 #include "hsdialerwidget.h" |
23 #include "hsdialerwidget.h" |
|
24 #include "qtphonelog.h" |
24 |
25 |
25 #ifdef COVERAGE_MEASUREMENT |
26 #ifdef COVERAGE_MEASUREMENT |
26 #pragma CTC SKIP |
27 #pragma CTC SKIP |
27 #endif //COVERAGE_MEASUREMENT |
28 #endif //COVERAGE_MEASUREMENT |
28 |
29 |
29 QObject *HsDialerWidgetPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor, |
30 QObject *HsDialerWidgetPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor, |
30 QServiceContext *context, |
31 QServiceContext *context, |
31 QAbstractSecuritySession *session) |
32 QAbstractSecuritySession *session) |
32 { |
33 { |
|
34 PHONE_DEBUG("HsDialerWidgetPlugin::createInstance"); |
33 Q_UNUSED(context); |
35 Q_UNUSED(context); |
34 Q_UNUSED(session); |
36 Q_UNUSED(session); |
35 |
37 |
36 if (descriptor.interfaceName() == QLatin1String("com.nokia.homescreen.widget")) { |
38 if (descriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenWidget")) { |
|
39 PHONE_DEBUG("creating HsDialerWidget instance"); |
37 return new HsDialerWidget(); |
40 return new HsDialerWidget(); |
38 } else { |
41 } else { |
39 return 0; |
42 return 0; |
40 } |
43 } |
41 } |
44 } |