|
1 /* |
|
2 * Copyright (c) 2006 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: Shows global confirmation query and |
|
15 * follows user answering |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CCAGLOBALNOTEHANDLER_H |
|
22 #define CCAGLOBALNOTEHANDLER_H |
|
23 |
|
24 // INCLUDES |
|
25 #include <e32base.h> |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CAknGlobalConfirmationQuery; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * class for showing global confirmation query |
|
34 * @lib chat.app |
|
35 * @since 2.6 |
|
36 */ |
|
37 class CCAGlobalNoteHandler : public CActive |
|
38 { |
|
39 |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 */ |
|
45 static CCAGlobalNoteHandler* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor. |
|
49 */ |
|
50 virtual ~CCAGlobalNoteHandler(); |
|
51 |
|
52 public: // New functions |
|
53 |
|
54 /** |
|
55 * Shows global note |
|
56 * @param aResourceId resource id of the note |
|
57 * @return user selection |
|
58 */ |
|
59 TInt ShowNoteL( TInt aResourceId ); |
|
60 |
|
61 /** |
|
62 * Stops global note showing, |
|
63 */ |
|
64 void CancelNoteShowing(); |
|
65 |
|
66 protected: // From CActive |
|
67 |
|
68 /** |
|
69 * @see CActive. |
|
70 */ |
|
71 void DoCancel(); |
|
72 |
|
73 /** |
|
74 * @see CActive. |
|
75 */ |
|
76 void RunL(); |
|
77 |
|
78 /** |
|
79 * @see CActive. |
|
80 */ |
|
81 TInt RunError( TInt aError ); |
|
82 |
|
83 private: |
|
84 |
|
85 /** |
|
86 * C++ default constructor. |
|
87 */ |
|
88 CCAGlobalNoteHandler(); |
|
89 |
|
90 /** |
|
91 * By default Symbian 2nd phase constructor is private. |
|
92 */ |
|
93 void ConstructL(); |
|
94 |
|
95 private: // Data |
|
96 |
|
97 /// Global confirmation query, owned |
|
98 CAknGlobalConfirmationQuery* iGlobalConfirmationQuery; |
|
99 |
|
100 // activeschedulerwait |
|
101 CActiveSchedulerWait iWait; |
|
102 |
|
103 // the answer |
|
104 TInt iAnswer; |
|
105 |
|
106 }; |
|
107 |
|
108 #endif // CCAGLOBALNOTEHANDLER_H |
|
109 |
|
110 // End of File |
|
111 |