wlansecuritysettings/wlaneapsettingsui/EapPluginConfig/src/EAPPluginList.cpp
branchRCL_3
changeset 46 c74b3d9f6b9e
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
       
     1 /*
       
     2 * Copyright (c) 2001-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 the License "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: Implementation of class REAPPluginList.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 11 %
       
    20 */
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include "EAPPluginList.h"
       
    24 
       
    25 
       
    26 // ============================ MEMBER FUNCTIONS ===============================
       
    27 
       
    28 // ---------------------------------------------------------
       
    29 // REAPPluginList::MovePos
       
    30 // ---------------------------------------------------------
       
    31 //
       
    32 void REAPPluginList::MovePos( TInt aOldPos, TInt aNewPos )
       
    33     {
       
    34     TEAPPluginInfo temp;
       
    35     TInt i;
       
    36     if ( aNewPos > aOldPos )
       
    37         {
       
    38         temp = (*this)[aOldPos];
       
    39         for ( i = aOldPos; i < aNewPos; i++ )
       
    40             {
       
    41             (*this)[i] = (*this)[i + 1];
       
    42             }
       
    43         (*this)[aNewPos] = temp;
       
    44         }
       
    45     else if ( aNewPos < aOldPos )
       
    46         {
       
    47         temp = (*this)[aOldPos];
       
    48         for ( i = aOldPos; i > aNewPos; i-- )
       
    49             {
       
    50             (*this)[i] = (*this)[i - 1];
       
    51             }
       
    52         (*this)[aNewPos] = temp;
       
    53         }
       
    54     }
       
    55 
       
    56 
       
    57 //  End of File