|
1 // Copyright (c) 1999-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 "l2util.h" |
|
17 |
|
18 inline CL2CapSAPSignalHandler& CL2CAPConnectionSAP::SignalHandler() const |
|
19 { |
|
20 return *iL2CapSAPSignalHandler; |
|
21 } |
|
22 |
|
23 inline CL2CapSDUQueue& CL2CAPConnectionSAP::DataQueue() const |
|
24 { |
|
25 return *iL2CapDataQueue; |
|
26 } |
|
27 |
|
28 inline MSocketNotify* CL2CAPConnectionSAP::Socket() const |
|
29 { |
|
30 return iSocket; |
|
31 } |
|
32 |
|
33 inline CL2CAPProtocol& CL2CAPConnectionSAP::Protocol() const |
|
34 { |
|
35 return iProtocol; |
|
36 } |
|
37 |
|
38 inline TBool CL2CAPConnectionSAP::IsSDUQueueClosed() const |
|
39 { |
|
40 return (iL2CapDataQueue == NULL); |
|
41 } |
|
42 |
|
43 inline CL2CAPConnectionSAP* CL2CAPConnectionSAP::ListeningSAP() const |
|
44 { |
|
45 return iListeningSAP; |
|
46 } |
|
47 |
|
48 inline void CL2CAPConnectionSAP::SetListeningSAP(CL2CAPConnectionSAP& aSAP) |
|
49 { |
|
50 __ASSERT_DEBUG(!iListeningSAP, Panic(EL2CAPAttemptToAsignCloneToSecondListeningSAP)); |
|
51 iListeningSAP = &aSAP; |
|
52 } |
|
53 |
|
54 inline void CL2CAPConnectionSAP::ClearListeningSAP() |
|
55 { |
|
56 iListeningSAP = NULL; |
|
57 } |
|
58 |
|
59 inline void CL2CAPConnectionSAP::StartNewDataAsyncCallBack() |
|
60 { |
|
61 iNewDataAsyncCallBack->CallBack(); |
|
62 } |
|
63 |
|
64 inline CL2CAPConnectionSAP::TShutdownType CL2CAPConnectionSAP::ShutdownReceived() const |
|
65 { |
|
66 return iShutdownReceived; |
|
67 } |
|
68 |
|
69 inline TUint8 CL2CAPConnectionSAP::ChannelPriority() const |
|
70 { |
|
71 return iChannelPriority; |
|
72 } |
|
73 |
|
74 inline TInt CL2CAPConnectionSAP::SocketErrorCode() const |
|
75 { |
|
76 return iSocketErrorCode; |
|
77 } |
|
78 |
|
79 inline TUint CL2CAPConnectionSAP::SocketErrorAction() const |
|
80 { |
|
81 return iSocketErrorAction; |
|
82 } |
|
83 |
|
84 inline void CL2CAPConnectionSAP::SetSocketErrorCode(TInt aError) |
|
85 { |
|
86 iSocketErrorCode = aError; |
|
87 } |
|
88 |
|
89 inline void CL2CAPConnectionSAP::SetSocketErrorAction(MSocketNotify::TOperationBitmasks aAction) |
|
90 { |
|
91 iSocketErrorAction = aAction; |
|
92 } |
|
93 |
|
94 inline TBool CL2CAPConnectionSAP::IsAcceptPending() const |
|
95 { |
|
96 return iAcceptPending; |
|
97 } |
|
98 |
|
99 |