|
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 PSUIWAITINGNOTEHANDLER_H_ |
|
19 #define PSUIWAITINGNOTEHANDLER_H_ |
|
20 |
|
21 #include <QObject> |
|
22 #include <QList> |
|
23 #include <psetcallwaitingwrapper.h> |
|
24 |
|
25 class PSetCallWaitingWrapper; |
|
26 class PSCallWaitingCommand; |
|
27 class PsUiSettingsWrapper; |
|
28 |
|
29 #ifdef BUILD_PSUINOTES |
|
30 #define PSUINOTES_EXPORT Q_DECL_EXPORT |
|
31 #else |
|
32 #define PSUINOTES_EXPORT Q_DECL_IMPORT |
|
33 #endif |
|
34 |
|
35 class PSUINOTES_EXPORT PsUiWaitingNoteHandler : public QObject |
|
36 { |
|
37 Q_OBJECT |
|
38 |
|
39 public: |
|
40 PsUiWaitingNoteHandler(PSetCallWaitingWrapper& callWaitingWrapper); |
|
41 ~PsUiWaitingNoteHandler(); |
|
42 |
|
43 public slots: // Slots: |
|
44 |
|
45 /** |
|
46 * Shows notes for call waiting status interrogation |
|
47 * @param status Status of the call waiting |
|
48 * @param basicServiceGroupIds |
|
49 */ |
|
50 void handleCallWaitingGetStatus( |
|
51 PSetCallWaitingWrapper::PsCallWaitingStatus status, |
|
52 const QList<unsigned char> &basicServiceGroupIds); |
|
53 |
|
54 /** |
|
55 * Shows notes for call waiting status change request |
|
56 * @param setting Type of the call waiting request |
|
57 * @param result Result code of the request |
|
58 */ |
|
59 void handleCallWaitingChanged( |
|
60 PSetCallWaitingWrapper::PsCallWaitingCommand setting, |
|
61 int result ); |
|
62 |
|
63 /** |
|
64 * Handles call waiting requesting notes |
|
65 * @param ongoing If true, there is an active request |
|
66 * @param interrupted If true, means that requesting note |
|
67 * should be cancelled |
|
68 */ |
|
69 void handleCallWaitingRequesting( bool ongoing, bool interrupted ); |
|
70 |
|
71 /** |
|
72 * Handles call waiting error notes |
|
73 * @param error Error value |
|
74 */ |
|
75 void handleCallWaitingError( int error ); |
|
76 |
|
77 private: // data |
|
78 |
|
79 // For diverting signals |
|
80 PSetCallWaitingWrapper& m_callWaitingWrapper; |
|
81 |
|
82 // Own. |
|
83 PsUiSettingsWrapper* m_settingsWrapper; |
|
84 |
|
85 // Current active note id |
|
86 int m_activeNoteId; |
|
87 |
|
88 // Current progress note id |
|
89 int m_activeProgressNoteId; |
|
90 |
|
91 }; |
|
92 |
|
93 #endif /* PSUIWAITINGNOTEHANDLER_H_ */ |