javacommons/security/legacysupport/midp2securitypolicyv2/plugins/securitypolicyV2/src/Permission.cpp
branchRCL_3
changeset 19 04becd199f91
equal deleted inserted replaced
16:f5050f1da672 19:04becd199f91
       
     1 /*
       
     2 * Copyright (c) 2003 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 /**
       
    20  *
       
    21  * @file Permission.cpp
       
    22  *
       
    23  * @internal
       
    24  *
       
    25  */
       
    26 
       
    27 #include "Permission.h"
       
    28 
       
    29 /**
       
    30  *
       
    31  * @internal
       
    32  *
       
    33  * A concrete implementation of the MPermission interface.
       
    34  *
       
    35  * @see MPermission
       
    36  *
       
    37  */
       
    38 
       
    39 namespace MIDP
       
    40 {
       
    41 
       
    42 CPermission::CPermission(const TDesC& aName, TType aType, TMode aMode):
       
    43         iName(aName),
       
    44         iType(aType),
       
    45         iMode(aMode)
       
    46 {
       
    47 }
       
    48 
       
    49 CPermission::~CPermission()
       
    50 {
       
    51 }
       
    52 
       
    53 const TDesC& CPermission::Name(void) const
       
    54 {
       
    55     return iName;
       
    56 }
       
    57 
       
    58 MPermission::TType CPermission::Type(void) const
       
    59 {
       
    60     return iType;
       
    61 }
       
    62 
       
    63 MPermission::TMode CPermission::Mode(void) const
       
    64 {
       
    65     return iMode;
       
    66 }
       
    67 
       
    68 } // end of namespace MIDP
       
    69