void CMMAAudioRecorderFactory::GetSupportedContentTypesL(
    const TDesC& aProtocol,
    CDesC16Array& aMimeTypeArray)
{
    // protocol is empty string all types must be returned.
    if (IsSupportedProtocolL(aProtocol) ||
            (aProtocol == KNullDesC))
    {
        // get supported types from MMF
        CMMAMMFPlayerFactory::GetSupportedContentTypesL(aProtocol,
                aMimeTypeArray);

        // "audio/mp4" content type must not be supported
        // for capture protocol
        if (aProtocol == KCaptureProtocol)
        {
            TInt position(0);
            TInt err = aMimeTypeArray.Find(KContentTypeAudioMp4NotIncluded, position);
            if (err == KErrNone)
            {
                aMimeTypeArray.Delete(position);
                aMimeTypeArray.Compress();
            }
        }
    }
}
void CSmsStatusReplierImpl::SetStatus(const TDesC& aName, const TDesC& aValue)
{
	TInt pos;
	if (iNames->Find(aName, pos) == 0) {
		iValues->Delete(pos);
		iValues->InsertL(pos, aValue);
	} else {
		iNames->AppendL(aName);
		iValues->AppendL(aValue);
	}
}