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 "ut_infowidgetlinehandler.h" |
|
18 #include "infowidgetlinehandler.h" |
|
19 #include "qtestmains60.h" |
|
20 |
|
21 /*! |
|
22 UT_InfoWidgetLineHandler::UT_InfoWidgetLineHandler |
|
23 */ |
|
24 UT_InfoWidgetLineHandler::UT_InfoWidgetLineHandler() |
|
25 : |
|
26 m_lineHandler(0) |
|
27 { |
|
28 |
|
29 } |
|
30 |
|
31 |
|
32 /*! |
|
33 UT_InfoWidgetLineHandler::~UT_InfoWidgetLineHandler |
|
34 */ |
|
35 UT_InfoWidgetLineHandler::~UT_InfoWidgetLineHandler() |
|
36 { |
|
37 delete m_lineHandler; |
|
38 } |
|
39 |
|
40 /*! |
|
41 UT_InfoWidgetLineHandler::init |
|
42 */ |
|
43 void UT_InfoWidgetLineHandler::init() |
|
44 { |
|
45 initialize(); |
|
46 |
|
47 m_lineHandler = new InfoWidgetLineHandler(); |
|
48 |
|
49 QVERIFY(verify()); |
|
50 } |
|
51 |
|
52 |
|
53 /*! |
|
54 UT_InfoWidgetLineHandler::cleanup |
|
55 */ |
|
56 void UT_InfoWidgetLineHandler::cleanup() |
|
57 { |
|
58 reset(); |
|
59 |
|
60 delete m_lineHandler; |
|
61 m_lineHandler = 0; |
|
62 } |
|
63 |
|
64 /*! |
|
65 UT_InfoWidgetLineHandler::t_logCurrentInfo |
|
66 */ |
|
67 void UT_InfoWidgetLineHandler::t_logCurrentInfo() |
|
68 { |
|
69 m_lineHandler->logCurrentInfo(); |
|
70 } |
|
71 |
|
72 |
|
73 /*! |
|
74 UT_InfoWidgetLineHandler::t_activeLine |
|
75 */ |
|
76 void UT_InfoWidgetLineHandler::t_activeLine() |
|
77 { |
|
78 int activeLine = m_lineHandler->activeLine(); |
|
79 } |
|
80 |
|
81 |
|
82 /*! |
|
83 UT_InfoWidgetLineHandler::t_setActiveLine |
|
84 */ |
|
85 void UT_InfoWidgetLineHandler::t_setActiveLine() |
|
86 { |
|
87 const int KActiveLine = 0; |
|
88 m_lineHandler->setActiveLine(KActiveLine); |
|
89 } |
|
90 |
|
91 QTEST_MAIN_S60(UT_InfoWidgetLineHandler) |
|