--- a/contentmgmt/referencedrmagent/RefTestAgent/RefTestAgent/Reftestagentdata.cpp Thu Apr 01 00:24:41 2010 +0300
+++ b/contentmgmt/referencedrmagent/RefTestAgent/RefTestAgent/Reftestagentdata.cpp Wed Apr 14 17:48:59 2010 +0300
@@ -53,31 +53,6 @@
return self;
}
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
-
-CRefTestAgentData* CRefTestAgentData::NewL(const TDesC8& aHeaderData)
- {
- CRefTestAgentData* self = NewLC(aHeaderData);
- CleanupStack::Pop(self);
- return self;
- }
-
-CRefTestAgentData* CRefTestAgentData::NewLC(const TDesC8& aHeaderData)
- {
- CRefTestAgentData* self = new (ELeave) CRefTestAgentData;
- CleanupStack::PushL(self);
- self->ConstructL(aHeaderData);
- return self;
- }
-
-void CRefTestAgentData::ConstructL(const TDesC8& aHeaderData)
- {
- iHeaderData = aHeaderData.AllocL();
- User::LeaveIfError(iServer.Open(aHeaderData));
- }
-#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
-
-
CRefTestAgentData::CRefTestAgentData()
{
}
@@ -85,9 +60,6 @@
CRefTestAgentData::~CRefTestAgentData()
{
iServer.Close();
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
- delete iHeaderData;
-#endif
}
void CRefTestAgentData::ConstructL(const TVirtualPathPtr& aVirtualPath, TContentShareMode aShareMode)
@@ -209,50 +181,22 @@
TInt CRefTestAgentData::GetAttribute(TInt aAttribute, TInt& aValue)
{
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
- if(iHeaderData != NULL)
- return iServer.GetWmdrmAttribute(aAttribute, aValue);
- else
- return iServer.GetAttribute(aAttribute, aValue);
-#else
return iServer.GetAttribute(aAttribute, aValue);
-#endif
}
TInt CRefTestAgentData::GetAttributeSet(RAttributeSet& aAttributeSet)
{
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
- if(iHeaderData != NULL)
- return iServer.GetWmdrmAttributeSet(aAttributeSet);
- else
- return iServer.GetAttributeSet(aAttributeSet);
-#else
return iServer.GetAttributeSet(aAttributeSet);
-#endif
}
TInt CRefTestAgentData::GetStringAttribute(TInt aAttribute, TDes& aValue)
{
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
- if(iHeaderData != NULL)
- return iServer.GetWmdrmStringAttribute(aAttribute, aValue);
- else
- return iServer.GetStringAttribute(aAttribute, aValue);
-#else
return iServer.GetStringAttribute(aAttribute, aValue);
-#endif
}
TInt CRefTestAgentData::GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet)
{
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
- if(iHeaderData != NULL)
- return iServer.GetWmdrmStringAttributeSet(aStringAttributeSet);
- else
- return iServer.GetStringAttributeSet(aStringAttributeSet);
-#else
return iServer.GetStringAttributeSet(aStringAttributeSet);
-#endif
}
#ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API
@@ -282,18 +226,3 @@
// cannot be a situation where the consumer waits for an asynchronous operation to complete
}
-#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
-
-TInt CRefTestAgentData::Read(const TDesC8& aEncryptedInputDataPacket, TDes8& aDecryptedOutputDataPacket)
- {
- return iServer.Read(aEncryptedInputDataPacket, aDecryptedOutputDataPacket);
- }
-
-void CRefTestAgentData::Read(const TDesC8& aEncryptedInputDataPacket, TDes8& aDecryptedOutputDataPacket, TRequestStatus& aStatus)
- {
- TInt err = Read(aEncryptedInputDataPacket, aDecryptedOutputDataPacket);
- TRequestStatus* status = &aStatus;
- User::RequestComplete(status, err);
- }
-
-#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT