|
1 // Copyright (c) 2001-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 // |
|
15 |
|
16 #include "dummyprotocol.h" |
|
17 |
|
18 CDummyProtocol::CDummyProtocol() |
|
19 { |
|
20 } |
|
21 |
|
22 CDummyProtocol* |
|
23 CDummyProtocol::NewL() |
|
24 { |
|
25 return new(ELeave) CDummyProtocol(); |
|
26 } |
|
27 |
|
28 CServProviderBase* |
|
29 CDummyProtocol::NewSAPL(TUint /*aProtocol*/) |
|
30 { |
|
31 return 0; |
|
32 } |
|
33 CHostResolvProvdBase* |
|
34 CDummyProtocol::NewHostResolverL() |
|
35 { |
|
36 return 0; |
|
37 } |
|
38 |
|
39 CServiceResolvProvdBase* |
|
40 CDummyProtocol::NewServiceResolverL() |
|
41 { |
|
42 return 0; |
|
43 } |
|
44 |
|
45 CNetDBProvdBase* |
|
46 CDummyProtocol::NewNetDatabaseL() |
|
47 { |
|
48 return 0; |
|
49 } |
|
50 |
|
51 CProtocolFamilyBase* |
|
52 CDummyProtocol::ProtocolFamily() |
|
53 { |
|
54 return 0; |
|
55 } |
|
56 |
|
57 void |
|
58 CDummyProtocol::Close() |
|
59 { |
|
60 } |
|
61 |
|
62 void |
|
63 CDummyProtocol::Open() |
|
64 { |
|
65 } |
|
66 |
|
67 void |
|
68 CDummyProtocol::CloseNow() |
|
69 { |
|
70 } |
|
71 |
|
72 void |
|
73 CDummyProtocol::StartSending(CProtocolBase* /*aProtocol*/){} |
|
74 |
|
75 void |
|
76 CDummyProtocol::InitL(TDesC &/*aTag*/){} |
|
77 |
|
78 void CDummyProtocol::StartL(){} |
|
79 |
|
80 void |
|
81 CDummyProtocol::BindL(CProtocolBase* /* protocol*/, TUint /*id*/){} |
|
82 |
|
83 void |
|
84 CDummyProtocol::BindToL(CProtocolBase* /*protocol*/){} |
|
85 |
|
86 TInt |
|
87 CDummyProtocol::Send(RMBufChain& /*aPDU*/,CProtocolBase* /*aSourceProtocol=NULL*/){return KErrNone;} |
|
88 |
|
89 TInt |
|
90 CDummyProtocol::Send(TDes8& /*aPDU*/,TSockAddr* /*to*/,TSockAddr* /*from=NULL*/,CProtocolBase* /*aSourceProtocol=NULL*/){return KErrNone;} |
|
91 |
|
92 void |
|
93 CDummyProtocol::Process(RMBufChain &,CProtocolBase* /*aSourceProtocol=NULL*/){} |
|
94 |
|
95 void |
|
96 CDummyProtocol::Process(TDes8& /*aPDU*/,TSockAddr * /*from*/,TSockAddr * /*to=NULL*/,CProtocolBase* /*aSourceProtocol=NULL*/){} |
|
97 |
|
98 TInt |
|
99 CDummyProtocol::GetOption(TUint /*level*/,TUint /*name*/,TDes8& /*option*/,CProtocolBase* /*aSourceProtocol=NULL*/) |
|
100 { |
|
101 return KErrNone; |
|
102 } |
|
103 |
|
104 TInt |
|
105 CDummyProtocol::SetOption(TUint /*level*/,TUint /*name*/,const TDesC8& /*option*/,CProtocolBase* /*aSourceProtocol=NULL*/) |
|
106 { |
|
107 return KErrNone; |
|
108 } |
|
109 |
|
110 void |
|
111 CDummyProtocol::Error(TInt /*anError*/,CProtocolBase* /*aSourceProtocol=NULL*/){} |
|
112 |
|
113 void |
|
114 CDummyProtocol::Identify(TServerProtocolDesc* /*aProtocolDesc*/)const{} |
|
115 |