phoneapp/phoneuiqtviewadapter/tsrc/ut_phonecommandextensionwrapper/xqpluginloader_stub.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: |
|
15 * |
|
16 */ |
|
17 #include <xqpluginloader.h> |
|
18 #include <QtDebug> |
|
19 #include <QList> |
|
20 #include <QString> |
|
21 #include "menuextension_stub.h" |
|
22 |
|
23 int m_phoneButtonFlags; |
|
24 int m_pluginUid; |
|
25 bool m_useExtensionStub; |
|
26 |
|
27 XQPluginLoader::XQPluginLoader(QObject* parent) : |
|
28 QObject(parent) |
|
29 { |
|
30 } |
|
31 |
|
32 XQPluginLoader::XQPluginLoader(int uid, QObject* parent) : |
|
33 QObject(parent) |
|
34 { |
|
35 m_pluginUid = uid; |
|
36 } |
|
37 |
|
38 XQPluginLoader::~XQPluginLoader () |
|
39 { |
|
40 } |
|
41 |
|
42 int XQPluginLoader::uid()const |
|
43 { |
|
44 return m_pluginUid; |
|
45 } |
|
46 |
|
47 QObject* XQPluginLoader::instance() |
|
48 { |
|
49 if (m_useExtensionStub) { |
|
50 return new SvtMenu(); |
|
51 } |
|
52 return 0; |
|
53 } |
|
54 |
|
55 void XQPluginLoader::setUid( int uid ) |
|
56 { |
|
57 m_pluginUid = uid; |
|
58 } |
|