|
1 /* |
|
2 * Copyright (c) 2008-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: PS' integer property observer's callback interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef M_ACCSRVPSINTPROPERTYOBSERVER_H |
|
22 #define M_ACCSRVPSINTPROPERTYOBSERVER_H |
|
23 |
|
24 |
|
25 #include <e32def.h> |
|
26 |
|
27 |
|
28 /** |
|
29 * Publish and Subscribe integer property observer's callback interface. |
|
30 * |
|
31 * This callback interface has to be implemented by observer class. |
|
32 * @code |
|
33 * ?good_class_usage_example(s) |
|
34 * @endcode |
|
35 * |
|
36 * @lib AccServer.exe |
|
37 * @since S60 5.1 |
|
38 */ |
|
39 NONSHARABLE_CLASS( MAccSrvPSIntPropertyObserver ) |
|
40 { |
|
41 |
|
42 public: |
|
43 |
|
44 /** |
|
45 * Function is called by property watcher every time property's value changes. |
|
46 * |
|
47 * @since S60 5.1 |
|
48 * @param aCategory The UID that identifies the property category. |
|
49 * @param aKey The property sub-key, i.e. the key that identifies the specific property within the category. |
|
50 * @param aNewStatus New property status value. |
|
51 * @return none |
|
52 */ |
|
53 virtual void PSPropertyChanged( |
|
54 TUid aCategory, |
|
55 TInt aKey, |
|
56 TInt aNewStatus ) = 0; |
|
57 |
|
58 /** |
|
59 * Function is called by property watcher when property is not found anymore. |
|
60 * |
|
61 * @since S60 5.1 |
|
62 * @param aCategory The UID that identifies the property category. |
|
63 * @param aKey The property sub-key, i.e. the key that identifies the specific property within the category. |
|
64 * @return none |
|
65 */ |
|
66 virtual void PSPropertyDeleted( |
|
67 TUid aCategory, |
|
68 TInt aKey ) = 0; |
|
69 }; |
|
70 |
|
71 |
|
72 #endif // M_ACCSRVPSINTPROPERTYOBSERVER_H |