sl@0: /* sl@0: * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of the License "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: using namespace ContentAccess; sl@0: sl@0: sl@0: CAgentFactory* CAgentFactory::NewL(TUid aUid) sl@0: { sl@0: return static_cast (REComSession::CreateImplementationL(aUid, _FOFF(CAgentFactory,iEcomKey))); sl@0: } sl@0: sl@0: sl@0: EXPORT_C CAgentFactory::~CAgentFactory() sl@0: { sl@0: // Finished with ECOM session so destroy implementation pointer sl@0: // iEcomKey was set by ECOM during construction sl@0: // This may cause the agent DLL to unload sl@0: REComSession::DestroyedImplementation(iEcomKey); sl@0: } sl@0: sl@0: sl@0: // default implementations sl@0: sl@0: EXPORT_C TInt CAgentManager::RenameDir(const TDesC& /*aOldName*/, const TDesC& /* aNewName */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C void CAgentImportFile::Cancel() sl@0: { sl@0: // default implementation does nothing sl@0: } sl@0: EXPORT_C TBool CAgentImportFile::ContentMimeTypeL(TDes8& /*aContentMime*/) sl@0: { sl@0: User::Leave(KErrCANotSupported); sl@0: return EFalse; sl@0: } sl@0: EXPORT_C TInt CAgentManager::CopyFile(RFile& /* aSource */, const TDesC& /* aDestination */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentData::Read(TInt /* aPos */, TDes8& /* aDes */, TInt /* aLength */, TRequestStatus& /* aStatus */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: #ifdef SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API sl@0: EXPORT_C TInt CAgentData::Read64(TInt64 /* aPos */, TDes8& /* aDes */, TInt /* aLength */, TRequestStatus& /* aStatus */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C void CAgentData::DataSize64L(TInt64& /*aSize*/) sl@0: { sl@0: User::Leave(KErrCANotSupported); sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentData::Seek64(TSeek /*aMode*/, TInt64& /*aPos*/) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: #endif // SYMBIAN_ENABLE_64_BIT_FILE_SERVER_API sl@0: sl@0: EXPORT_C void CAgentData::ReadCancel(TRequestStatus&) sl@0: { sl@0: } sl@0: sl@0: EXPORT_C void CAgentRightsManager::ListRightsL(RStreamablePtrArray& /* aArray */, RFile& /* aFile */, const TDesC& /* aUniqueId */) const sl@0: { sl@0: User::Leave(KErrCANotSupported); sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentRightsManager::DeleteAllRightsObjects (RFile& /* aFile */, const TDesC& /* aUniqueId */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetAttribute(TInt /* aAttribute */, TInt& /* aValue */, RFile& /* aFile */, const TDesC& /* aUniqueId */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetAttributeSet(RAttributeSet& /* aAttributeSet */, RFile& /* aFile */, const TDesC& /* aUniqueId */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetStringAttribute(TInt /* aAttribute */, TDes& /* aValue */, RFile& /* aFile */, const TDesC& /* aUniqueId */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetStringAttributeSet(RStringAttributeSet& /* aStringAttributeSet */, RFile& /* aFile */, const TDesC& /* aUniqueId */) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C void CAgentManager::DisplayInfoL (TDisplayInfo /* aInfo */, RFile& /* aFile */, const TDesC& /* aUniqueId */) sl@0: { sl@0: User::Leave(KErrCANotSupported); sl@0: } sl@0: sl@0: #ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT sl@0: sl@0: EXPORT_C TInt CAgentData::Read(const TDesC8& /*aEncryptedInputDataPacket*/, TDes8& /*aDecryptedOutputDataPacket*/) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C void CAgentData::Read(const TDesC8& /*aEncryptedInputDataPacket*/, TDes8& /*aDecryptedOutputDataPacket*/, TRequestStatus& aStatus) sl@0: { sl@0: TRequestStatus* status = &aStatus; sl@0: User::RequestComplete(status, KErrCANotSupported); sl@0: } sl@0: sl@0: EXPORT_C TBool CAgentManager::IsRecognizedL(const TDesC8& /*aHeaderData*/) const sl@0: { sl@0: return EFalse; sl@0: } sl@0: sl@0: EXPORT_C TBool CAgentManager::RecognizeContentL(const TDesC8& /*aHeaderData*/, TDes8& aFileMimeType, TDes8& aContentMimeType) const sl@0: { sl@0: aFileMimeType.Copy(KNullDesC8()); sl@0: aContentMimeType.Copy(KNullDesC8()); sl@0: return EFalse; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetAttribute(const TDesC8& /*aHeaderData*/, TInt /*aAttribute*/, TInt& /*aValue*/) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetAttributeSet(const TDesC8& /*aHeaderData*/, RAttributeSet& /*aAttributeSet*/) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetStringAttribute(const TDesC8& /*aHeaderData*/, TInt /*aAttribute*/, TDes& /*aValue*/) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C TInt CAgentManager::GetStringAttributeSet(const TDesC8& /*aHeaderData*/, RStringAttributeSet& /*aStringAttributeSet*/) sl@0: { sl@0: return KErrCANotSupported; sl@0: } sl@0: sl@0: EXPORT_C CAgentData* CAgentFactory::CreateDataConsumerL(const TDesC8& /*aHeaderData*/) sl@0: { sl@0: User::Leave(KErrCANotSupported); sl@0: // cannot reach here. The return statement is added to avoid warning. sl@0: return NULL; sl@0: } sl@0: sl@0: EXPORT_C CAgentContent* CAgentFactory::CreateContentBrowserL(const TDesC8& /*aHeaderData*/) sl@0: { sl@0: User::Leave(KErrCANotSupported); sl@0: // cannot be reach here . The return statement is added to avoid warning. sl@0: return NULL; sl@0: } sl@0: sl@0: sl@0: #endif //#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT