|
1 /* |
|
2 * Copyright (c) 2002-2005 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 #include "stub.h" |
|
20 #include "cprofilechangenotifyhandler.h" |
|
21 #include "stubdataholder.h" |
|
22 #include "profileengine.h" |
|
23 #include "networkhandling.h" |
|
24 |
|
25 |
|
26 EXPORT_C RSSSettings::RSSSettings() |
|
27 { |
|
28 } |
|
29 |
|
30 |
|
31 EXPORT_C TInt RSSSettings::Open() |
|
32 { |
|
33 TRAPD( err, CStubDataHolder::InstanceL() ); |
|
34 return err; |
|
35 } |
|
36 |
|
37 |
|
38 TInt RSSSettings::Get( TSSSettingsSetting aSetting, TInt& aValue ) |
|
39 { |
|
40 TRAPD( err, aValue = CStubDataHolder::Instance()->GetSSSettingsValueL( aSetting ) ); |
|
41 return err; |
|
42 } |
|
43 |
|
44 |
|
45 TBool RSSSettings::IsValueValidCugIndex( const TInt& /*aValue*/ ) const |
|
46 { |
|
47 TRAPD( err, CStubDataHolder::Instance()->GetSSSettingsValueL( ESSSettingsCug ) ); |
|
48 return ( err == KErrNone ); |
|
49 } |
|
50 |
|
51 |
|
52 EXPORT_C MProfileEngine* CreateProfileEngineL(void) |
|
53 { |
|
54 CStubDataHolder::InstanceL(); |
|
55 return CProfileEngine::NewL(); |
|
56 } |
|
57 |
|
58 |
|
59 EXPORT_C void RSSSettings::CancelAll(MSSSettingsObserver &aObserver) |
|
60 { |
|
61 CStubDataHolder::Instance()->RemoveSSSettingsObserver( aObserver ); |
|
62 } |
|
63 |
|
64 |
|
65 EXPORT_C void RSSSettings::Close() |
|
66 { |
|
67 } |
|
68 |
|
69 |
|
70 EXPORT_C TInt RSSSettings::Register(TSSSettingsSetting /*aSetting*/, MSSSettingsObserver& aObserver) |
|
71 { |
|
72 TRAPD( err, CStubDataHolder::Instance()->AddSSSettingsObserverL( aObserver ) ); |
|
73 return err; |
|
74 } |
|
75 |
|
76 |
|
77 EXPORT_C CNWSession* CreateL(class MNWMessageObserver& aObserver, struct TNWInfo& aInfo) |
|
78 { |
|
79 CStubDataHolder::InstanceL(); |
|
80 return new( ELeave )CNWSessionStub( aObserver, aInfo ); |
|
81 }; |
|
82 |
|
83 |
|
84 GLDEF_C TInt E32Dll(TInt) |
|
85 { |
|
86 return KErrNone; |
|
87 } |
|
88 // End of File. |