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: Internet Radio home screen widget plugin |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <qserviceinterfacedescriptor.h> |
|
19 #include <qabstractsecuritysession.h> |
|
20 #include <qservicecontext.h> |
|
21 |
|
22 #include "irhswidgetplugin.h" |
|
23 #include "irhswidget.h" |
|
24 |
|
25 |
|
26 /*! |
|
27 Initialize plugin for Internet Radio home screen widget. Contains necessary information about |
|
28 the internet radio widget that it can be loaded through QT Service Framework. |
|
29 */ |
|
30 QObject *IrHsWidgetPlugin::createInstance(const QServiceInterfaceDescriptor &aDescriptor, |
|
31 QServiceContext *aContext, |
|
32 QAbstractSecuritySession *aSession) |
|
33 { |
|
34 Q_UNUSED(aContext); |
|
35 Q_UNUSED(aSession); |
|
36 |
|
37 if (aDescriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenWidget")) |
|
38 { |
|
39 return new IrHsWidget(); |
|
40 } |
|
41 else |
|
42 { |
|
43 return 0; |
|
44 } |
|
45 } |
|
46 |
|
47 Q_EXPORT_PLUGIN2(irhswidgetplugin, IrHsWidgetPlugin) |