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 OBEXACTIVERFCOMMCONNECTOR_H |
|
17 #define OBEXACTIVERFCOMMCONNECTOR_H |
|
18 |
|
19 #include <e32base.h> |
|
20 #include <bt_sock.h> |
|
21 |
|
22 class MConnectObserver; |
|
23 |
|
24 /** |
|
25 Simple active object to call Connect on a socket. Only one Connect operation |
|
26 may be outstanding at any time. |
|
27 */ |
|
28 NONSHARABLE_CLASS(CObexActiveRfcommConnector) : public CActive |
|
29 { |
|
30 public: |
|
31 CObexActiveRfcommConnector(MConnectObserver& aParent, |
|
32 RSocketServ& aSocketServ, |
|
33 RSocket& aSocket, |
|
34 const TProtocolDesc& aProtocolDesc, |
|
35 const TBTSockAddr& aAddr); |
|
36 ~CObexActiveRfcommConnector(); |
|
37 |
|
38 public: |
|
39 void ConnectL(); |
|
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 const TBTSockAddr& iAddr; |
|
51 }; |
|
52 |
|
53 #endif // OBEXACTIVERFCOMMCONNECTOR_H |
|