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