|
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 __MENUSRVNOTIFIER_H__ |
|
19 #define __MENUSRVNOTIFIER_H__ |
|
20 |
|
21 // INCLUDES |
|
22 |
|
23 #include "menusrvobject.h" |
|
24 |
|
25 // CLASS DECLARATION |
|
26 |
|
27 /** |
|
28 * Server side notifier object. |
|
29 */ |
|
30 NONSHARABLE_CLASS( CMenuSrvNotifier ): public CMenuSrvObject |
|
31 { |
|
32 |
|
33 public: // new methods |
|
34 |
|
35 /** |
|
36 * Notification requested. |
|
37 * @param aFolder Request notification for this folder (0==any). |
|
38 * @param aEvents Request notification for these events. |
|
39 * @param aMessage Message requesting the notification. |
|
40 */ |
|
41 void NotifyL( TInt aFolder, TInt aEvents, const RMessage2& aMessage ); |
|
42 |
|
43 /** |
|
44 * Handle engine events. Completes the message, if appropriate. |
|
45 * @param aFolder Event occurred in this folder (0==unspecified, match all). |
|
46 * @param aEvents Engine events. |
|
47 */ |
|
48 void HandleEvents( TInt aFolder, TInt aEvents ); |
|
49 |
|
50 private: // data |
|
51 |
|
52 TInt iFolder; ///< Folder. |
|
53 TInt iEvents; ///< Event mask. |
|
54 |
|
55 }; |
|
56 |
|
57 #endif // __MENUSRVNOTIFIER_H__ |
|
58 |
|
59 // End of File |