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 <QDebug> |
|
18 #include <QString> |
|
19 #include <smcmockclassincludes.h> |
|
20 #include "cpphonenotes.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // CpPhoneNotes::CpPhoneNotes |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 CpPhoneNotes::CpPhoneNotes( ): QObject(NULL) |
|
29 { |
|
30 |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CpPhoneNotes::instance |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CpPhoneNotes * CpPhoneNotes::instance( ) |
|
38 { |
|
39 static CpPhoneNotes theInstance; |
|
40 return &theInstance; |
|
41 } |
|
42 // ----------------------------------------------------------------------------- |
|
43 // CpPhoneNotes::~CpPhoneNotes |
|
44 // ----------------------------------------------------------------------------- |
|
45 // |
|
46 CpPhoneNotes::~CpPhoneNotes( ) |
|
47 { |
|
48 |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // CpPhoneNotes::showGlobalProgressNote |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 void CpPhoneNotes::showGlobalProgressNote( |
|
56 int & noteId, |
|
57 const QString & text ) |
|
58 { |
|
59 SMC_MOCK_METHOD2( void, int &, noteId, |
|
60 const QString &, text ) |
|
61 } |
|
62 |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CpPhoneNotes::showGlobalNote |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 void CpPhoneNotes::showGlobalNote( |
|
69 int & noteId, |
|
70 const QString & text, |
|
71 HbMessageBox::MessageBoxType noteType ) |
|
72 { |
|
73 SMC_MOCK_METHOD3( void, int &, noteId, |
|
74 const QString &, text, |
|
75 HbMessageBox::MessageBoxType, noteType ) |
|
76 } |
|
77 |
|
78 |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CpPhoneNotes::showGlobalErrorNote |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void CpPhoneNotes::showGlobalErrorNote( |
|
84 int & noteId, |
|
85 int errorCode ) |
|
86 { |
|
87 SMC_MOCK_METHOD2( void, int &, noteId, |
|
88 int, errorCode ) |
|
89 } |
|
90 |
|
91 |
|
92 // ----------------------------------------------------------------------------- |
|
93 // CpPhoneNotes::showCallDivertDetails |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 void CpPhoneNotes::showCallDivertDetails( |
|
97 const PSCallDivertingStatus & divertStatus ) |
|
98 { |
|
99 SMC_MOCK_METHOD1( void, const PSCallDivertingStatus &, divertStatus ) |
|
100 } |
|
101 |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CpPhoneNotes::showPasswordQueryDialog |
|
105 // ----------------------------------------------------------------------------- |
|
106 // |
|
107 void CpPhoneNotes::showPasswordQueryDialog( |
|
108 const QString & title, |
|
109 const QValidator & validator, |
|
110 int maxPasswordLength ) |
|
111 { |
|
112 SMC_MOCK_METHOD3( void, const QString &, title, |
|
113 const QValidator &, validator, |
|
114 int, maxPasswordLength ) |
|
115 } |
|
116 |
|
117 |
|
118 // ----------------------------------------------------------------------------- |
|
119 // CpPhoneNotes::cancelNote |
|
120 // ----------------------------------------------------------------------------- |
|
121 // |
|
122 void CpPhoneNotes::cancelNote( |
|
123 int noteId ) |
|
124 { |
|
125 SMC_MOCK_METHOD1( void, int, noteId ) |
|
126 } |
|
127 |
|
128 |
|
129 // ----------------------------------------------------------------------------- |
|
130 // CpPhoneNotes::noteShowing |
|
131 // ----------------------------------------------------------------------------- |
|
132 // |
|
133 bool CpPhoneNotes::noteShowing( ) |
|
134 { |
|
135 SMC_MOCK_METHOD0( bool ) |
|
136 } |
|
137 |
|
138 |
|
139 // ----------------------------------------------------------------------------- |
|
140 // CpPhoneNotes::finishedPasswordQueryDialog |
|
141 // ----------------------------------------------------------------------------- |
|
142 // |
|
143 void CpPhoneNotes::finishedPasswordQueryDialog( |
|
144 HbAction * /*action*/ ) |
|
145 { |
|
146 //SMC_MOCK_METHOD1( void, HbAction *, action ) |
|
147 } |
|
148 |
|
149 // ----------------------------------------------------------------------------- |
|
150 // CpPhoneNotes::showNotificationDialog |
|
151 // ----------------------------------------------------------------------------- |
|
152 // |
|
153 void CpPhoneNotes::showNotificationDialog( |
|
154 const QString & text ) |
|
155 { |
|
156 SMC_MOCK_METHOD1( void, const QString &, text ) |
|
157 } |
|
158 |
|
159 // ----------------------------------------------------------------------------- |
|
160 // CpPhoneNotes::activeNoteAboutToClose |
|
161 // ----------------------------------------------------------------------------- |
|
162 // |
|
163 void CpPhoneNotes::activeNoteAboutToClose() |
|
164 { |
|
165 SMC_MOCK_METHOD0( void ) |
|
166 } |
|
167 |
|
168 |
|
169 // ----------------------------------------------------------------------------- |
|
170 // CpPhoneNotes::handleProgressNoteCanceled |
|
171 // ----------------------------------------------------------------------------- |
|
172 // |
|
173 void CpPhoneNotes::handleProgressNoteCanceled() |
|
174 { |
|
175 SMC_MOCK_METHOD0( void ) |
|
176 } |
|
177 |
|
178 |
|
179 // ----------------------------------------------------------------------------- |
|
180 // CpPhoneNotes::passwordTextChanged |
|
181 // ----------------------------------------------------------------------------- |
|
182 // |
|
183 |
|
184 |
|
185 void CpPhoneNotes::passwordTextChanged() |
|
186 { |
|
187 SMC_MOCK_METHOD0( void ) |
|
188 } |
|
189 |
|
190 |
|