wlansecuritysettings/wlaneapsettingsui/EapPluginConfig/src/EAPPluginList.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     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 
       
    20 // INCLUDE FILES
       
    21 #include "EAPPluginList.h"
       
    22 
       
    23 
       
    24 // ============================ MEMBER FUNCTIONS ===============================
       
    25 
       
    26 // ---------------------------------------------------------
       
    27 // REAPPluginList::MovePos
       
    28 // ---------------------------------------------------------
       
    29 //
       
    30 void REAPPluginList::MovePos( TInt aOldPos, TInt aNewPos )
       
    31     {
       
    32     TEAPPluginInfo temp;
       
    33     TInt i;
       
    34     if ( aNewPos > aOldPos )
       
    35         {
       
    36         temp = (*this)[aOldPos];
       
    37         for ( i = aOldPos; i < aNewPos; i++ )
       
    38             {
       
    39             (*this)[i] = (*this)[i + 1];
       
    40             }
       
    41         (*this)[aNewPos] = temp;
       
    42         }
       
    43     else if ( aNewPos < aOldPos )
       
    44         {
       
    45         temp = (*this)[aOldPos];
       
    46         for ( i = aOldPos; i > aNewPos; i-- )
       
    47             {
       
    48             (*this)[i] = (*this)[i - 1];
       
    49             }
       
    50         (*this)[aNewPos] = temp;
       
    51         }
       
    52     }
       
    53 
       
    54 
       
    55 //  End of File