contentmgmt/contentaccessfwfordrm/source/caf/attribute.cpp
changeset 15 da2ae96f639b
parent 8 35751d3474b7
child 45 030c4fbc13d7
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
    45 	CAttribute* self = new(ELeave) CAttribute();
    45 	CAttribute* self = new(ELeave) CAttribute();
    46 	CleanupStack::PushL(self);
    46 	CleanupStack::PushL(self);
    47 	self->ConstructL(aAgentUid, aURI, aShareMode);
    47 	self->ConstructL(aAgentUid, aURI, aShareMode);
    48 	return self;
    48 	return self;
    49 	}
    49 	}
       
    50 	
       
    51 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
    52 CAttribute* CAttribute::NewLC(TUid aAgentUid, const TDesC8& aHeaderData)
       
    53 	{
       
    54 	CAttribute* self = new(ELeave) CAttribute();
       
    55 	CleanupStack::PushL(self);
       
    56 	self->ConstructL(aAgentUid, aHeaderData);
       
    57 	return self;
       
    58 	}
       
    59 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
    50 
    60 
    51 CAttribute::CAttribute()
    61 CAttribute::CAttribute()
    52 	{
    62 	{
    53 	}
    63 	}
    54 
    64 
    82 
    92 
    83 	iQuerySet = CBitset::NewL(static_cast<TInt>(KAttrTop));
    93 	iQuerySet = CBitset::NewL(static_cast<TInt>(KAttrTop));
    84 	iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop));
    94 	iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop));
    85     }
    95     }
    86 
    96 
       
    97 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
    98 void CAttribute::ConstructL(TUid aAgentUid, const TDesC8& aHeaderData)
       
    99 	{
       
   100 	// create a agent factory implementation (pseudo ECOM handle)
       
   101 	iAgentFactory = CAgentFactory::NewL(aAgentUid);
       
   102 	iAgentContent = iAgentFactory->CreateContentBrowserL(aHeaderData);
    87 
   103 
       
   104 	iQuerySet = CBitset::NewL(static_cast<TInt>(KAttrTop));
       
   105 	iResponseSet = CBitset::NewL(static_cast<TInt>(KAttrTop));
       
   106     }
       
   107 #endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
    88 
   108 
    89 EXPORT_C void CAttribute::Reset()
   109 EXPORT_C void CAttribute::Reset()
    90 	{
   110 	{
    91 	iQuerySet->Reset();
   111 	iQuerySet->Reset();
    92 	iResponseSet->Reset();
   112 	iResponseSet->Reset();