|
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: SIMPLE Engine watcher callback observer |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_simplewatcherobserver_H |
|
22 #define M_simplewatcherobserver_H |
|
23 |
|
24 #include <e32std.h> |
|
25 |
|
26 // FORWARD DECLARATION |
|
27 class MSimpleConnection; |
|
28 class MSimplePresenceList; |
|
29 class MSimpleDocument; |
|
30 |
|
31 /** |
|
32 * MSimpleWatcher |
|
33 * |
|
34 * SIMPLE Engine watcher callback observer |
|
35 * |
|
36 * @lib simpleengine |
|
37 * @since S60 3.2 |
|
38 */ |
|
39 |
|
40 class MSimpleWatcherObserver |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 /** |
|
46 * Watcher request completion. |
|
47 * |
|
48 * @since S60 3.2 |
|
49 * @param aOpId operation id |
|
50 * @param aStatus completion status. |
|
51 */ |
|
52 virtual void WatcherReqCompleteL( TInt aOpId, TInt aStatus ) = 0; |
|
53 |
|
54 /** |
|
55 * Watcher notification callback. |
|
56 * |
|
57 * @since S60 3.2 |
|
58 * @param aDocument presence entity data |
|
59 */ |
|
60 virtual void WatcherNotificationL( MSimpleDocument& aDocument ) = 0; |
|
61 |
|
62 /** |
|
63 * Watcher presence list notification callback. |
|
64 * |
|
65 * @since S60 3.2 |
|
66 * @param aList presence list |
|
67 */ |
|
68 virtual void WatcherListNotificationL( MSimplePresenceList& aList ) = 0; |
|
69 |
|
70 /** |
|
71 * Watcher request terminated |
|
72 * |
|
73 * @since S60 3.2 |
|
74 * @param aOpId operation id |
|
75 * @param aReason termination reason. Refer to simpleerrors.h |
|
76 */ |
|
77 virtual void WatcherTerminatedL( |
|
78 TInt aOpId, TInt aReason ) = 0; |
|
79 }; |
|
80 |
|
81 #endif |
|
82 |
|
83 // End of File |