contentmgmt/contentaccessfwfordrm/source/caf/attribute.cpp
changeset 15 da2ae96f639b
parent 8 35751d3474b7
child 45 030c4fbc13d7
--- 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<TInt>(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<TInt>(KAttrTop));
+	iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop));
+    }
+#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
 
 EXPORT_C void CAttribute::Reset()
 	{