|
1 /* |
|
2 * Copyright (c) 2006-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: Channel property observer. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MSENSRVPROPERTYHANDLEROBSERVER_H |
|
20 #define MSENSRVPROPERTYHANDLEROBSERVER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 #include "sensrvproperty.h" |
|
24 #include "sensrvtypes.h" |
|
25 |
|
26 |
|
27 /** |
|
28 * Channel property observer. Callback interface to indicate when a property has been changed. |
|
29 * |
|
30 * @lib SensrvClient.lib |
|
31 * @since S60 5.0 |
|
32 */ |
|
33 |
|
34 class MSensrvPropertyHandlerObserver |
|
35 { |
|
36 public: |
|
37 /** |
|
38 * Notification about the changed value of a property. |
|
39 * |
|
40 * @since S60 5.0 |
|
41 * @param[in] aChangedProperty Changed property. |
|
42 */ |
|
43 virtual void PropertyChanged( const TSensrvProperty& aChangedProperty ) = 0; |
|
44 |
|
45 /** |
|
46 * Property listening failed. |
|
47 * If error was fatal, channel has also been closed and sensor server session terminated. |
|
48 * If error was minor, some property changes have potentially been missed. |
|
49 * |
|
50 * @since S60 5.0 |
|
51 * @param[in] aError Error code. |
|
52 */ |
|
53 virtual void PropertyError( TSensrvErrorSeverity aError ) = 0; |
|
54 |
|
55 /** |
|
56 * Reopen channel. |
|
57 * Data listening and condition listening need restarting |
|
58 * |
|
59 * @since S60 5.0 |
|
60 * @param aMaxBufferCount New maximum client buffer count |
|
61 * @return void |
|
62 */ |
|
63 virtual void ReopenChannelForPropertyListeningL() = 0; |
|
64 |
|
65 /** |
|
66 * Notification about change in property setting avaibility. |
|
67 * |
|
68 * @since S60 5.0 |
|
69 * @param[in] aIndication holds the new indicator value. |
|
70 */ |
|
71 virtual void SetPropertySuccessIndicationChanged( |
|
72 TSetPropertySuccessIndicator aIndication ) = 0; |
|
73 |
|
74 }; |
|
75 |
|
76 #endif //MSENSRVPROPERTYHANDLEROBSERVER_H |