meetingrequest/mrgui/mrfieldbuilderplugin/src/cesmrpriority.cpp
changeset 0 8466d47a6819
child 16 4ce476e64c59
equal deleted inserted replaced
-1:000000000000 0:8466d47a6819
       
     1 /*
       
     2 * Copyright (c) 2007 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:  ESMR priority implementation
       
    15  *
       
    16 */
       
    17 
       
    18 
       
    19 #include "emailtrace.h"
       
    20 #include "cesmrpriority.h"
       
    21 #include <barsread.h>
       
    22 #include <StringLoader.h>
       
    23 
       
    24 // ---------------------------------------------------------------------------
       
    25 // CESMRPriority::CESMRPriority
       
    26 // ---------------------------------------------------------------------------
       
    27 //
       
    28 CESMRPriority::CESMRPriority( )
       
    29     {
       
    30     FUNC_LOG;
       
    31     }
       
    32 
       
    33 // ---------------------------------------------------------------------------
       
    34 // CESMRPriority::~CESMRPriority
       
    35 // ---------------------------------------------------------------------------
       
    36 //
       
    37 CESMRPriority::~CESMRPriority( )
       
    38     {
       
    39     FUNC_LOG;
       
    40     delete iText;
       
    41     }
       
    42 
       
    43 // ---------------------------------------------------------------------------
       
    44 // CESMRPriority::ConstructFromResourceL
       
    45 // ---------------------------------------------------------------------------
       
    46 //
       
    47 void CESMRPriority::ConstructFromResourceL( TResourceReader& aReader )
       
    48     {
       
    49     FUNC_LOG;
       
    50     iId = aReader.ReadInt16 ( );
       
    51     TInt textId = aReader.ReadInt32 ( );
       
    52     iText = StringLoader::LoadL ( textId );
       
    53     }
       
    54 
       
    55 // ---------------------------------------------------------------------------
       
    56 // CESMRPriority::Text
       
    57 // ---------------------------------------------------------------------------
       
    58 //
       
    59 const TDesC& CESMRPriority::Text( )
       
    60     {
       
    61     FUNC_LOG;
       
    62     return *iText;
       
    63     }
       
    64 
       
    65 // ---------------------------------------------------------------------------
       
    66 // CESMRPriority::Id
       
    67 // ---------------------------------------------------------------------------
       
    68 //
       
    69 TFSCalenMRPriority CESMRPriority::Id( )
       
    70     {
       
    71     FUNC_LOG;
       
    72     return static_cast<TFSCalenMRPriority>( iId );
       
    73     }
       
    74 
       
    75 // EOF
       
    76