|
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 inline void CRfcommMuxChannel::Open() |
|
17 { |
|
18 iState->Open(*this); |
|
19 } |
|
20 |
|
21 inline void CRfcommMuxChannel::Close() |
|
22 { |
|
23 iState->Close(*this); |
|
24 } |
|
25 |
|
26 inline TBool CRfcommMuxChannel::IsOpen() |
|
27 { |
|
28 return iState->IsOpen(*this); |
|
29 } |
|
30 |
|
31 inline TInt CRfcommMuxChannel::MaxDataSize() |
|
32 { |
|
33 return iMaxDataSize; |
|
34 } |
|
35 |
|
36 |
|
37 // Rfcomm events |
|
38 inline void CRfcommMuxChannel::UA() |
|
39 { |
|
40 iState->UA(*this); |
|
41 } |
|
42 |
|
43 inline void CRfcommMuxChannel::DISC() |
|
44 { |
|
45 iState->DISC(*this); |
|
46 } |
|
47 |
|
48 inline void CRfcommMuxChannel::DM() |
|
49 { |
|
50 iState->DM(*this); |
|
51 } |
|
52 |
|
53 inline void CRfcommMuxChannel::PN(TBool aCommand, TRfcommPortParams& aParams) |
|
54 { |
|
55 iState->PN(*this, aCommand, aParams); |
|
56 } |
|
57 |
|
58 inline void CRfcommMuxChannel::SABM() |
|
59 { |
|
60 iState->SABM(*this); |
|
61 } |
|
62 |
|
63 inline void CRfcommMuxChannel::FrameTimeout(CRfcommFrame* aFrm) |
|
64 { |
|
65 iState->FrameTimeout(*this, aFrm); |
|
66 } |
|
67 |
|
68 |
|
69 // L2CAP events (passed on from the mux) |
|
70 inline void CRfcommMuxChannel::Disconnect() |
|
71 { |
|
72 iState->Disconnect(*this); |
|
73 } |
|
74 |
|
75 inline void CRfcommMuxChannel::CanClose() |
|
76 { |
|
77 iState->CanClose(*this); |
|
78 } |
|
79 |
|
80 inline void CRfcommMuxChannel::ConnectComplete() |
|
81 { |
|
82 iState->ConnectComplete(*this); |
|
83 } |
|
84 |
|
85 inline void CRfcommMuxChannel::Error(TInt anError,TUint anOperationMask) |
|
86 { |
|
87 iState->Error(*this, anError, anOperationMask); |
|
88 } |
|
89 |
|
90 inline TInt CRfcommMuxChannel::TransmitSABM() |
|
91 { |
|
92 return iMux.TransmitSABM(KMuxDLCI); |
|
93 } |
|
94 |
|
95 inline TInt CRfcommMuxChannel::TransmitUA() |
|
96 { |
|
97 return iMux.TransmitUA(KMuxDLCI); |
|
98 } |
|
99 |
|
100 inline TInt CRfcommMuxChannel::TransmitDISC() |
|
101 { |
|
102 return iMux.TransmitDISC(KMuxDLCI); |
|
103 } |
|
104 |
|
105 inline TInt CRfcommMuxChannel::TransmitDM() |
|
106 { |
|
107 return iMux.TransmitDM(KMuxDLCI, ETrue); |
|
108 } |
|
109 |
|
110 inline TInt CRfcommMuxChannel::TransmitPN(TBool aCommand, const TRfcommPortParams& aParams) |
|
111 { |
|
112 return iMux.TransmitPN(KMuxDLCI, aCommand, aParams); |
|
113 } |