|
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 #ifndef CMSRPTOPATHHEADER_H |
|
18 #define CMSRPTOPATHHEADER_H |
|
19 |
|
20 // INTERNAL INCLUDES |
|
21 #include "CMsrpFromToHeaderBase.h" |
|
22 |
|
23 // CLASS DECLARATION |
|
24 /** |
|
25 * @publishedAll |
|
26 * |
|
27 * Class provides functions for setting and getting MSRP "To-Path" header field |
|
28 * |
|
29 * @lib msrpclient.lib |
|
30 */ |
|
31 class CMSRPToPathHeader : public CMSRPFromToHeaderBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Constructs a CMSRPToPathHeader from textual representation |
|
37 * of the header's value part. |
|
38 * @param aValue a value part of a "To-Path"-header |
|
39 * @return a new instance of CMSRPToPathHeader |
|
40 */ |
|
41 IMPORT_C static CMSRPToPathHeader* DecodeL( const TDesC8& aValue ); |
|
42 |
|
43 /** |
|
44 * Creates a new instance of CMSRToPathHeader |
|
45 * @param aUri URI of MSRP message receiver |
|
46 * @return a new instance of CMSRPToPathHeader |
|
47 */ |
|
48 IMPORT_C static CMSRPToPathHeader* NewL( CUri8* aUri ); |
|
49 |
|
50 /** |
|
51 * Creates a new instance of CMSRPToPathHeader and puts it to CleanupStack |
|
52 * @param aUri URI of MSRP message receiver |
|
53 * @return a new instance of CMSRPTopathHeader |
|
54 */ |
|
55 IMPORT_C static CMSRPToPathHeader* NewLC( CUri8* aUri ); |
|
56 |
|
57 /** |
|
58 * Creates a new instance of CMSRToPathHeader |
|
59 * @return a new instance of CMSRPToPathHeader |
|
60 */ |
|
61 static CMSRPToPathHeader* NewL( ); |
|
62 |
|
63 /** |
|
64 * Destructor, deletes the resources of CMSRPToPathHeader. |
|
65 */ |
|
66 IMPORT_C ~CMSRPToPathHeader(); |
|
67 |
|
68 |
|
69 public: // New functions |
|
70 |
|
71 /** |
|
72 * Constructs an instance of a CMSRPTopathHeader from a RReadStream |
|
73 * @param aReadStream a stream containing the value of the |
|
74 * externalized object (header name not included). |
|
75 * @return an instance of a CMSRPTopathHeader |
|
76 */ |
|
77 IMPORT_C static CMSRPToPathHeader* |
|
78 InternalizeValueL( RReadStream& aReadStream ); |
|
79 |
|
80 |
|
81 protected: // From CMSRPHeaderBase |
|
82 |
|
83 /** |
|
84 * From CMSRPHeaderBase Name |
|
85 */ |
|
86 RStringF Name() const; |
|
87 |
|
88 protected: // constructors |
|
89 |
|
90 /** |
|
91 * Constructor |
|
92 */ |
|
93 void ConstructL( CUri8* aUri ); |
|
94 |
|
95 /** |
|
96 * Constructor |
|
97 */ |
|
98 void ConstructL( ); |
|
99 |
|
100 private: // Constructors |
|
101 |
|
102 /** |
|
103 * Constructor |
|
104 */ |
|
105 CMSRPToPathHeader(); |
|
106 |
|
107 }; |
|
108 |
|
109 #endif // CMSRPTOPATHHEADER_H |
|
110 |
|
111 // End of File |