1 /* |
|
2 * Copyright (c) 2006-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 * Singleton class for implementing reconnect query. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef CPHONERECONNECTQUERY_H |
|
21 #define CPHONERECONNECTQUERY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <mcauireconnectqueryobserver.h> |
|
25 #include <coemain.h> |
|
26 #include "mphonetimer.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CPhoneTimer; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 class CPhoneReconnectQuery : public CCoeStatic, public MPhoneTimer, |
|
34 public MCaUiReconnectQueryObserver |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Returns an instance of this class. When called for the first |
|
40 * time, a new instance is created and returned. After that, |
|
41 * calling InstanceL returns the same instance that was created |
|
42 * earlier. |
|
43 * |
|
44 * @return A pointer to a CPhoneReconnectQuery object |
|
45 */ |
|
46 IMPORT_C static CPhoneReconnectQuery* InstanceL(); |
|
47 |
|
48 /** |
|
49 * Destructor. |
|
50 */ |
|
51 virtual ~CPhoneReconnectQuery(); |
|
52 |
|
53 /** |
|
54 * This function is called after on timeout. |
|
55 */ |
|
56 void HandleTimeOutL(); |
|
57 |
|
58 /** |
|
59 * Called when MCaUiReconnectQueryObserver has got a key press. |
|
60 * |
|
61 * @param aReconType The reconnect choice of the user. |
|
62 */ |
|
63 virtual void OptionSelected( MCaUiReconnectQueryObserver::TCaUiReconType aOption ); |
|
64 |
|
65 /** |
|
66 * Shows reconnect query. |
|
67 * External DLL is loaded and request is delegated to |
|
68 * the dll. |
|
69 * @param aShowVideo - ETrue to show video option, otherwise EFalse |
|
70 */ |
|
71 IMPORT_C void ShowReconnectQueryL( TBool aShowVideo ); |
|
72 |
|
73 /** |
|
74 * Cancels reconnect query timer. |
|
75 */ |
|
76 void CancelReconnectQueryTimer(); |
|
77 |
|
78 /** |
|
79 * Fetches the information is reconnect query displayed on the |
|
80 * screen or not. |
|
81 * @return ETrue if being displayed otherwise EFalse. |
|
82 */ |
|
83 TBool IsDisplayingQuery(); |
|
84 |
|
85 |
|
86 private: |
|
87 |
|
88 /** |
|
89 * Default constructor is private because we are using the |
|
90 * singleton design pattern. |
|
91 */ |
|
92 CPhoneReconnectQuery(); |
|
93 |
|
94 /** |
|
95 * Shows number entry and sets number entry CBAs. |
|
96 */ |
|
97 void ShowNumberEntryL(); |
|
98 |
|
99 |
|
100 private: |
|
101 |
|
102 /** |
|
103 * This timer delays reconnect query to give time to information note |
|
104 */ |
|
105 CPhoneTimer* iReconQueryTimer; |
|
106 |
|
107 /** |
|
108 * If video call option is needed in reconnect query this is true |
|
109 * otherwise false. |
|
110 */ |
|
111 TBool iIncludeVideo; |
|
112 |
|
113 /** |
|
114 * ETrue if reconnect query is currently displayed on the screen. |
|
115 * EFalse if not. |
|
116 */ |
|
117 TBool iDisplayingQuery; |
|
118 |
|
119 }; |
|
120 |
|
121 #endif // CPHONERECONNECTQUERY_H |
|
122 |
|
123 // End of File |
|