textinput/GSLangPlugin/src/DualLanguageData.cpp
branchRCL_3
changeset 44 ecbabf52600f
parent 0 eb1f2e154e89
equal deleted inserted replaced
43:ebd48d2de13c 44:ecbabf52600f
       
     1 /*
       
     2 * Copyright (c) 2009 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  *  Name     : CGSPredictiveSettingData from AknFepPredictiveSettingData 
       
    20  * ============================================================================
       
    21  */
       
    22 
       
    23 #include "DualLanguageData.h"
       
    24 
       
    25 CGSDualLanguageData *CGSDualLanguageData::NewL()
       
    26 	{
       
    27 	CGSDualLanguageData *self = CGSDualLanguageData::NewLC();
       
    28 	CleanupStack::Pop(self);
       
    29 	return self;
       
    30 	}
       
    31 
       
    32 CGSDualLanguageData *CGSDualLanguageData::NewLC()
       
    33 	{
       
    34 	CGSDualLanguageData *self = new (ELeave) CGSDualLanguageData();
       
    35 	CleanupStack::PushL(self);
       
    36 	return self;
       
    37 	}
       
    38 
       
    39 CGSDualLanguageData::~CGSDualLanguageData()
       
    40 	{
       
    41 	if(iItems != NULL)
       
    42 	    {
       
    43 	    delete iItems;
       
    44 	    }
       
    45 	if(iSecondaryItems != NULL)
       
    46 	    {
       
    47 	    delete iSecondaryItems;
       
    48 	    }
       
    49 	}
       
    50 
       
    51 CGSDualLanguageData::CGSDualLanguageData()
       
    52 	{
       
    53 	}
       
    54 
       
    55 void CGSDualLanguageData::LoadL(CDesCArrayFlat* aItems,
       
    56                                 CDesCArrayFlat* aSecondaryItems,
       
    57                                 TInt aCurrentValue,
       
    58                                 TInt aCurrentSecondaryValue)
       
    59     {
       
    60     iItems = aItems;
       
    61     iSecondaryItems = aSecondaryItems;
       
    62     iCurrentValue = aCurrentValue;
       
    63     iCurrentSecondaryValue = aCurrentSecondaryValue;
       
    64     }
       
    65     
       
    66 void CGSDualLanguageData::SaveL() const
       
    67     {
       
    68     }
       
    69 //EOF