|
1 /* |
|
2 * Copyright (c) 2002 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: Intended to be implemented by the observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __MPENGGLOBALEVENTOBSERVER_H__ |
|
21 #define __MPENGGLOBALEVENTOBSERVER_H__ |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <e32def.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 class CPEngSessionSlotId; |
|
29 class CPEngSessionSlotEvent; |
|
30 class CPEngSessionSlotState; |
|
31 |
|
32 /** |
|
33 * Global event listener of the storage Server |
|
34 * This class is meant to be implemented by the listener |
|
35 * of the global events |
|
36 * |
|
37 * @lib PEngStoreMan2.dll |
|
38 * @since 3.0 |
|
39 */ |
|
40 class MPEngGlobalEventObserver |
|
41 { |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Handle new Global event of the presence server |
|
46 * Event can be one the basic three kinds |
|
47 * 1. Session Slot Created, also generated when new application |
|
48 * registers to the Session Slot |
|
49 * 2. Session slot deleted,also generated when any application |
|
50 * unregisters from the Session Slot |
|
51 * 3. Session Slot global event generated by the Presence Server |
|
52 * |
|
53 * @since 3.0 |
|
54 * @param aSessionEvent new global event |
|
55 */ |
|
56 virtual void HandleNewSessionSlotEventL( |
|
57 const CPEngSessionSlotEvent& aSessionEvent ) = 0; |
|
58 |
|
59 /** |
|
60 * Handle observer error |
|
61 * Error from the Handling of the New Session slot event, |
|
62 * or errors from the notify engine are reported through |
|
63 * this function |
|
64 * |
|
65 * @since 3.0 |
|
66 * @param aError code of the error |
|
67 */ |
|
68 virtual void HandleObserverError( TInt aError ) = 0; |
|
69 }; |
|
70 |
|
71 #endif // __MPENGGLOBALEVENTOBSERVER_H__ |
|
72 |
|
73 // End of File |