taskswitcher/server/src/tsmodelitemkeymsg.cpp
changeset 116 305818acdca4
child 127 7b66bc3c6dc9
equal deleted inserted replaced
112:dbfb5e38438b 116:305818acdca4
       
     1 /*
       
     2 * Copyright (c) 2008 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:  Task list entry
       
    15 *
       
    16 */
       
    17 #include <s32mem.h>
       
    18 #include "tsmodelitemkeymsg.h"
       
    19 
       
    20 // -----------------------------------------------------------------------------
       
    21 CTsModelItemKeyMsg* CTsModelItemKeyMsg::NewLC( RReadStream& aStream )
       
    22     {
       
    23     CTsModelItemKeyMsg* self = new (ELeave)CTsModelItemKeyMsg();
       
    24     CleanupStack::PushL( self );
       
    25     self->ConstructL( aStream );
       
    26     return self;
       
    27     }
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 CTsModelItemKeyMsg::~CTsModelItemKeyMsg()
       
    31     {
       
    32     //No implementation required
       
    33     }
       
    34 
       
    35 // -----------------------------------------------------------------------------
       
    36 TTsModelItemKey CTsModelItemKeyMsg::Key() const
       
    37 {
       
    38     return iKey;
       
    39 }
       
    40 
       
    41 // -----------------------------------------------------------------------------
       
    42 void CTsModelItemKeyMsg::InternalizeL( RReadStream& aStream )
       
    43     {
       
    44     aStream >> iKey;
       
    45     }
       
    46 
       
    47 // -----------------------------------------------------------------------------
       
    48 CTsModelItemKeyMsg::CTsModelItemKeyMsg()
       
    49     {
       
    50     //No implementation required
       
    51     }
       
    52 
       
    53 // -----------------------------------------------------------------------------
       
    54 void CTsModelItemKeyMsg::ConstructL( RReadStream& aStream )
       
    55 {
       
    56     aStream >> ( *this );
       
    57 }
       
    58