CSdpKeyField Class Reference
class CSdpKeyField : public CBase |
This class encapsulates the encryption key field of the Session Description Protocol.
The normative reference for correct formatting and values is draft-ietf-mmusic-sdp-new-14 unless specified otherwise in member documentation. The implementation supports this normative reference, but does not enforce it fully.
sdpcodec.lib
Constructor & Destructor Documentation
~CSdpKeyField()
Deletes the resources held by the instance.
Member Functions Documentation
CloneL()
Creates a new instance that is equal to the target.
ConstructL(const TDesC8 &)
void | ConstructL | ( | const TDesC8 & | aText | ) | [private] |
ConstructL(RStringF, const TDesC8 &)
void | ConstructL | ( | RStringF | aMethod, |
| const TDesC8 & | aEncryptionKey |
| ) | [private] |
DecodeL(const TDesC8 &)
Constructs a new encryption key field.
Parameters
const TDesC8 & aFieldValue | A string containing a correctly formatted field value terminated by a CRLF. |
DecodeLC(const TDesC8 &)
Constructs a new encryption key field and adds the pointer to the cleanup stack.
-
leave
- In error case function leaves.
Parameters
const TDesC8 & aFieldValue | A string containing a correctly formatted field value terminated by a CRLF. |
DoInternalizeL(RReadStream &)
EncodeL(RWriteStream &)
Writes the instance as a complete SDP field encoded as UTF-8 and formatted as defined in draft-ietf-mmusic-sdp-new-14.
Parameters
RWriteStream & aStream | Stream used for output. On return the stream includes correctly formatted key field. |
EncryptionKey()
IMPORT_C const TDesC8 & | EncryptionKey | ( | ) | const |
ExternalizeL(RWriteStream &)
Externalizes the object to stream
Parameters
RWriteStream & aStream | Stream where the object's state will be stored |
GetElementsFromLineL(TLex8 &)
InternalizeL(RReadStream &)
Creates object from the stream data
Parameters
RReadStream & aStream | Stream where the object's state will be read |
Method()
Gets the encryption method.
NewL(RStringF, const TDesC8 &)
Constructs a new encryption key field.
Parameters
RStringF aMethod | Encryption method from the pre-defined SDP string table. User defined values are not accepted. |
const TDesC8 & aEncryptionKey | A valid encryption key value or an empty descriptor to omit the key part. |
NewLC(RStringF, const TDesC8 &)
Constructs a new encryption key field and adds the pointer to the cleanup stack.
Parameters
RStringF aMethod | Encryption method from the pre-defined SDP string table. User defined values are not accepted. |
const TDesC8 & aEncryptionKey | A valid encryption key value or an empty descriptor to omit the key part. |
SetL(RStringF, const TDesC8 &)
Sets the encryption method and key.
Parameters
RStringF aMethod | Encryption method from the pre-defined SDP string table. User defined values are not accepted. |
const TDesC8 & aEncryptionKey | A valid encryption key value or an empty descriptor to omit the key part. |
SetMethodAndKeyL(RStringF, const TDesC8 &, TBool)
void | SetMethodAndKeyL | ( | RStringF | aMethod, |
| const TDesC8 & | aEncryptionKey, |
| TBool | aAllowEmptyKeyValue |
| ) | [private] |
SetMethodBase64AndKeyL(RStringF, const TDesC8 &)
void | SetMethodBase64AndKeyL | ( | RStringF | aMethod, |
| const TDesC8 & | aText |
| ) | [private] |
SetMethodClearAndKeyL(RStringF, const TDesC8 &)
void | SetMethodClearAndKeyL | ( | RStringF | aMethod, |
| const TDesC8 & | aEncryptionKey |
| ) | [private] |
SetMethodPromptL(RStringF, const TDesC8 &)
SetMethodUriAndKeyL(RStringF, const TDesC8 &)
void | SetMethodUriAndKeyL | ( | RStringF | aMethod, |
| const TDesC8 & | aText |
| ) | [private] |
__DbgTestInvariant()
void | __DbgTestInvariant | ( | ) | const [private] |
operator==(const CSdpKeyField &)
Compares this instance to another for equality.
Member Data Documentation
HBufC8 * iEncryptionKey
HBufC8 * | iEncryptionKey | [private] |
TBool
iMethodOpen
TBool
| iMethodOpen | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.