|
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: Declares the CUpnpSoapMessage class |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef C_CUPNPSOAPMESSAGE_H |
|
20 #define C_CUPNPSOAPMESSAGE_H |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 //#include <e32base.h> |
|
25 //#include <in_sock.h> |
|
26 #include "upnphttpmessage.h" |
|
27 #include "upnphttpheader.h" |
|
28 #include "upnperrors.h" |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * SOAP-Message class. |
|
34 * Used in sending and handling SOAP messages. |
|
35 * |
|
36 * @since Series60 2.6 |
|
37 */ |
|
38 class CUpnpSoapMessage : public CUpnpHttpMessage |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Two-phased constructor. |
|
44 * @param aBuffer Buffer which contains the message. |
|
45 * @param aAddr Target IP address. |
|
46 */ |
|
47 IMPORT_C static CUpnpSoapMessage* NewL( TDesC8& aBuffer, const TInetAddr& aAddr ); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 IMPORT_C ~CUpnpSoapMessage(); |
|
53 |
|
54 public: // New functions |
|
55 |
|
56 /** |
|
57 * Returns SOAPACTION header |
|
58 * @since Series60 2.6 |
|
59 * @return SOAPACTION header or NULL |
|
60 */ |
|
61 IMPORT_C const TPtrC8 SoapAction(); |
|
62 |
|
63 /** |
|
64 * Returns service type |
|
65 * @since Series60 2.6 |
|
66 * @return service type or NULL |
|
67 */ |
|
68 IMPORT_C const TPtrC8 ServiceType(); |
|
69 |
|
70 /** |
|
71 * Returns action name |
|
72 * @since Series60 2.6 |
|
73 * @return action name or NULL |
|
74 */ |
|
75 IMPORT_C const TPtrC8 ActionName(); |
|
76 |
|
77 private: // Constructor |
|
78 |
|
79 /** |
|
80 * C++ default constructor. |
|
81 */ |
|
82 CUpnpSoapMessage(); |
|
83 |
|
84 /** |
|
85 * Second phase construct. |
|
86 * @param aSender |
|
87 **/ |
|
88 void ConstructL(TInetAddr aSender); |
|
89 }; |
|
90 |
|
91 #endif // C_CUPNPSOAPMESSAGE_H |
|
92 |
|
93 // End of File |