52 conversions between the two. |
52 conversions between the two. |
53 |
53 |
54 Applications should use the unicode functions whenever possible because it |
54 Applications should use the unicode functions whenever possible because it |
55 removes the risk of losing information during the unicode to 8 bit conversion. |
55 removes the risk of losing information during the unicode to 8 bit conversion. |
56 |
56 |
57 @publishedPartner |
|
58 @released |
|
59 */ |
57 */ |
60 class CMetaData : public CBase |
58 class CMetaData : public CBase |
61 { |
59 { |
62 public: |
60 public: |
63 /** Construct a new CMetaData with 8 bit data |
61 /** Construct a new CMetaData with 8 bit data |
64 The 8-bit data will be stored in CMetaData as unicode |
62 The 8-bit data will be stored in CMetaData as unicode |
65 |
63 |
66 @param aField The name of the field |
64 @param aField The name of the field |
67 @param aData The data associated with the field |
65 @param aData The data associated with the field |
68 @return A CMetaData object populated with the given field and data |
66 @return A CMetaData object populated with the given field and data |
69 @internalComponent |
|
70 @released |
|
71 */ |
67 */ |
72 static CMetaData* NewL(const TDesC8& aField, const TDesC8& aData); |
68 static CMetaData* NewL(const TDesC8& aField, const TDesC8& aData); |
73 /** Construct a new CMetaData with unicode data |
69 /** Construct a new CMetaData with unicode data |
74 |
70 |
75 @param aField The name of the field |
71 @param aField The name of the field |
76 @param aData The data associated with the field |
72 @param aData The data associated with the field |
77 @return A CMetaData object populated with the given field and data |
73 @return A CMetaData object populated with the given field and data |
78 |
74 |
79 @internalComponent |
|
80 @released |
|
81 */ |
75 */ |
82 static CMetaData* NewL(const TDesC16& aField, const TDesC16& aData); |
76 static CMetaData* NewL(const TDesC16& aField, const TDesC16& aData); |
83 |
77 |
84 /** Construct a new CMetaData from a data stream |
78 /** Construct a new CMetaData from a data stream |
85 |
79 |
86 @param aStream The stream to read the CMetaData object from |
80 @param aStream The stream to read the CMetaData object from |
87 @return A CMetaData object read from the stream |
81 @return A CMetaData object read from the stream |
88 |
82 |
89 @internalComponent |
|
90 @released |
|
91 */ |
83 */ |
92 static CMetaData* NewL(RReadStream& aStream); |
84 static CMetaData* NewL(RReadStream& aStream); |
93 |
85 |
94 /** destructor |
86 /** destructor |
95 */ |
87 */ |
116 IMPORT_C const TDesC8& Data8() const; |
108 IMPORT_C const TDesC8& Data8() const; |
117 |
109 |
118 /** Write the CMetaData to a data stream |
110 /** Write the CMetaData to a data stream |
119 |
111 |
120 @param aStream The stream to write the CMetaData object to |
112 @param aStream The stream to write the CMetaData object to |
121 @internalComponent |
|
122 @released |
|
123 */ |
113 */ |
124 void ExternalizeL(RWriteStream& aStream) const; |
114 void ExternalizeL(RWriteStream& aStream) const; |
125 |
115 |
126 private: |
116 private: |
127 CMetaData(TBool aUnicode); |
117 CMetaData(TBool aUnicode); |