sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
*
|
sl@0
|
16 |
*/
|
sl@0
|
17 |
|
sl@0
|
18 |
|
sl@0
|
19 |
/**
|
sl@0
|
20 |
@file
|
sl@0
|
21 |
@internalComponent
|
sl@0
|
22 |
@released
|
sl@0
|
23 |
*/
|
sl@0
|
24 |
|
sl@0
|
25 |
|
sl@0
|
26 |
#ifndef __F32DEFAULTATTRIBUTES_H__
|
sl@0
|
27 |
#define __F32DEFAULTATTRIBUTES_H__
|
sl@0
|
28 |
|
sl@0
|
29 |
namespace ContentAccess
|
sl@0
|
30 |
{
|
sl@0
|
31 |
class TVirtualPathPtr;
|
sl@0
|
32 |
class RAttributeSet;
|
sl@0
|
33 |
class RStringAttributeSet;
|
sl@0
|
34 |
|
sl@0
|
35 |
/**
|
sl@0
|
36 |
All attribute values are common between the CAgentData, CAgentContent and
|
sl@0
|
37 |
CAgentManager. The F32 attributes are mostly fixed anyway so this class
|
sl@0
|
38 |
implements helper functions for all of the attribute functions
|
sl@0
|
39 |
|
sl@0
|
40 |
@internalComponent
|
sl@0
|
41 |
@released
|
sl@0
|
42 |
*/
|
sl@0
|
43 |
class TF32DefaultAttributes
|
sl@0
|
44 |
{
|
sl@0
|
45 |
public:
|
sl@0
|
46 |
static TInt GetAttribute(TInt aAttribute, TInt& aValue, const TDesC& aUri);
|
sl@0
|
47 |
static TInt GetAttributeSet(RAttributeSet& aAttributeSet, const TDesC& aUri);
|
sl@0
|
48 |
static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, const TDesC& aUri);
|
sl@0
|
49 |
static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, const TDesC& aUri);
|
sl@0
|
50 |
static void GetMimeTypeL(const TDesC& aUri, TDes8& aMimeType);
|
sl@0
|
51 |
|
sl@0
|
52 |
static TInt GetAttribute(TInt aAttribute, TInt& aValue, RFile& aFile);
|
sl@0
|
53 |
static TInt GetAttributeSet(RAttributeSet& aAttributeSet, RFile& aFile);
|
sl@0
|
54 |
static TInt GetStringAttribute(TInt aAttribute, TDes& aValue, RFile& aFile);
|
sl@0
|
55 |
static TInt GetStringAttributeSet(RStringAttributeSet& aStringAttributeSet, RFile& aFile);
|
sl@0
|
56 |
static void GetMimeTypeL(RFile& aFile, TDes8& aMimeType);
|
sl@0
|
57 |
|
sl@0
|
58 |
#ifdef SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
59 |
static TInt GetAttribute(const TDesC8& aHeaderData, TInt aAttribute, TInt& aValue);
|
sl@0
|
60 |
static TInt GetAttributeSet(const TDesC8& aHeaderData, RAttributeSet& aAttributeSet);
|
sl@0
|
61 |
static TInt GetStringAttribute(const TDesC8& aHeaderData, TInt aAttribute, TDes& aValue);
|
sl@0
|
62 |
static TInt GetStringAttributeSet(const TDesC8& aHeaderData, RStringAttributeSet& aStringAttributeSet);
|
sl@0
|
63 |
#endif //SYMBIAN_ENABLE_SDP_WMDRM_SUPPORT
|
sl@0
|
64 |
|
sl@0
|
65 |
static TInt CheckUniqueId(const TDesC& aUniqueId);
|
sl@0
|
66 |
static TInt CheckVirtualPath(const TVirtualPathPtr& aVirtualPath);
|
sl@0
|
67 |
static TUint GetFileMode(TContentShareMode aMode);
|
sl@0
|
68 |
};
|
sl@0
|
69 |
} // namespace ContentAccess
|
sl@0
|
70 |
#endif // __F32DEFAULTATTRIBUTES_H__
|