|
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 CMSRPFROMTOHEADERBASE_H |
|
19 #define CMSRPFROMTOHEADERBASE_H |
|
20 |
|
21 // EXTERNAL INCLUDES |
|
22 #include <uri8.h> |
|
23 |
|
24 // INTERNAL INCLUDES |
|
25 #include "CMsrpHeaderBase.h" |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * @publishedAll |
|
30 * |
|
31 * Class provides functions for setting and getting parameters in MSRP "From-Path" |
|
32 * and "To-Path" header. |
|
33 * |
|
34 * @lib msrpclient.lib |
|
35 */ |
|
36 class CMSRPFromToHeaderBase : public CMSRPHeaderBase |
|
37 { |
|
38 public: // Constructors and destructor |
|
39 |
|
40 /** |
|
41 * Destructor, deletes the resources of CMSRPFromToHeaderBase. |
|
42 */ |
|
43 IMPORT_C virtual ~CMSRPFromToHeaderBase(); |
|
44 |
|
45 |
|
46 public: // New functions |
|
47 |
|
48 /** |
|
49 * Compares this instance to another "From-Path" or "To-Path" header object |
|
50 * @param aHeader a header to compare to |
|
51 * @return ETrue, if the objects are equal otherwise EFalse |
|
52 */ |
|
53 IMPORT_C TBool operator==( const CMSRPFromToHeaderBase& aHeader ) const; |
|
54 |
|
55 public: // From CMSRPHeaderBase |
|
56 |
|
57 IMPORT_C void ExternalizeValueL( RWriteStream& aWriteStream ) const; |
|
58 |
|
59 protected: // From CMSRPHeaderBase |
|
60 |
|
61 HBufC8* ToTextValueL() const; |
|
62 |
|
63 protected: |
|
64 |
|
65 /** |
|
66 * Constructor |
|
67 */ |
|
68 CMSRPFromToHeaderBase(); |
|
69 |
|
70 protected: // New functions |
|
71 |
|
72 /** |
|
73 * Parce URI string |
|
74 * @param aReadStream URI string in one piece |
|
75 */ |
|
76 void DoInternalizeValueL( RReadStream& aReadStream ); |
|
77 |
|
78 protected: // data |
|
79 |
|
80 // MSRP url (from or to header field) |
|
81 CUri8* iUri; |
|
82 }; |
|
83 |
|
84 |
|
85 #endif // CMSRPFROMTOHEADERBASE_H |
|
86 |
|
87 // End of File |