|
1 /* |
|
2 * Copyright (c) 2009 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: Delegate notifications about active settings modifications |
|
15 * to the observer. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef CPROENGACTIVESETTINGSEVENTDELEGATE_H |
|
22 #define CPROENGACTIVESETTINGSEVENTDELEGATE_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "CProEngCenRepObserverBase.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MProEngActiveSettingsObserver; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * This class delegates notifications about active profile settings modifications to the observer |
|
34 * implemented by the client of Profiles Engine Wrapper API. This is a helper |
|
35 * class for CProEngNotifyHandlerImpl. |
|
36 * |
|
37 * @lib ProfileEngine.lib |
|
38 * @since 10.1 |
|
39 */ |
|
40 NONSHARABLE_CLASS( CProEngActiveSettingsEventDelegate ) |
|
41 : public CProEngCenRepObserverBase |
|
42 { |
|
43 public: // constructor and destructor |
|
44 |
|
45 static CProEngActiveSettingsEventDelegate* NewL( |
|
46 MProEngActiveSettingsObserver& aObserver ); |
|
47 |
|
48 virtual ~CProEngActiveSettingsEventDelegate() {}; |
|
49 |
|
50 public: // Functions from base classes |
|
51 |
|
52 /** |
|
53 * From CProEngObserverBase. |
|
54 */ |
|
55 void NotifyObserverL(); |
|
56 |
|
57 /** |
|
58 * From CProEngObserverBase. |
|
59 */ |
|
60 void NotifyError( TInt aError ); |
|
61 |
|
62 |
|
63 public: // New functions |
|
64 |
|
65 private: // constructor |
|
66 |
|
67 CProEngActiveSettingsEventDelegate( TUint32 aPartialCenRepKey, |
|
68 TUint32 aKeyMask, |
|
69 MProEngActiveSettingsObserver& aObserver ); |
|
70 |
|
71 private: // Data: |
|
72 |
|
73 // The client implemented observer for profile modification events: |
|
74 MProEngActiveSettingsObserver& iObserver; |
|
75 |
|
76 }; |
|
77 |
|
78 #endif // CPROENGACTIVESETTINGSEVENTDELEGATE_H |
|
79 |
|
80 // End of File |
|
81 |