|
1 /** @file |
|
2 * Copyright (c) 2009 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: CUpnpHttpDataServeTransaction declaration. |
|
15 * |
|
16 */ |
|
17 #ifndef UPNPHTTPFILESERVETRANSACTION_H_ |
|
18 #define UPNPHTTPFILESERVETRANSACTION_H_ |
|
19 |
|
20 #include "upnphttpservertransaction.h" |
|
21 |
|
22 class CUpnpDlnaFilter; |
|
23 class CUpnpDlnaFilterHeaders; |
|
24 class TInetAddr; |
|
25 |
|
26 class CUpnpHttpDataServeTransaction: public CUpnpHttpServerTransaction |
|
27 { |
|
28 public: |
|
29 ~CUpnpHttpDataServeTransaction(); |
|
30 |
|
31 const TDesC8& SenderUri(); |
|
32 |
|
33 HBufC16* PathWithNewMethodL(); |
|
34 |
|
35 static CUpnpHttpDataServeTransaction* NewL( |
|
36 CUpnpDlnaFilter& aClientContext, const TInetAddr& aSender, const TDesC8& aUri ); |
|
37 |
|
38 CUpnpDlnaFilterHeaders& FilterHeaders(); |
|
39 |
|
40 public: |
|
41 virtual void OnCallbackL( TUpnpHttpServerEvent aEvent ); |
|
42 |
|
43 TBool IsOnFlyTransCoded(); |
|
44 |
|
45 protected: |
|
46 CUpnpHttpDataServeTransaction( CUpnpDlnaFilter& aClientContext ); |
|
47 void ConstructL( const TInetAddr& aSender, const TDesC8& aSenderUri ); |
|
48 |
|
49 private: |
|
50 void DoCallbackL( TUpnpHttpServerEvent aEvent ); |
|
51 |
|
52 void InitializeFilterHeadersL(); |
|
53 |
|
54 private: |
|
55 // Sender Uri. |
|
56 HBufC8* iSenderUri; |
|
57 // Sender address. |
|
58 TInetAddr iSender; |
|
59 |
|
60 CUpnpDlnaFilter& iClientContext; |
|
61 CUpnpDlnaFilterHeaders* iFilterHeaders; |
|
62 |
|
63 TFileName iPathWithNewMethod; |
|
64 |
|
65 TBool iIsOnFlyTransCoded; |
|
66 }; |
|
67 |
|
68 #endif /* UPNPHTTPFILESERVETRANSACTION_H_ */ |