kerneltest/e32test/usb/t_usb_device/include/tranhandleserversecuritypolicy.h
changeset 247 d8d70de2bd36
equal deleted inserted replaced
201:43365a9b78a3 247:d8d70de2bd36
       
     1 /*
       
     2 * Copyright (c) 2010 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 "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  @file 
       
    20  @internalComponent
       
    21 */
       
    22  
       
    23 #ifndef TRANHANDLESERVERSECURITYPOLICY_H
       
    24 #define TRANHANDLESERVERSECURITYPOLICY_H
       
    25 
       
    26 #include <e32base.h>
       
    27 #include "tranhandleserverconsts.h"
       
    28 
       
    29 const TInt KTranHanleServerRanges[] = 
       
    30     {
       
    31     ETransferHandle,             /** pass */
       
    32     ENotSupport,        /** fail (to KMaxTInt) */
       
    33     };
       
    34 
       
    35 const TUint KTranHanleServerRangeCount = sizeof(KTranHanleServerRanges) / sizeof(KTranHanleServerRanges[0]);
       
    36 
       
    37 const TInt KPolicyPass = 0;
       
    38 
       
    39 const TUint8 KTranHanleServerElementsIndex[KTranHanleServerRangeCount] = 
       
    40     {
       
    41     KPolicyPass,                  /** All (valid) APIs */
       
    42     CPolicyServer::ENotSupported,   /** remainder of possible IPCs */
       
    43     };
       
    44 
       
    45 
       
    46 const CPolicyServer::TPolicyElement KTranHanleServerElements[] = 
       
    47     {
       
    48         { 
       
    49         _INIT_SECURITY_POLICY_PASS
       
    50         },
       
    51     };
       
    52 
       
    53 /** Main policy */
       
    54 const CPolicyServer::TPolicy KTranHandleServerPolicy = 
       
    55     {
       
    56     CPolicyServer::EAlwaysPass, /** Specifies all connect attempts should pass */
       
    57     KTranHanleServerRangeCount,
       
    58     KTranHanleServerRanges,
       
    59     KTranHanleServerElementsIndex,
       
    60     KTranHanleServerElements,
       
    61     };
       
    62     
       
    63 #endif // TRANHANDLESERVERSECURITYPOLICY_H