|
1 // Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // if_api.cpp |
|
15 // Just the stubs |
|
16 // |
|
17 // |
|
18 // |
|
19 |
|
20 /** |
|
21 @file |
|
22 */ |
|
23 |
|
24 #include "IF_DEF.H" |
|
25 #include <comms-infras/ss_flowbinders.h> |
|
26 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
27 #include <nifman_internal.h> |
|
28 #endif |
|
29 |
|
30 #ifdef _DEBUG |
|
31 // Panic category for "absolutely impossible!" vanilla ASSERT()-type panics from this module |
|
32 // (if it could happen through user error then you should give it an explicit, documented, category + code) |
|
33 _LIT(KSpecAssert_NifManf_p_stubs, "NifManf_p_stubs"); |
|
34 #endif |
|
35 |
|
36 EXPORT_C CNifIfBase* Nif::CreateInterfaceL(const TDesC& /*aName*/, MNifIfNotify* /*aNotify*/) |
|
37 { |
|
38 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 1)); |
|
39 User::Leave(KErrNotSupported); |
|
40 return NULL; |
|
41 } |
|
42 |
|
43 |
|
44 EXPORT_C CNifIfBase* Nif::CreateInterfaceL(const TDesC&) |
|
45 { |
|
46 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 2)); |
|
47 User::Leave(KErrNotSupported); |
|
48 return NULL; |
|
49 } |
|
50 |
|
51 |
|
52 EXPORT_C CNifAgentBase* Nif::CreateAgentL(const TDesC& /*aAgentName*/, const TBool /*aNewInstance*/ /* = EFalse */) |
|
53 { |
|
54 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 3)); |
|
55 User::Leave(KErrNotSupported); |
|
56 return NULL; |
|
57 } |
|
58 |
|
59 |
|
60 EXPORT_C void Nif::BindL(MNifIfUser& /*aUser*/, TAny* /*aId*/, TDes& /*aResult*/, const TDesC& /*aName*/) |
|
61 { |
|
62 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 4)); |
|
63 User::Leave(KErrNotSupported); |
|
64 } |
|
65 |
|
66 |
|
67 EXPORT_C void Nif::StartL(TDes& /*aResult*/, const TDesC& /*aName*/) |
|
68 { |
|
69 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 5)); |
|
70 User::Leave(KErrNotSupported); |
|
71 } |
|
72 |
|
73 |
|
74 EXPORT_C void Nif::Stop(const TDesC& /*aName*/) |
|
75 { |
|
76 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 6)); |
|
77 } |
|
78 |
|
79 |
|
80 EXPORT_C void Nif::NetworkLayerClosed(MNifIfUser& /*aUser*/) |
|
81 { |
|
82 } |
|
83 |
|
84 |
|
85 EXPORT_C void Nif::CheckInstalledMBufManagerL() |
|
86 { |
|
87 //DEPRECATED. |
|
88 } |
|
89 |
|
90 |
|
91 EXPORT_C CProtocolBase* Nif::IsProtocolLoaded(const TDesC& /*aName*/) |
|
92 { |
|
93 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 7)); |
|
94 return NULL; |
|
95 } |
|
96 |
|
97 |
|
98 EXPORT_C TInt Nif::SetSocketState(TNifSocketState aState, CServProviderBase* aProvd) |
|
99 { |
|
100 #if defined(SYMBIAN_NETWORKING_LEGACY_COMPATIBILITY_SUPPORT) |
|
101 NONSHARABLE_CLASS(CIPProvider) : public CServProviderBase |
|
102 { |
|
103 public: |
|
104 MSocketNotify* Socket() |
|
105 { |
|
106 return iSocket; |
|
107 } |
|
108 }; |
|
109 if(aState<=ENifSocketError && aState>=ENifSocketNull) |
|
110 { |
|
111 static_cast<CIPProvider*>(aProvd)->Socket()->Error(aState, ESock::MSessionControlNotify::EErrorLegacySupportRequest); |
|
112 return KErrNone; |
|
113 } |
|
114 #else |
|
115 // Fixing unused local variable warnings. |
|
116 (void)aState; |
|
117 (void)aProvd; |
|
118 #endif |
|
119 return KErrNotSupported; |
|
120 } |
|
121 |
|
122 |
|
123 EXPORT_C void Nif::ProgressL(TNifProgress& /*aProgress*/, const TDesC& /*aName*/) |
|
124 { |
|
125 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 8)); |
|
126 User::Leave(KErrNotSupported); |
|
127 } |
|
128 |
|
129 |
|
130 EXPORT_C void Nif::Stop(TAny* /*aId*/, CNifIfBase* /*aIf*/) |
|
131 { |
|
132 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 9)); |
|
133 } |
|
134 |
|
135 |
|
136 EXPORT_C void Nif::ProgressL(TNifProgress& /*aProgress*/, TAny* /*aId*/, CNifIfBase* /*aIf*/) |
|
137 { |
|
138 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 10)); |
|
139 User::Leave(KErrNotSupported); |
|
140 } |
|
141 |
|
142 |
|
143 EXPORT_C CConnectionProvdBase* Nif::NewConnectionL(MConnectionNotify* /*aInterface*/, TUint /*aId*/) |
|
144 { |
|
145 __ASSERT_DEBUG(0, User::Panic(KSpecAssert_NifManf_p_stubs, 11)); |
|
146 User::Leave(KErrNotSupported); |
|
147 return NULL; |
|
148 } |
|
149 |
|
150 |
|
151 EXPORT_C void Nif::CheckInstalledL() |
|
152 { |
|
153 if(!CNifMan::Global()) |
|
154 { |
|
155 SocketServExt::InstallExtensionL(KNifManModule, TPtrC()); |
|
156 } |
|
157 } |
|
158 |