|
1 /** @file |
|
2 * Copyright (c) 2005-2006 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: Element table data handler |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "upnpsender.h" |
|
22 #include "upnpcontentdirectoryglobals.h" |
|
23 #include "upnpcontentdirectory.h" |
|
24 #include <upnpobject.h> |
|
25 #include <upnpitem.h> |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CUpnpCdsSender::CUpnpCdsSender |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CUpnpCdsSender::CUpnpCdsSender(CUpnpContentDirectory* aCd) |
|
35 { |
|
36 iCd = aCd; |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CUpnpCdsSender::ConstructL |
|
41 // Symbian 2nd phase constructor can leave. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 void CUpnpCdsSender::ConstructL() |
|
45 { |
|
46 |
|
47 } |
|
48 // ----------------------------------------------------------------------------- |
|
49 // CUpnpCdsSender::NewLC |
|
50 // Two-phased constructor. |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CUpnpCdsSender* CUpnpCdsSender::NewLC(CUpnpContentDirectory* aCd) |
|
54 { |
|
55 CUpnpCdsSender* self = new (ELeave) CUpnpCdsSender(aCd); |
|
56 CleanupStack::PushL(self); |
|
57 self->ConstructL(); |
|
58 return self; |
|
59 } |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CUpnpCdsSender::NewL |
|
62 // Two-phased constructor. |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 CUpnpCdsSender* CUpnpCdsSender::NewL(CUpnpContentDirectory* aCd) |
|
66 { |
|
67 CUpnpCdsSender* self = NewLC(aCd); |
|
68 CleanupStack::Pop(); |
|
69 return self; |
|
70 } |
|
71 // ----------------------------------------------------------------------------- |
|
72 // CUpnpCdsSender::~CUpnpCdsSender |
|
73 // Destructor |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 CUpnpCdsSender::~CUpnpCdsSender() |
|
77 { |
|
78 } |
|
79 // ----------------------------------------------------------------------------- |
|
80 // CUpnpCdsSender::SendL |
|
81 // ----------------------------------------------------------------------------- |
|
82 // |
|
83 void CUpnpCdsSender::SendL(CUpnpAction* aAction, TUpnpErrorCode aError) |
|
84 { |
|
85 iCd->SendActionL(aAction, aError); |
|
86 } |
|
87 // ----------------------------------------------------------------------------- |
|
88 // CUpnpCdsSender::SendL |
|
89 // ----------------------------------------------------------------------------- |
|
90 // |
|
91 void CUpnpCdsSender::SendL( CUpnpHttpMessage* aMessage ) |
|
92 { |
|
93 iCd->SendMessageL(aMessage); |
|
94 } |
|
95 // End of File |