|
1 /* |
|
2 * Copyright (c) 2009-2010 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 * Initial Contributors: |
|
9 * Nokia Corporation - initial contribution. |
|
10 * Contributors: |
|
11 * |
|
12 * Description: |
|
13 * MSRP Implementation |
|
14 * |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef CMSRPFAILUREREPORTHEADER_H |
|
19 #define CMSRPFAILUREREPORTHEADER_H |
|
20 |
|
21 // INTERNAL INCLUDES |
|
22 #include "CMsrpHeaderBase.h" |
|
23 |
|
24 // CLASS DECLARATION |
|
25 /** |
|
26 * @publishedAll |
|
27 * |
|
28 * Class provides functions for setting and getting MSRP "Failure-Report" header field |
|
29 * |
|
30 * @lib msrpclient.lib |
|
31 */ |
|
32 class CMSRPFailureReportHeader : public CMSRPHeaderBase |
|
33 { |
|
34 public: // Constructors and destructor |
|
35 |
|
36 /** |
|
37 * Creates a new instance of CMSRFailureReportHeader |
|
38 * @param aType type of the content |
|
39 * @return a new instance of CMSRPFailureReportHeader |
|
40 */ |
|
41 IMPORT_C static CMSRPFailureReportHeader* NewL( const RStringF& aType ); |
|
42 |
|
43 /** |
|
44 * Creates a new instance of CMSRPFailureReportHeader and puts it to CleanupStack |
|
45 * @param aType type of the content |
|
46 * @return a new instance of CMSRPFailureReportHeader |
|
47 */ |
|
48 IMPORT_C static CMSRPFailureReportHeader* NewLC( const RStringF& aType ); |
|
49 |
|
50 /** |
|
51 * Creates a new instance of CMSRPFailureReportHeader and puts it to CleanupStack |
|
52 * @return a new instance of CMSRPFailureReportHeader |
|
53 */ |
|
54 static CMSRPFailureReportHeader* NewL( ); |
|
55 |
|
56 /** |
|
57 * Destructor, deletes the resources of CMSRPFailureReportHeader. |
|
58 */ |
|
59 IMPORT_C ~CMSRPFailureReportHeader(); |
|
60 |
|
61 |
|
62 public: // New functions |
|
63 |
|
64 /** |
|
65 * Constructs an instance of a CMSRPFailureReportHeader from a RReadStream |
|
66 * @param aReadStream a stream containing the value of the |
|
67 * externalized object (header name not included). |
|
68 * @return an instance of a CMSRPFailureReportHeader |
|
69 */ |
|
70 IMPORT_C static CMSRPFailureReportHeader* |
|
71 InternalizeValueL( RReadStream& aReadStream ); |
|
72 |
|
73 |
|
74 public: // From CMSRPHeaderBase |
|
75 |
|
76 IMPORT_C void ExternalizeValueL( RWriteStream& aWriteStream ) const; |
|
77 |
|
78 protected: // From CMSRPHeaderBase |
|
79 |
|
80 RStringF Name() const; |
|
81 HBufC8* ToTextValueL() const; |
|
82 |
|
83 private: // Constructors |
|
84 |
|
85 /** |
|
86 * Contstructor |
|
87 */ |
|
88 CMSRPFailureReportHeader(); |
|
89 |
|
90 /** |
|
91 * Second-phase Contstructor |
|
92 * @param aType type of the content |
|
93 */ |
|
94 void ConstructL( RStringF aType ); |
|
95 |
|
96 /** |
|
97 * Second-phase Contstructor |
|
98 */ |
|
99 void ConstructL( ); |
|
100 |
|
101 private: // new functions |
|
102 void DoInternalizeValueL( RReadStream& aReadStream ); |
|
103 |
|
104 private: // variables |
|
105 |
|
106 // value as a string |
|
107 RStringF iReportType; |
|
108 |
|
109 }; |
|
110 |
|
111 #endif // CMSRPFAILUREREPORTHEADER_H |
|
112 |
|
113 // End of File |