|
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 |
|
18 #include "ut_callsplugin.h" |
|
19 #include "qtestmains60.h" |
|
20 #include <cpsettingformitemdata.h> |
|
21 #define private public |
|
22 #include "cpcallsplugin.h" |
|
23 #include "cpitemdatahelper.h" |
|
24 |
|
25 Q_EXTERN_C const char * qt_plugin_query_verification_data(); |
|
26 Q_EXTERN_C ::QObject * qt_plugin_instance(); |
|
27 /*! |
|
28 UT_CpCallsPlugin::UT_CpCallsPlugin |
|
29 */ |
|
30 UT_CpCallsPlugin::UT_CpCallsPlugin() |
|
31 : m_callsplugin(NULL) |
|
32 { |
|
33 const char * verificationData = qt_plugin_query_verification_data(); |
|
34 } |
|
35 |
|
36 /*! |
|
37 UT_CpCallsPlugin::~UT_CpCallsPlugin |
|
38 */ |
|
39 UT_CpCallsPlugin::~UT_CpCallsPlugin() |
|
40 { |
|
41 delete m_callsplugin; |
|
42 } |
|
43 |
|
44 /*! |
|
45 UT_CpCallsPlugin::init |
|
46 */ |
|
47 void UT_CpCallsPlugin::init() |
|
48 { |
|
49 initialize(); |
|
50 |
|
51 m_callsplugin = (CpCallsPlugin*)qt_plugin_instance(); |
|
52 } |
|
53 |
|
54 |
|
55 |
|
56 void UT_CpCallsPlugin::t_createSettingFormItemData() |
|
57 { |
|
58 CpItemDataHelper itemDataHelper; |
|
59 CpCallsPlugin* p = (CpCallsPlugin*)qt_plugin_instance(); |
|
60 QList<CpSettingFormItemData*> list; |
|
61 list.append(p->createSettingFormItemData(itemDataHelper)); |
|
62 qDeleteAll(list); |
|
63 } |
|
64 |
|
65 |
|
66 /*! |
|
67 UT_CpCallsPlugin::cleanup |
|
68 */ |
|
69 void UT_CpCallsPlugin::cleanup() |
|
70 { |
|
71 reset(); |
|
72 |
|
73 delete m_callsplugin; |
|
74 m_callsplugin = NULL; |
|
75 } |
|
76 |
|
77 /*! |
|
78 UT_CpCallsPlugin::t_memleak |
|
79 */ |
|
80 void UT_CpCallsPlugin::t_memleak() |
|
81 { |
|
82 |
|
83 } |
|
84 |
|
85 QTEST_MAIN_S60(UT_CpCallsPlugin) |