|
1 /* |
|
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: MUpnpHttpServerTransactionCreator declaration. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef UPNPHTTPSERVERTRANSACTIONCREATOR_H_ |
|
19 #define UPNPHTTPSERVERTRANSACTIONCREATOR_H_ |
|
20 |
|
21 // FORWARD DECLARATIONS |
|
22 |
|
23 class CUpnpHttpServerTransaction; |
|
24 class TDesC8; |
|
25 class TInetAddr; |
|
26 |
|
27 // CLASS DESCRIPTION |
|
28 |
|
29 /** |
|
30 * MUpnpHttpServerTransactionCreator is an interface |
|
31 * for creation of CUpnpHttpServerTransaction based class instance. |
|
32 * |
|
33 * This method is invoked whenever http request related to file transfer |
|
34 * arrives to http server. |
|
35 * |
|
36 * @lib dlnawebserver.lib |
|
37 * @since S60 5.1 |
|
38 */ |
|
39 class MUpnpHttpServerTransactionCreator |
|
40 { |
|
41 public: |
|
42 /** |
|
43 * Create a new transaction object. |
|
44 * The object ownership is transferred to an invoker. |
|
45 * |
|
46 * @since S60 5.1 |
|
47 * @param aMethod Http message method ( GET, HEAD or POST ) |
|
48 * @param aUri Http message request uri |
|
49 * @param aSernder IP address of the Http message sender |
|
50 * @param aTrans Returns newly created transaction object |
|
51 */ |
|
52 virtual void NewTransactionL( const TDesC8& aMethod, |
|
53 const TDesC8& aUri, |
|
54 const TInetAddr& aSender, |
|
55 CUpnpHttpServerTransaction*& aTrans ) = 0; |
|
56 }; |
|
57 |
|
58 #endif /* UPNPHTTPSERVERTRANSACTIONCREATOR_H_ */ |