|
1 /* |
|
2 * Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html." |
|
8 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * Contributors: |
|
11 * |
|
12 * Description: |
|
13 * MSRP Implementation |
|
14 * |
|
15 */ |
|
16 |
|
17 #ifndef CMSRPCONNECTOR_H |
|
18 #define CMSRPCONNECTOR_H |
|
19 |
|
20 // INTERNAL INCLUDES |
|
21 #include "MMSRPConnector.h" |
|
22 #include "MMSRPTimeOutObserver.h" |
|
23 #include "CMSRPTimeOutTimer.h" |
|
24 #include "MMSRPConnectionManager.h" |
|
25 #include "MMSRPConnection.h" |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * MSRP Connection Manager |
|
32 */ |
|
33 class CMSRPConnector : public CActive, public MMSRPConnector, public MMSRPTimeOutObserver |
|
34 { |
|
35 public: |
|
36 |
|
37 // Constructors and destructor |
|
38 static MMSRPConnector* NewL(MMSRPConnectionManager& aConnMngr, MMSRPConnectorObserver& aConnection); |
|
39 virtual ~CMSRPConnector(); |
|
40 |
|
41 //from MMSRPConnector |
|
42 void Connect(TInetAddr& aRemoteAddr); |
|
43 void ConnectComplete(); |
|
44 |
|
45 //from MMSRPTimeOutObserver |
|
46 void TimerExpiredL(); |
|
47 |
|
48 |
|
49 protected: // from CActive |
|
50 void DoCancel(); |
|
51 void RunL(); |
|
52 TInt RunError(TInt aError); |
|
53 |
|
54 private: |
|
55 CMSRPConnector(MMSRPConnectionManager& aConnMngr, MMSRPConnectorObserver& aConnection); |
|
56 void ConstructL(); |
|
57 |
|
58 private: // data |
|
59 CMSRPTimeOutTimer* iTimer; |
|
60 MMSRPConnectionManager& iConnMngr; |
|
61 MMSRPConnectorObserver& iConnection; |
|
62 RSocket* iSocket; |
|
63 |
|
64 |
|
65 }; |
|
66 |
|
67 #endif // CMSRPCONNECTOR_H |
|
68 |
|
69 // End of File |