equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-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 #ifndef OBEXLISTENERRFCOMMCONNECTOR_H |
|
17 #define OBEXLISTENERRFCOMMCONNECTOR_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <bt_sock.h> |
|
21 |
|
22 class MConnectObserver; |
|
23 |
|
24 /** |
|
25 Simple Active Object to call Accept for a socket. Only one accept operation |
|
26 may be outstanding at any time. It has its own listening socket. |
|
27 */ |
|
28 NONSHARABLE_CLASS(CObexListenerRfcommConnector) : public CActive |
|
29 { |
|
30 public: |
|
31 CObexListenerRfcommConnector(MConnectObserver& aParent, |
|
32 RSocketServ& aSocketServ, |
|
33 RSocket& aSocket, |
|
34 const TProtocolDesc& aProtocolDesc, |
|
35 TBTSockAddr& aAddr); |
|
36 ~CObexListenerRfcommConnector(); |
|
37 |
|
38 public: |
|
39 void AcceptL(); |
|
40 |
|
41 private: // from CActive |
|
42 void RunL(); |
|
43 void DoCancel(); |
|
44 |
|
45 private: // unowned |
|
46 MConnectObserver& iParent; |
|
47 RSocketServ& iSocketServ; |
|
48 RSocket& iSocket; |
|
49 const TProtocolDesc& iProtocolDesc; |
|
50 TBTSockAddr& iAddr; |
|
51 |
|
52 private: // owned |
|
53 RSocket iListeningSocket; |
|
54 }; |
|
55 |
|
56 #endif // OBEXLISTENERRFCOMMCONNECTOR_H |