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: Implementation of CProEngMasterSettingsEventDelegate |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "CProEngMasterSettingsEventDelegate.h" |
|
22 #include <MProEngMasterSettingsObserver.h> |
|
23 |
|
24 namespace |
|
25 { |
|
26 // CONSTANTS |
|
27 const TInt KProEngMasterSettingsPartialKey( 0x80000200 ); |
|
28 const TUint32 KProEngMasterSettingsMask( 0xFFFFFF00 ); |
|
29 } |
|
30 |
|
31 // ============================ MEMBER FUNCTIONS =============================== |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CProEngMasterSettingsEventDelegate::CProEngMasterSettingsEventDelegate |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CProEngMasterSettingsEventDelegate::CProEngMasterSettingsEventDelegate( |
|
38 TUint32 aPartialCenRepKey, |
|
39 TUint32 aKeyMask, |
|
40 MProEngMasterSettingsObserver& aObserver ) |
|
41 : CProEngCenRepObserverBase( aPartialCenRepKey, aKeyMask ), |
|
42 iObserver( aObserver ) |
|
43 { |
|
44 } |
|
45 |
|
46 // ----------------------------------------------------------------------------- |
|
47 // CProEngMasterSettingsEventDelegate::NewL |
|
48 // ----------------------------------------------------------------------------- |
|
49 // |
|
50 CProEngMasterSettingsEventDelegate* CProEngMasterSettingsEventDelegate::NewL( |
|
51 MProEngMasterSettingsObserver& aObserver ) |
|
52 { |
|
53 CProEngMasterSettingsEventDelegate* self = new ( ELeave ) |
|
54 CProEngMasterSettingsEventDelegate( KProEngMasterSettingsPartialKey, |
|
55 KProEngMasterSettingsMask, aObserver ); |
|
56 |
|
57 CleanupStack::PushL( self ); |
|
58 self->ConstructL(); |
|
59 CleanupStack::Pop( self ); |
|
60 |
|
61 return self; |
|
62 } |
|
63 |
|
64 // ----------------------------------------------------------------------------- |
|
65 // CProEngMasterSettingsEventDelegate::NotifyObserverL |
|
66 // ----------------------------------------------------------------------------- |
|
67 // |
|
68 void CProEngMasterSettingsEventDelegate::NotifyObserverL() |
|
69 { |
|
70 iObserver.HandleMasterSettingsModifiedL( ); |
|
71 } |
|
72 |
|
73 // ----------------------------------------------------------------------------- |
|
74 // CProEngMasterSettingsEventDelegate::NotifyError |
|
75 // ----------------------------------------------------------------------------- |
|
76 // |
|
77 void CProEngMasterSettingsEventDelegate::NotifyError( TInt aError ) |
|
78 { |
|
79 iObserver.HandleMasterSettingsNotificationError( aError ); |
|
80 } |
|
81 |
|
82 // End of File |
|
83 |
|