contentmgmt/contentaccessfwfordrm/source/f32agent/f32defaultattributes.h
changeset 0 2c201484c85f
child 8 35751d3474b7
equal deleted inserted replaced
-1:000000000000 0:2c201484c85f
       
     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 
       
    20 
       
    21 /**
       
    22  @file
       
    23  @internalComponent
       
    24  @released
       
    25 */
       
    26 
       
    27 
       
    28 #ifndef __F32DEFAULTATTRIBUTES_H__
       
    29 #define __F32DEFAULTATTRIBUTES_H__
       
    30 
       
    31 namespace ContentAccess
       
    32 	{
       
    33 	class TVirtualPathPtr;
       
    34 	class RAttributeSet;
       
    35 	class RStringAttributeSet;
       
    36 
       
    37 	/**
       
    38 	All attribute values are common between the CAgentData, CAgentContent and
       
    39 	CAgentManager. The F32 attributes are mostly fixed anyway so this class
       
    40 	implements helper functions for all of the attribute functions
       
    41 		 
       
    42 	 @internalComponent
       
    43 	 @released
       
    44 	 */
       
    45 	class TF32DefaultAttributes
       
    46 		{
       
    47 	public:
       
    48 		static TInt GetAttribute(TInt aAttribute, TInt& aValue, const TDesC& aUri);
       
    49 		static TInt GetAttributeSet(RAttributeSet& aAttributeSet, const TDesC& aUri);
       
    50 		static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, const TDesC& aUri);
       
    51 		static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, const TDesC& aUri);
       
    52 		static void GetMimeTypeL(const TDesC& aUri, TDes8& aMimeType);
       
    53 		
       
    54 		static TInt GetAttribute(TInt aAttribute, TInt& aValue, RFile& aFile);
       
    55 		static TInt GetAttributeSet(RAttributeSet& aAttributeSet, RFile& aFile);
       
    56 		static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, RFile& aFile);
       
    57 		static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, RFile& aFile);
       
    58 		static void GetMimeTypeL(RFile& aFile, TDes8& aMimeType);
       
    59 		
       
    60 		static TInt CheckUniqueId(const TDesC& aUniqueId);
       
    61 		static TInt CheckVirtualPath(const TVirtualPathPtr& aVirtualPath);	
       
    62 		static TUint GetFileMode(TContentShareMode aMode);
       
    63 		};
       
    64 } // namespace ContentAccess
       
    65 #endif // __F32DEFAULTATTRIBUTES_H__