1 /* |
|
2 * Copyright (c) 2010 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 #ifndef NCMENGINE_INL |
|
23 #define NCMENGINE_INL |
|
24 |
|
25 //Assumption: NcmEngine & NcmServer are existed simultaneously!! |
|
26 #ifdef _DEBUG |
|
27 _LIT(KEnginePanic, "CNcmEnginePanic"); |
|
28 #endif |
|
29 /** |
|
30 * Set IapId and Dhcp Provision Result to SharedState manager. |
|
31 */ |
|
32 inline TInt CNcmEngine::SetStateToWatcher(TInt aType, TInt aValue) const |
|
33 { |
|
34 __ASSERT_DEBUG(iSharedStateManager, User::Panic(KEnginePanic, __LINE__)); |
|
35 return iSharedStateManager->SetStateValue(aType, aValue); |
|
36 } |
|
37 |
|
38 /** |
|
39 * Register the callback of Class Controller to do Dhcp Provision. |
|
40 */ |
|
41 inline TInt CNcmEngine::RegisterNotify(const RMessage2& aMsg) const |
|
42 { |
|
43 __ASSERT_DEBUG(iSharedStateManager, User::Panic(KEnginePanic, __LINE__)); |
|
44 return iSharedStateManager->RegisterNotify(aMsg); |
|
45 } |
|
46 |
|
47 /* |
|
48 * Deregister the callback. |
|
49 */ |
|
50 inline TInt CNcmEngine::DeRegisterNotify() const |
|
51 { |
|
52 __ASSERT_DEBUG(iSharedStateManager, User::Panic(KEnginePanic, __LINE__)); |
|
53 return iSharedStateManager->DeRegisterNotify(); |
|
54 } |
|
55 |
|
56 |
|
57 #endif //NCMENGINE_INL |
|