|
1 /* |
|
2 * Copyright (c) 2008 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 #ifndef ATESTSOCKET_H_ |
|
19 #define ATESTSOCKET_H_ |
|
20 |
|
21 NONSHARABLE_CLASS(ATestSocket):public MSessionControlNotify, |
|
22 public MSessionDataNotify |
|
23 { |
|
24 protected: |
|
25 //MSessionDataNotify |
|
26 virtual void NewData(TUint /*aCount*/) |
|
27 {}; |
|
28 virtual void CanSend() |
|
29 {}; |
|
30 //MSessionControlNotify |
|
31 virtual void ConnectComplete() |
|
32 {}; |
|
33 virtual void ConnectComplete(const TDesC8& /*aConnectData*/) |
|
34 {}; |
|
35 virtual void ConnectComplete(CSubConnectionFlowBase& /*aSSP*/) |
|
36 {}; |
|
37 virtual void ConnectComplete(CSubConnectionFlowBase& /*aSSP*/,const TDesC8& /*aConnectData*/) |
|
38 {}; |
|
39 virtual void CanClose(MSessionControlNotify::TDelete /*aDelete=MSessionControlNotify::EDelete*/) |
|
40 {}; |
|
41 virtual void CanClose(const TDesC8& /*aDisconnectData*/,MSessionControlNotify::TDelete /*aDelete=MSessionControlNotify::EDelete*/) |
|
42 {}; |
|
43 virtual TInt Error(TInt /*anError*/,TUint /*anOperationMask=MSessionControlNotify::EErrorAllOperations*/) |
|
44 {return KErrNone;}; |
|
45 virtual void Disconnect(void) |
|
46 {}; |
|
47 virtual void Disconnect(TDesC8& /*aDisconnectData*/) |
|
48 {}; |
|
49 virtual void IoctlComplete(TDesC8* /*aBuf*/) |
|
50 {}; |
|
51 virtual void DisconnectFromListener(CSubConnectionFlowBase& /*aSSP*/) |
|
52 {}; |
|
53 |
|
54 |
|
55 }; |
|
56 |
|
57 |
|
58 #endif /*ATESTSOCKET_H_*/ |