|
1 /** @file |
|
2 * Copyright (c) 2008-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: Implements transactions for moderated events |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "upnphttpmoderatedeventtransaction.h" |
|
20 |
|
21 // ----------------------------------------------------------------------------- |
|
22 // CUpnpHttpModeratedEventTransaction::CUpnpHttpModeratedEventTransaction |
|
23 // ----------------------------------------------------------------------------- |
|
24 // |
|
25 CUpnpHttpModeratedEventTransaction::CUpnpHttpModeratedEventTransaction( |
|
26 CUpnpHttpMessage* aRequest, |
|
27 MTransactionObserver& aObserver ) |
|
28 :CUpnpHttpTransaction( aRequest ), iObserver( aObserver ) |
|
29 { |
|
30 // No implementation required |
|
31 } |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // CUpnpHttpModeratedEventTransaction::~CUpnpHttpModeratedEventTransaction |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 CUpnpHttpModeratedEventTransaction::~CUpnpHttpModeratedEventTransaction() |
|
38 { |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CUpnpHttpModeratedEventTransaction::NewLC |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 CUpnpHttpModeratedEventTransaction* CUpnpHttpModeratedEventTransaction::NewLC( |
|
46 CUpnpHttpMessage* aRequest , |
|
47 MTransactionObserver& aObserver ) |
|
48 { |
|
49 CleanupStack::PushL( aRequest ); |
|
50 CUpnpHttpModeratedEventTransaction* self = |
|
51 new (ELeave) CUpnpHttpModeratedEventTransaction( aRequest, aObserver ); |
|
52 CleanupStack::Pop( aRequest ); |
|
53 CleanupStack::PushL( self ); |
|
54 self->BaseConstructL(); |
|
55 return self; |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CUpnpHttpModeratedEventTransaction::NewL |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 CUpnpHttpModeratedEventTransaction* |
|
63 CUpnpHttpModeratedEventTransaction::NewL( CUpnpHttpMessage* aRequest, |
|
64 MTransactionObserver& aObserver ) |
|
65 { |
|
66 CUpnpHttpModeratedEventTransaction* self= |
|
67 CUpnpHttpModeratedEventTransaction::NewLC( aRequest, aObserver ); |
|
68 CleanupStack::Pop( self ); |
|
69 return self; |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CUpnpHttpModeratedEventTransaction::ProcessResponseL |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 void CUpnpHttpModeratedEventTransaction::ProcessResponseL() |
|
77 { |
|
78 iObserver.TransactionCompletedL( this ); |
|
79 } |
|
80 //end of file |