contentmgmt/referencedrmagent/TestAgent/testagentattributes.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 12 Oct 2009 10:17:04 +0300
changeset 15 da2ae96f639b
permissions -rw-r--r--
Revision: 200941 Kit: 200941

/*
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: 
*
*/


#ifndef __TESTAGENTATTRIBUTES_H__
#define __TESTAGENTATTRIBUTES_H__

#include <caf/virtualpathptr.h>
#include <caf/attributeset.h>
#include <caf/stringattributeset.h>
#include "TestAgentFileInterface.h"

	/**
	All attribute values are common between the CAgentData, CAgentContent and
	CAgentManager. The OMA DCF attributes are mostly fixed anyway so this class
	implements helper functions for all of the attribute functions

	 */
class TTestAgentAttributes
		{
	public:
		static TInt GetAttributeSet(CTestAgentFileInterface& aFile, ContentAccess::RAttributeSet& aAttributeSet);
		static TInt GetStringAttributeSet(CTestAgentFileInterface& aFile, ContentAccess::RStringAttributeSet& aStringAttributeSet);
		static TInt CheckUniqueId(const TDesC& aUniqueId);
		static TInt CheckVirtualPath(const ContentAccess::TVirtualPathPtr& aVirtualPath);	

		// global helper function to intercept files in private directories
		static void GetDummyFileName(const TDesC& aFilename, TDes& aActualFileName);
		};



#endif // __TESTAGENTATTRIBUTES_H__