imstutils/imconversationview/imcvuiapp/src/cimcvcommandinfo.cpp
changeset 15 81eeb8c83ce5
parent 0 5e5d6b214f4f
equal deleted inserted replaced
0:5e5d6b214f4f 15:81eeb8c83ce5
     1 /*
       
     2 * Copyright (c) 2007-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:   command info
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <barsread.h>
       
    20 #include "cimcvcommandinfo.h"
       
    21 
       
    22 
       
    23 // ==================== MEMBER FUNCTIONS ====================
       
    24 // ----------------------------------------------------------------------------
       
    25 // CIMCVCommandInfo::CIMCVCommandInfo
       
    26 // ----------------------------------------------------------------------------
       
    27 //
       
    28 CIMCVCommandInfo::CIMCVCommandInfo( TInt32 aPluginId ) : iPluginId( aPluginId )   
       
    29     {
       
    30     }
       
    31 // ----------------------------------------------------------------------------
       
    32 // CIMCVCommandInfo::~CIMCVCommandInfo
       
    33 // ----------------------------------------------------------------------------
       
    34 //
       
    35 CIMCVCommandInfo::~CIMCVCommandInfo()
       
    36     { 
       
    37     }
       
    38 // ----------------------------------------------------------------------------
       
    39 // CIMCVCommandInfo::NewLC
       
    40 // ----------------------------------------------------------------------------
       
    41 //
       
    42 CIMCVCommandInfo* CIMCVCommandInfo::NewLC( TResourceReader& aReader,
       
    43                                     TInt32 aPluginId,
       
    44         							TInt& aNewCommandIds )
       
    45     {
       
    46     CIMCVCommandInfo* self = new (ELeave) CIMCVCommandInfo( aPluginId );
       
    47     CleanupStack::PushL(self);
       
    48     self->ConstructL( aReader, aNewCommandIds );
       
    49     return self;
       
    50     }
       
    51 // ----------------------------------------------------------------------------
       
    52 // CIMCVCommandInfo::ConstructL
       
    53 // ----------------------------------------------------------------------------
       
    54 //    
       
    55 void CIMCVCommandInfo::ConstructL( TResourceReader& aReader,
       
    56         						TInt& aNewCommandIds )
       
    57     {
       
    58     iOldCommandId = aReader.ReadInt32();
       
    59     iNewCommandId = aNewCommandIds++;    
       
    60     }
       
    61 // ----------------------------------------------------------------------------
       
    62 // CIMCVCommandInfo::PliginId
       
    63 // ----------------------------------------------------------------------------
       
    64 //   
       
    65 TInt32 CIMCVCommandInfo::PluginId() const
       
    66 	{
       
    67 	return iPluginId;	
       
    68 	}
       
    69 // ----------------------------------------------------------------------------
       
    70 // CIMCVCommandInfo::NewCommandId
       
    71 // ----------------------------------------------------------------------------
       
    72 //	
       
    73 TInt32 CIMCVCommandInfo::NewCommandId() const
       
    74 	{
       
    75 	return iNewCommandId;	
       
    76 	}
       
    77 // ----------------------------------------------------------------------------
       
    78 // CIMCVCommandInfo::OldCommandId
       
    79 // ----------------------------------------------------------------------------
       
    80 //
       
    81 TInt32 CIMCVCommandInfo::OldCommandId() const
       
    82 	{
       
    83 	return iOldCommandId;	
       
    84 	}
       
    85     
       
    86 		       
       
    87 // end of file