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::showBasicServiceList |
|
94 // ----------------------------------------------------------------------------- |
|
95 // |
|
96 void CpPhoneNotes::showBasicServiceList( |
|
97 const QString & title, |
|
98 const QList<unsigned char> & basicServiceGroupIds ) |
|
99 { |
|
100 SMC_MOCK_METHOD2( void, const QString &, title, |
|
101 const QList<unsigned char> &, basicServiceGroupIds ) |
|
102 } |
|
103 |
|
104 |
|
105 // ----------------------------------------------------------------------------- |
|
106 // CpPhoneNotes::showCallDivertDetails |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 void CpPhoneNotes::showCallDivertDetails( |
|
110 const PSCallDivertingStatus & divertStatus ) |
|
111 { |
|
112 SMC_MOCK_METHOD1( void, const PSCallDivertingStatus &, divertStatus ) |
|
113 } |
|
114 |
|
115 |
|
116 // ----------------------------------------------------------------------------- |
|
117 // CpPhoneNotes::showPasswordQueryDialog |
|
118 // ----------------------------------------------------------------------------- |
|
119 // |
|
120 void CpPhoneNotes::showPasswordQueryDialog( |
|
121 const QString & title, |
|
122 const QValidator & validator, |
|
123 int maxPasswordLength ) |
|
124 { |
|
125 SMC_MOCK_METHOD3( void, const QString &, title, |
|
126 const QValidator &, validator, |
|
127 int, maxPasswordLength ) |
|
128 } |
|
129 |
|
130 |
|
131 // ----------------------------------------------------------------------------- |
|
132 // CpPhoneNotes::cancelNote |
|
133 // ----------------------------------------------------------------------------- |
|
134 // |
|
135 void CpPhoneNotes::cancelNote( |
|
136 int noteId ) |
|
137 { |
|
138 SMC_MOCK_METHOD1( void, int, noteId ) |
|
139 } |
|
140 |
|
141 |
|
142 // ----------------------------------------------------------------------------- |
|
143 // CpPhoneNotes::noteShowing |
|
144 // ----------------------------------------------------------------------------- |
|
145 // |
|
146 bool CpPhoneNotes::noteShowing( ) |
|
147 { |
|
148 SMC_MOCK_METHOD0( bool ) |
|
149 } |
|
150 |
|
151 |
|
152 // ----------------------------------------------------------------------------- |
|
153 // CpPhoneNotes::finishedPasswordQueryDialog |
|
154 // ----------------------------------------------------------------------------- |
|
155 // |
|
156 void CpPhoneNotes::finishedPasswordQueryDialog( |
|
157 HbAction * action ) |
|
158 { |
|
159 //SMC_MOCK_METHOD1( void, HbAction *, action ) |
|
160 } |
|
161 |
|
162 |
|
163 // ----------------------------------------------------------------------------- |
|
164 // CpPhoneNotes::activeNoteAboutToClose |
|
165 // ----------------------------------------------------------------------------- |
|
166 // |
|
167 void CpPhoneNotes::activeNoteAboutToClose() |
|
168 { |
|
169 SMC_MOCK_METHOD0( void ) |
|
170 } |
|
171 |
|
172 |
|
173 // ----------------------------------------------------------------------------- |
|
174 // CpPhoneNotes::handleProgressNoteCanceled |
|
175 // ----------------------------------------------------------------------------- |
|
176 // |
|
177 void CpPhoneNotes::handleProgressNoteCanceled() |
|
178 { |
|
179 SMC_MOCK_METHOD0( void ) |
|
180 } |
|
181 |
|
182 |
|
183 // ----------------------------------------------------------------------------- |
|
184 // CpPhoneNotes::passwordTextChanged |
|
185 // ----------------------------------------------------------------------------- |
|
186 // |
|
187 |
|
188 |
|
189 void CpPhoneNotes::passwordTextChanged() |
|
190 { |
|
191 SMC_MOCK_METHOD0( void ) |
|
192 } |
|
193 |
|
194 |
|