contentmgmt/contentaccessfwfordrm/source/caf/Agentfactory.cpp
changeset 15 da2ae96f639b
parent 8 35751d3474b7
child 45 030c4fbc13d7
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
   120 EXPORT_C void CAgentManager::DisplayInfoL (TDisplayInfo /* aInfo */, RFile& /* aFile */, const TDesC& /* aUniqueId */)
   120 EXPORT_C void CAgentManager::DisplayInfoL (TDisplayInfo /* aInfo */, RFile& /* aFile */, const TDesC& /* aUniqueId */)
   121 	{
   121 	{
   122 	User::Leave(KErrCANotSupported);
   122 	User::Leave(KErrCANotSupported);
   123 	}
   123 	}
   124 
   124 
       
   125 #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
       
   126 	
       
   127 EXPORT_C TInt CAgentData::Read(const TDesC8& /*aEncryptedInputDataPacket*/, TDes8& /*aDecryptedOutputDataPacket*/)
       
   128 	{
       
   129  	return KErrCANotSupported;
       
   130  	}
       
   131  	
       
   132 EXPORT_C void CAgentData::Read(const TDesC8& /*aEncryptedInputDataPacket*/, TDes8& /*aDecryptedOutputDataPacket*/, TRequestStatus& aStatus)
       
   133  	{
       
   134  	TRequestStatus* status = &aStatus;
       
   135   	User::RequestComplete(status, KErrCANotSupported);
       
   136  	}
       
   137  	
       
   138 EXPORT_C TBool CAgentManager::IsRecognizedL(const TDesC8& /*aHeaderData*/) const
       
   139  	{
       
   140   	return EFalse;
       
   141  	}
       
   142  	
       
   143 EXPORT_C TBool CAgentManager::RecognizeContentL(const TDesC8& /*aHeaderData*/, TDes8& aFileMimeType, TDes8& aContentMimeType) const
       
   144 	{
       
   145 	aFileMimeType.Copy(KNullDesC8());
       
   146 	aContentMimeType.Copy(KNullDesC8());
       
   147  	return EFalse;
       
   148 	}
       
   149 	
       
   150 EXPORT_C TInt CAgentManager::GetAttribute(const TDesC8& /*aHeaderData*/, TInt /*aAttribute*/, TInt& /*aValue*/)
       
   151 	{
       
   152 	return KErrCANotSupported;
       
   153 	}
       
   154 
       
   155 EXPORT_C TInt CAgentManager::GetAttributeSet(const TDesC8& /*aHeaderData*/, RAttributeSet& /*aAttributeSet*/)
       
   156 	{
       
   157 	return KErrCANotSupported;
       
   158 	}
       
   159 	
       
   160 EXPORT_C TInt CAgentManager::GetStringAttribute(const TDesC8& /*aHeaderData*/, TInt /*aAttribute*/, TDes& /*aValue*/)
       
   161 	{
       
   162 	return KErrCANotSupported;
       
   163 	}
       
   164 	
       
   165 EXPORT_C TInt CAgentManager::GetStringAttributeSet(const TDesC8& /*aHeaderData*/, RStringAttributeSet& /*aStringAttributeSet*/)
       
   166 	{
       
   167 	return KErrCANotSupported;
       
   168 	}
       
   169  	
       
   170 EXPORT_C CAgentData* CAgentFactory::CreateDataConsumerL(const TDesC8& /*aHeaderData*/)
       
   171  	{
       
   172  	User::Leave(KErrCANotSupported);
       
   173  	// cannot reach here. The return statement is added to avoid warning.
       
   174  	return NULL;
       
   175   	}
       
   176  		
       
   177 EXPORT_C CAgentContent* CAgentFactory::CreateContentBrowserL(const TDesC8& /*aHeaderData*/)
       
   178  	{
       
   179  	User::Leave(KErrCANotSupported);
       
   180  	// cannot be reach here . The return statement is added to avoid warning.
       
   181  	return NULL;
       
   182  	}
       
   183  	
       
   184 
       
   185 #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT