homescreenapp/hsdomainmodel/tsrc/mockwidgetplugincheater/src/mockwidgetplugincheater.cpp
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: Mocked Mocked widget plugin, which trys |
|
15 * to changes it's size illegally. |
|
16 * |
|
17 */ |
|
18 |
|
19 #include <qserviceinterfacedescriptor.h> |
|
20 #include <qabstractsecuritysession.h> |
|
21 #include <qservicecontext.h> |
|
22 |
|
23 #include "mockwidgetcheater.h" |
|
24 #include "mockwidgetplugincheater.h" |
|
25 |
|
26 QObject *MockWidgetPluginCheater::createInstance(const QServiceInterfaceDescriptor &descriptor, |
|
27 QServiceContext *context, |
|
28 QAbstractSecuritySession *session) |
|
29 { |
|
30 Q_UNUSED(context); |
|
31 Q_UNUSED(session); |
|
32 |
|
33 if (descriptor.interfaceName() == "com.nokia.symbian.IHomeScreenWidget") { |
|
34 return new MockWidgetCheater(QSizeF(100,100)); |
|
35 } else { |
|
36 return 0; |
|
37 } |
|
38 } |
|
39 |
|
40 Q_EXPORT_PLUGIN2(mockwidgetplugincheater, MockWidgetPluginCheater) |