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: Plugin factory. |
|
15 * |
|
16 */ |
|
17 |
|
18 #include <qserviceinterfacedescriptor.h> |
|
19 #include <qabstractsecuritysession.h> |
|
20 #include <qservicecontext.h> |
|
21 |
|
22 #include "hshomescreenclientplugin.h" |
|
23 #ifdef Q_OS_SYMBIAN |
|
24 #include "hshomescreenclient.h" |
|
25 #endif |
|
26 |
|
27 #ifdef COVERAGE_MEASUREMENT |
|
28 #pragma CTC SKIP |
|
29 #endif //COVERAGE_MEASUREMENT |
|
30 |
|
31 QObject *HsHomescreenClientPlugin::createInstance(const QServiceInterfaceDescriptor &descriptor, |
|
32 QServiceContext *context, |
|
33 QAbstractSecuritySession *session) |
|
34 { |
|
35 Q_UNUSED(context); |
|
36 Q_UNUSED(session); |
|
37 |
|
38 if (descriptor.interfaceName() == QLatin1String("com.nokia.symbian.IHomeScreenClient")) { |
|
39 #ifdef Q_OS_SYMBIAN |
|
40 return new HsHomescreenClient(this); |
|
41 #else |
|
42 return NULL; |
|
43 #endif |
|
44 } else { |
|
45 return 0; |
|
46 } |
|
47 } |
|
48 |
|
49 Q_EXPORT_PLUGIN2(hshomescreenclientplugin, HsHomescreenClientPlugin) |
|
50 |
|
51 #ifdef COVERAGE_MEASUREMENT |
|
52 #pragma CTC ENDSKIP |
|
53 #endif //COVERAGE_MEASUREMENT |