37
|
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 |
#ifndef UT_PSUI2NOTECONTROLLER_H
|
|
19 |
#define UT_PSUI2NOTECONTROLLER_H
|
|
20 |
|
|
21 |
#include <QtTest/QtTest>
|
|
22 |
#include <mockservice.h>
|
|
23 |
#include <etelmm.h>
|
|
24 |
#include <psetcalldivertingwrapper.h>
|
|
25 |
|
|
26 |
class CpPhoneNotes;
|
|
27 |
class HbDialog;
|
|
28 |
|
|
29 |
|
|
30 |
class UT_CpPhoneNotes : public QObject, MockService
|
|
31 |
{
|
|
32 |
Q_OBJECT
|
|
33 |
|
|
34 |
public:
|
|
35 |
UT_CpPhoneNotes();
|
|
36 |
~UT_CpPhoneNotes();
|
|
37 |
|
|
38 |
private: // From QObject
|
|
39 |
void timerEvent( QTimerEvent* event );
|
|
40 |
|
|
41 |
private: // Tools
|
|
42 |
HbDialog *visibleDialog();
|
|
43 |
void verifyGlobalNote( const QString& noteText );
|
|
44 |
void appendAllEtelServices(QList<PSCallDivertingStatus*>& list);
|
|
45 |
void appendService(
|
|
46 |
QList<PSCallDivertingStatus*>& list,
|
|
47 |
RMobilePhone::TMobileService service);
|
|
48 |
|
|
49 |
private slots:
|
|
50 |
|
|
51 |
void init();
|
|
52 |
void cleanup();
|
|
53 |
|
|
54 |
void t_memleak();
|
|
55 |
|
|
56 |
void t_showProgressNote();
|
|
57 |
void t_showGlobalProgressNote();
|
|
58 |
void t_showGlobalNote();
|
|
59 |
void t_showGlobalErrorNote();
|
|
60 |
void t_showBasicServiceList();
|
|
61 |
void t_showCallDivertDetails();
|
|
62 |
void t_showPasswordQueryDialog();
|
|
63 |
void t_cancelNote();
|
|
64 |
|
|
65 |
private:
|
|
66 |
int m_noteid1;
|
|
67 |
int m_noteid2;
|
|
68 |
int m_noteid3;
|
|
69 |
int timerid;
|
|
70 |
QString wantedNoteText;
|
|
71 |
|
|
72 |
};
|
|
73 |
|
|
74 |
#endif // UT_PSUI2NOTECONTROLLER_H
|