|
1 /* |
|
2 * Copyright (c) 2007 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: Interface for CenRep and PubSub observers |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef __LOCKAPPOBSERVERINTERFACE_H__ |
|
20 #define __LOCKAPPOBSERVERINTERFACE_H__ |
|
21 |
|
22 // INCLUDES |
|
23 #include "lockapp.hrh" |
|
24 |
|
25 /** |
|
26 * MLockAppObserverInterface class offers a CenRep/PubSub observer interface. |
|
27 * Observer classes should implement this interface to get callback notifications |
|
28 * on value changes. |
|
29 * |
|
30 * @lib lockapp |
|
31 * @since 5.0 |
|
32 * @author Tamas Koteles |
|
33 */ |
|
34 class MLockAppObserverInterface |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 * Handle Central Repository observer callback. |
|
40 * |
|
41 * @param aCenRepUid Central Repository category id |
|
42 * @param aKeyId Central Repository key id |
|
43 * @param aValue Central Repository key's new value |
|
44 */ |
|
45 virtual void HandleCenRepNotify( TUid aCenRepUid, TUint32 aKeyId, TInt aValue ) = 0; |
|
46 |
|
47 /** |
|
48 * Handle Publish & Subscribe observer callback. |
|
49 * |
|
50 * @param aPubSubUid Publish & Subscribe category id |
|
51 * @param aKeyId Publish & Subscribe key id |
|
52 * @param aValue Publish & Subscribe key's new value |
|
53 */ |
|
54 virtual void HandlePubSubNotify( TUid aPubSubUid, TUint aKeyId, TInt aValue ) = 0; |
|
55 |
|
56 }; |
|
57 |
|
58 #endif // __LOCKAPPOBSERVERINTERFACE_H__ |
|
59 // End of File |