|
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 user confim notes |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SATAPPCONFIRMPROVIDER_H |
|
19 #define SATAPPCONFIRMPROVIDER_H |
|
20 |
|
21 // includes |
|
22 #include <QObject> |
|
23 |
|
24 // forward declarations |
|
25 class HbMessageBox; |
|
26 class SatAppAction; |
|
27 |
|
28 class SatAppConfirmProvider : public QObject |
|
29 { |
|
30 Q_OBJECT |
|
31 |
|
32 public: |
|
33 /** Constructor */ |
|
34 SatAppConfirmProvider(QObject *parent = 0); |
|
35 |
|
36 /** Destructor */ |
|
37 virtual ~SatAppConfirmProvider(); |
|
38 |
|
39 public slots: |
|
40 |
|
41 /** |
|
42 * General confirmation request |
|
43 * @param userAccepted Indicates whether the command was accepted. |
|
44 */ |
|
45 void confirmCommand(SatAppAction &action); |
|
46 |
|
47 /** clear the current dialog in screen */ |
|
48 void clearScreen(); |
|
49 |
|
50 /** reset some data members */ |
|
51 void resetState(); |
|
52 |
|
53 private: |
|
54 |
|
55 /** Shows the confirm note about Open Channel */ |
|
56 void showOpenChannelConfirm(SatAppAction &action); |
|
57 |
|
58 /** Shows the confirmation not about SetUpCall*/ |
|
59 void showSetUpCallConfirm(SatAppAction &action); |
|
60 |
|
61 private: |
|
62 |
|
63 /** Own.*/ |
|
64 HbMessageBox *mConfirmQuery; |
|
65 |
|
66 SatAppAction *mAction; |
|
67 |
|
68 /** For unit testing.*/ |
|
69 friend class ConfirmProviderTest; |
|
70 }; |
|
71 |
|
72 #endif /* SATAPPCONFIRMPROVIDER_H */ |