|
1 /** @file |
|
2 * Copyright (c) 2008 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 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Provides default implementation of MUpnpCpHttpClientRequestor interface. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include "upnpcphttprequestorimpl.h" |
|
21 #include "upnphttpclientengine.h" |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // CUpnpCpHttpRequestorImpl::CUpnpCpHttpRequestorImpl |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 CUpnpCpHttpRequestorImpl::CUpnpCpHttpRequestorImpl() |
|
28 { |
|
29 } |
|
30 |
|
31 // ----------------------------------------------------------------------------- |
|
32 // CUpnpCpHttpRequestorImpl::~CUpnpCpHttpRequestorImpl |
|
33 // ----------------------------------------------------------------------------- |
|
34 // |
|
35 CUpnpCpHttpRequestorImpl::~CUpnpCpHttpRequestorImpl() |
|
36 { |
|
37 delete iHttpClientEngine; |
|
38 } |
|
39 |
|
40 // ----------------------------------------------------------------------------- |
|
41 // CUpnpCpHttpRequestorImpl::NewL |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 CUpnpCpHttpRequestorImpl* CUpnpCpHttpRequestorImpl::NewL() |
|
45 { |
|
46 CUpnpCpHttpRequestorImpl* self = new (ELeave) CUpnpCpHttpRequestorImpl(); |
|
47 return self; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CUpnpCpHttpRequestorImpl::InitialiseL |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 void CUpnpCpHttpRequestorImpl::InitialiseL( |
|
55 MUpnpHttpClientObserver& aObserver, TInt aActiveIap ) |
|
56 { |
|
57 delete iHttpClientEngine; |
|
58 iHttpClientEngine = NULL; |
|
59 iHttpClientEngine = CUpnpHttpClientEngine::NewL( aObserver, aActiveIap ); |
|
60 } |
|
61 |
|
62 // ----------------------------------------------------------------------------- |
|
63 // CUpnpCpHttpRequestorImpl::SendL |
|
64 // ----------------------------------------------------------------------------- |
|
65 // |
|
66 void CUpnpCpHttpRequestorImpl::SendL( CUpnpHttpTransaction& aTransaction ) |
|
67 { |
|
68 ASSERT( iHttpClientEngine );//check if InitialiseL was invoked |
|
69 iHttpClientEngine->SendL( aTransaction ); |
|
70 } |
|
71 |
|
72 // End of File |