srsf/vcommandmanager/src/vcommandmerger.cpp
branchRCL_3
changeset 19 e36f3802f733
parent 0 bf1d17376201
equal deleted inserted replaced
18:cad71a31b7fc 19:e36f3802f733
       
     1 /*
       
     2 * Copyright (c) 2005-2006 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:  VCommandManager application which is started during boot. 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "rubydebug.h"
       
    21 #include "vcommandmerger.h"
       
    22 // For CleanupResetAndDestroyPushL
       
    23 //#include <mmfcontrollerpluginresolver.h> 
       
    24 
       
    25 CVCommandMerger* CVCommandMerger::NewLC()
       
    26     {
       
    27     CVCommandMerger* self = new (ELeave) CVCommandMerger;
       
    28     CleanupStack::PushL( self );
       
    29     return self;
       
    30     }
       
    31 
       
    32 /** 
       
    33  * @todo Move the internal member comparisons to the primitive classes
       
    34  */
       
    35 
       
    36 // Returns the array of commands from aTarget that have counterparts
       
    37 // in aInjection with the equal Runnable, but with different spoken text or UI
       
    38 // Difference in user texts only does not count
       
    39 CVCommandArray* CVCommandMerger::ProduceDeductionByRunnablesLC( const CVCommandArray& aTarget, 
       
    40                                                           const RVCommandArray& aInjection ) const
       
    41     {
       
    42     return aTarget.ProduceUntrainSetByRunnablesLC( aInjection );;
       
    43     }                                                                    
       
    44                                        
       
    45 // Returns the array of commands from aInjection that have 
       
    46 // counterparts in aTarget with the equal Runnable, but with different spoken text or UI
       
    47 // Difference in user texts only does not count
       
    48 CVCommandArray* CVCommandMerger::ProduceAdditionByRunnablesLC( const CVCommandArray& aTarget, 
       
    49                                                      const RVCommandArray& aInjection ) const
       
    50     {
       
    51     return aTarget.ProduceTrainSetByRunnablesLC( aInjection );
       
    52     }                                                                    
       
    53 
       
    54 // End of File
       
    55