33
|
1 |
/*
|
|
2 |
* Copyright (c) 2010 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: Provides SAT popups info and progress notes
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
#ifndef SATAPPPOPUPPROVIDER_H
|
|
19 |
#define SATAPPPOPUPPROVIDER_H
|
|
20 |
|
|
21 |
// includes
|
|
22 |
#include <QObject>
|
|
23 |
|
|
24 |
// forward declarations
|
|
25 |
class HbMessageBox;
|
|
26 |
class HbDialog;
|
|
27 |
class HbDeviceMessageBox;
|
|
28 |
class SatAppAction;
|
|
29 |
|
|
30 |
class SatAppPopupProvider : public QObject
|
|
31 |
{
|
|
32 |
Q_OBJECT
|
|
33 |
|
|
34 |
public:
|
|
35 |
SatAppPopupProvider(QObject *parent = 0);
|
|
36 |
virtual ~SatAppPopupProvider();
|
|
37 |
|
|
38 |
public slots:
|
|
39 |
|
|
40 |
/** displays a text note on screen */
|
|
41 |
void displayText(SatAppAction &action);
|
|
42 |
|
|
43 |
/** shows a simple notification about an ongoing operation */
|
|
44 |
void notification(SatAppAction &action);
|
|
45 |
|
|
46 |
/** requests any ongoing wait note to be dismissed */
|
|
47 |
void stopShowWaitNote();
|
|
48 |
|
|
49 |
/** show a error note for send ss command */
|
|
50 |
void showSsErrorNote();
|
|
51 |
|
|
52 |
/** requests any ongoing wait note and display text to be dismissed */
|
|
53 |
void clearScreen();
|
|
54 |
|
|
55 |
/** reset some data members */
|
|
56 |
void resetState();
|
|
57 |
|
|
58 |
private:
|
|
59 |
QString alphaId(SatAppAction &action);
|
|
60 |
void showBIPWaitNote(SatAppAction &action);
|
|
61 |
void showCloseChannelWaitNote(SatAppAction &action);
|
|
62 |
void showMoSmControlNote(SatAppAction &action);
|
|
63 |
void showSatInfoNote(SatAppAction &action);
|
|
64 |
void showSmsWaitNote(SatAppAction &action);
|
|
65 |
void showCallControlNote(SatAppAction &action);
|
|
66 |
void showDtmfWaitNote(SatAppAction &action);
|
|
67 |
void showSsWaitNote(SatAppAction &action);
|
|
68 |
|
|
69 |
private:
|
|
70 |
HbMessageBox *mDisplayText;
|
|
71 |
HbDialog *mWaitDialog;
|
|
72 |
HbDeviceMessageBox *mWaitDeviceDialog;
|
|
73 |
SatAppAction *mAction;
|
|
74 |
|
|
75 |
// for unit testing
|
|
76 |
friend class PopupProviderTest;
|
|
77 |
};
|
|
78 |
|
|
79 |
#endif /* SATAPPPOPUPPROVIDER_H */
|