|
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 CMSRPFROMPATHHEADER_H |
|
19 #define CMSRPFROMPATHHEADER_H |
|
20 |
|
21 // INTERNAL INCLUDES |
|
22 #include "CMsrpFromToHeaderBase.h" |
|
23 |
|
24 /* |
|
25 * @publishedAll |
|
26 * |
|
27 * Class provides functions for setting and getting MSRP "From-Path" header field |
|
28 * |
|
29 * @lib msrpclient.lib |
|
30 */ |
|
31 class CMSRPFromPathHeader : public CMSRPFromToHeaderBase |
|
32 { |
|
33 public: // Constructors and destructor |
|
34 |
|
35 /** |
|
36 * Constructs a CMSRPFromPathHeader from textual representation |
|
37 * of the header's value part. |
|
38 * @param aUri a value part of a "From-Path"-header |
|
39 * @return a new instance of CMSRPFromPathHeader |
|
40 */ |
|
41 IMPORT_C static CMSRPFromPathHeader* DecodeL( const TDesC8& aUri ); |
|
42 |
|
43 /** |
|
44 * Creates a new instance of CMSRFromPathHeader |
|
45 * @param aUri a value part of a "From-Path"-header |
|
46 * @return a new instance of CMSRPFromPathHeader |
|
47 */ |
|
48 IMPORT_C static CMSRPFromPathHeader* NewL( CUri8* aUri ); |
|
49 |
|
50 /** |
|
51 * Creates a new instance of CMSRPFromPathHeader and puts it to CleanupStack |
|
52 * @param aUri a value part of a "From-Path"-header |
|
53 * @return a new instance of CMSRPFromPathHeader |
|
54 */ |
|
55 IMPORT_C static CMSRPFromPathHeader* NewLC( CUri8* aUri ); |
|
56 |
|
57 /** |
|
58 * Creates a new instance of CMSRFromPathHeader |
|
59 * @return a new instance of CMSRPFromPathHeader |
|
60 */ |
|
61 static CMSRPFromPathHeader* NewL( ); |
|
62 |
|
63 /** |
|
64 * Destructor, deletes the resources of CMSRPFromPathHeader. |
|
65 */ |
|
66 IMPORT_C ~CMSRPFromPathHeader(); |
|
67 |
|
68 |
|
69 public: // New functions |
|
70 |
|
71 /** |
|
72 * Constructs an instance of a CMSRPFromPathHeader 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 CMSRPFromPathHeader |
|
76 */ |
|
77 IMPORT_C static CMSRPFromPathHeader* |
|
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 * @param aUri a value part of a "From-Path"-header |
|
93 */ |
|
94 void ConstructL( CUri8* aUri ); |
|
95 |
|
96 /** |
|
97 * Constructor |
|
98 */ |
|
99 void ConstructL( ); |
|
100 |
|
101 private: // Constructors |
|
102 |
|
103 /** |
|
104 * Constructor |
|
105 */ |
|
106 CMSRPFromPathHeader(); |
|
107 |
|
108 }; |
|
109 |
|
110 #endif // CMSRPFROMPATHHEADER_H |
|
111 |
|
112 // End of File |