|
1 /* |
|
2 * Copyright (c) 2008 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 |
|
19 #ifndef __MCSREQUESTNOTIFICATION_H_ |
|
20 #define __MCSREQUESTNOTIFICATION_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "mcsmenunotifier.h" |
|
24 |
|
25 //class MMCSCallback; |
|
26 |
|
27 /** |
|
28 * This class implements MCS SAPI core logic for Request Notification async requests. |
|
29 * |
|
30 */ |
|
31 class CMCSReqNotification: public CActive |
|
32 { |
|
33 public: |
|
34 |
|
35 /** |
|
36 * Two-phased constructor. |
|
37 * @param aMCS MenuContentService object. |
|
38 * @param aCallback Callback Object for Change notification. |
|
39 * @return CMCSRunningApps reference. |
|
40 */ |
|
41 static CMCSReqNotification* NewL(RMenu& aMCS); |
|
42 |
|
43 /** |
|
44 * Destructor. |
|
45 */ |
|
46 virtual ~CMCSReqNotification(); |
|
47 |
|
48 TInt GetStatus(); |
|
49 |
|
50 private: |
|
51 |
|
52 /** |
|
53 * Default constructor. |
|
54 */ |
|
55 CMCSReqNotification(); |
|
56 |
|
57 /** |
|
58 * ConstructL |
|
59 * @param aMCS MenuContentService object. |
|
60 */ |
|
61 void ConstructL(RMenu& aMCS); |
|
62 |
|
63 /** |
|
64 * Inherited from CActive class |
|
65 */ |
|
66 virtual void DoCancel(); |
|
67 |
|
68 /** |
|
69 * Inherited from CActive class |
|
70 */ |
|
71 virtual void RunL(); |
|
72 |
|
73 public : |
|
74 |
|
75 /** |
|
76 * Starts the notification of events. |
|
77 * @param aFolderId folder id to observe the events. |
|
78 * @param aEvent events to notificy. |
|
79 */ |
|
80 void StartNotificationL(TInt aFolderId, TInt aEvent ); |
|
81 |
|
82 |
|
83 private: |
|
84 |
|
85 RMenuNotifier iNotifier; |
|
86 /** Folder it to watch owned. */ |
|
87 |
|
88 /** iMCS reference. Not owned. */ |
|
89 RMenu iMCS; |
|
90 |
|
91 TInt iStat; |
|
92 }; |
|
93 |
|
94 #endif /*__MCSREQUESTNOTIFICATION_H_*/ |