diff -r afc583cfa176 -r da2ae96f639b contentmgmt/contentaccessfwfordrm/source/caf/attribute.cpp --- a/contentmgmt/contentaccessfwfordrm/source/caf/attribute.cpp Fri Oct 02 13:15:59 2009 +0300 +++ b/contentmgmt/contentaccessfwfordrm/source/caf/attribute.cpp Mon Oct 12 10:17:04 2009 +0300 @@ -47,6 +47,16 @@ self->ConstructL(aAgentUid, aURI, aShareMode); return self; } + +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT +CAttribute* CAttribute::NewLC(TUid aAgentUid, const TDesC8& aHeaderData) + { + CAttribute* self = new(ELeave) CAttribute(); + CleanupStack::PushL(self); + self->ConstructL(aAgentUid, aHeaderData); + return self; + } +#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT CAttribute::CAttribute() { @@ -84,7 +94,17 @@ iResponseSet = CBitset::NewL(static_cast(KAttrTop)); } +#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT +void CAttribute::ConstructL(TUid aAgentUid, const TDesC8& aHeaderData) + { + // create a agent factory implementation (pseudo ECOM handle) + iAgentFactory = CAgentFactory::NewL(aAgentUid); + iAgentContent = iAgentFactory->CreateContentBrowserL(aHeaderData); + iQuerySet = CBitset::NewL(static_cast(KAttrTop)); + iResponseSet = CBitset::NewL(static_cast(KAttrTop)); + } +#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT EXPORT_C void CAttribute::Reset() {