27
|
1 |
// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
//
|
|
15 |
|
|
16 |
/**
|
|
17 |
@file
|
|
18 |
@internalComponent
|
|
19 |
*/
|
|
20 |
|
|
21 |
#ifndef HCTLUSBORIGINALPOLICY_H
|
|
22 |
#define HCTLUSBORIGINALPOLICY_H
|
|
23 |
|
|
24 |
#include <e32def.h>
|
|
25 |
#include <hctlusboriginalipc.h>
|
|
26 |
|
|
27 |
/** HCTL USB Original Server Security Policy Definition */
|
|
28 |
const TUint KHCTLUsbOriginalRangeCount = 2;
|
|
29 |
|
|
30 |
const TInt KHCTLUsbOriginalRanges[KHCTLUsbOriginalRangeCount] =
|
|
31 |
{
|
|
32 |
EFunctionAttached, // FDF SID
|
|
33 |
// EFunctionDetached,
|
|
34 |
ENumHctlUsbOriginalSrvFuncs, // not supported
|
|
35 |
};
|
|
36 |
|
|
37 |
/** Index numbers into KHCTLUsbOriginalElements[] */
|
|
38 |
const TInt KPolicyFdfSid = 0;
|
|
39 |
|
|
40 |
/** Mapping IPCs to policy element */
|
|
41 |
const TUint8 KHCTLUsbOriginalElementsIndex[KHCTLUsbOriginalRangeCount] =
|
|
42 |
{
|
|
43 |
KPolicyFdfSid, // All (valid) APIs
|
|
44 |
CPolicyServer::ENotSupported // Undefined functions
|
|
45 |
};
|
|
46 |
|
|
47 |
/** Individual policy elements */
|
|
48 |
const CPolicyServer::TPolicyElement KHCTLUsbOriginalElements[] =
|
|
49 |
{
|
|
50 |
{ _INIT_SECURITY_POLICY_S0(0x10282b48) },
|
|
51 |
};
|
|
52 |
|
|
53 |
/** Main policy */
|
|
54 |
const CPolicyServer::TPolicy KHCTLUsbOriginalPolicy =
|
|
55 |
{
|
|
56 |
KPolicyFdfSid, // connection requirements
|
|
57 |
KHCTLUsbOriginalRangeCount,
|
|
58 |
KHCTLUsbOriginalRanges,
|
|
59 |
KHCTLUsbOriginalElementsIndex,
|
|
60 |
KHCTLUsbOriginalElements,
|
|
61 |
};
|
|
62 |
|
|
63 |
#endif // HCTLUSBORIGINALPOLICY_H
|