diff -r 675a964f4eb5 -r 35751d3474b7 contentmgmt/contentaccessfwfordrm/source/f32agent/f32defaultattributes.h --- a/contentmgmt/contentaccessfwfordrm/source/f32agent/f32defaultattributes.h Tue Jul 21 01:04:32 2009 +0100 +++ b/contentmgmt/contentaccessfwfordrm/source/f32agent/f32defaultattributes.h Thu Sep 10 14:01:51 2009 +0300 @@ -1,65 +1,63 @@ -/* -* 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: -* -*/ - - - - -/** - @file - @internalComponent - @released -*/ - - -#ifndef __F32DEFAULTATTRIBUTES_H__ -#define __F32DEFAULTATTRIBUTES_H__ - -namespace ContentAccess - { - class TVirtualPathPtr; - class RAttributeSet; - class RStringAttributeSet; - - /** - All attribute values are common between the CAgentData, CAgentContent and - CAgentManager. The F32 attributes are mostly fixed anyway so this class - implements helper functions for all of the attribute functions - - @internalComponent - @released - */ - class TF32DefaultAttributes - { - public: - static TInt GetAttribute(TInt aAttribute, TInt& aValue, const TDesC& aUri); - static TInt GetAttributeSet(RAttributeSet& aAttributeSet, const TDesC& aUri); - static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, const TDesC& aUri); - static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, const TDesC& aUri); - static void GetMimeTypeL(const TDesC& aUri, TDes8& aMimeType); - - static TInt GetAttribute(TInt aAttribute, TInt& aValue, RFile& aFile); - static TInt GetAttributeSet(RAttributeSet& aAttributeSet, RFile& aFile); - static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, RFile& aFile); - static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, RFile& aFile); - static void GetMimeTypeL(RFile& aFile, TDes8& aMimeType); - - static TInt CheckUniqueId(const TDesC& aUniqueId); - static TInt CheckVirtualPath(const TVirtualPathPtr& aVirtualPath); - static TUint GetFileMode(TContentShareMode aMode); - }; -} // namespace ContentAccess -#endif // __F32DEFAULTATTRIBUTES_H__ +/* +* 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: +* +*/ + + +/** + @file + @internalComponent + @released +*/ + + +#ifndef __F32DEFAULTATTRIBUTES_H__ +#define __F32DEFAULTATTRIBUTES_H__ + +namespace ContentAccess + { + class TVirtualPathPtr; + class RAttributeSet; + class RStringAttributeSet; + + /** + All attribute values are common between the CAgentData, CAgentContent and + CAgentManager. The F32 attributes are mostly fixed anyway so this class + implements helper functions for all of the attribute functions + + @internalComponent + @released + */ + class TF32DefaultAttributes + { + public: + static TInt GetAttribute(TInt aAttribute, TInt& aValue, const TDesC& aUri); + static TInt GetAttributeSet(RAttributeSet& aAttributeSet, const TDesC& aUri); + static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, const TDesC& aUri); + static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, const TDesC& aUri); + static void GetMimeTypeL(const TDesC& aUri, TDes8& aMimeType); + + static TInt GetAttribute(TInt aAttribute, TInt& aValue, RFile& aFile); + static TInt GetAttributeSet(RAttributeSet& aAttributeSet, RFile& aFile); + static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, RFile& aFile); + static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, RFile& aFile); + static void GetMimeTypeL(RFile& aFile, TDes8& aMimeType); + + static TInt CheckUniqueId(const TDesC& aUniqueId); + static TInt CheckVirtualPath(const TVirtualPathPtr& aVirtualPath); + static TUint GetFileMode(TContentShareMode aMode); + }; +} // namespace ContentAccess +#endif // __F32DEFAULTATTRIBUTES_H__