equal
deleted
inserted
replaced
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2000-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
30 |
30 |
31 There is one of these per remote device. This class |
31 There is one of these per remote device. This class |
32 acts as an internal socket binding to a lower level SAP. Thus we |
32 acts as an internal socket binding to a lower level SAP. Thus we |
33 derive from MSocketNotify so that the SAP can directly notify us of events. |
33 derive from MSocketNotify so that the SAP can directly notify us of events. |
34 **/ |
34 **/ |
35 NONSHARABLE_CLASS(CSdpClient) : public CBase, private MSocketNotify |
35 NONSHARABLE_CLASS(CSdpClient) : public CBase, private MSocketNotify, private MProvdSecurityChecker |
36 { |
36 { |
37 friend class CSdpProtocol; |
37 friend class CSdpProtocol; |
38 public: |
38 public: |
39 // Create/destroy |
39 // Create/destroy |
40 static CSdpClient* NewL(CSdpProtocol& aProt, CProtocolBase& aL2CAP); |
40 static CSdpClient* NewL(CSdpProtocol& aProt, CProtocolBase& aL2CAP); |
70 void IoctlComplete(TDesC8 *aBuf); |
70 void IoctlComplete(TDesC8 *aBuf); |
71 void NoBearer(const TDesC8& /*aConnectionInf*/) {}; |
71 void NoBearer(const TDesC8& /*aConnectionInf*/) {}; |
72 void Bearer(const TDesC8& /*aConnectionInf*/) {}; |
72 void Bearer(const TDesC8& /*aConnectionInf*/) {}; |
73 |
73 |
74 private: |
74 private: |
|
75 // From MProvdSecurityChecker |
|
76 TInt CheckPolicy(const TSecurityPolicy& aPolicy, const char *aDiagnostic); |
|
77 |
75 // Create/destroy |
78 // Create/destroy |
76 CSdpClient(CSdpProtocol& aProtocol, CProtocolBase& aL2CAP); |
79 CSdpClient(CSdpProtocol& aProtocol, CProtocolBase& aL2CAP); |
77 void ConstructL(); |
80 void ConstructL(); |
78 |
81 |
79 // Out & In PDU handling could be generalised in a CSDP base, which |
82 // Out & In PDU handling could be generalised in a CSDP base, which |