contentmgmt/referencedrmagent/TestAgent/testagentattributes.h
changeset 15 da2ae96f639b
equal deleted inserted replaced
10:afc583cfa176 15:da2ae96f639b
       
     1 /*
       
     2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef __TESTAGENTATTRIBUTES_H__
       
    20 #define __TESTAGENTATTRIBUTES_H__
       
    21 
       
    22 #include <caf/virtualpathptr.h>
       
    23 #include <caf/attributeset.h>
       
    24 #include <caf/stringattributeset.h>
       
    25 #include "TestAgentFileInterface.h"
       
    26 
       
    27 	/**
       
    28 	All attribute values are common between the CAgentData, CAgentContent and
       
    29 	CAgentManager. The OMA DCF attributes are mostly fixed anyway so this class
       
    30 	implements helper functions for all of the attribute functions
       
    31 
       
    32 	 */
       
    33 class TTestAgentAttributes
       
    34 		{
       
    35 	public:
       
    36 		static TInt GetAttributeSet(CTestAgentFileInterface& aFile, ContentAccess::RAttributeSet& aAttributeSet);
       
    37 		static TInt GetStringAttributeSet(CTestAgentFileInterface& aFile, ContentAccess::RStringAttributeSet& aStringAttributeSet);
       
    38 		static TInt CheckUniqueId(const TDesC& aUniqueId);
       
    39 		static TInt CheckVirtualPath(const ContentAccess::TVirtualPathPtr& aVirtualPath);	
       
    40 
       
    41 		// global helper function to intercept files in private directories
       
    42 		static void GetDummyFileName(const TDesC& aFilename, TDes& aActualFileName);
       
    43 		};
       
    44 
       
    45 
       
    46 
       
    47 #endif // __TESTAGENTATTRIBUTES_H__