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