widgetmodel/alfwidgetmodel/inc/alfsort.h
changeset 17 3eca7e70b1b8
parent 3 4526337fb576
equal deleted inserted replaced
3:4526337fb576 17:3eca7e70b1b8
     1 /*
       
     2 * Copyright (c) 2004 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:  contains sorting routine
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef ALFSORT_H
       
    21 #define ALFSORT_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <osn/osntypes.h>
       
    25 
       
    26 namespace Alf
       
    27     {
       
    28 
       
    29 class IAlfVariantType;
       
    30 class IAlfSortFunction;
       
    31     }
       
    32 
       
    33 namespace Alf
       
    34     {
       
    35 /**
       
    36 *  class containig sort routine.
       
    37 *  @since S60 ?S60_version
       
    38 */
       
    39 class AlfSort
       
    40     {
       
    41 public:
       
    42     /**
       
    43      * sorts the array
       
    44      *
       
    45      * @since S60 ?S60_version
       
    46      * @param aArr array to sort
       
    47      * @param aCount count of items in aArr.
       
    48      * @param aSortFunction. Callback interface, specifies how the items are sorted.
       
    49      */
       
    50     static void sort(IAlfVariantType** aArr, uint aCount, const IAlfSortFunction& aSortFunction );
       
    51     };
       
    52 
       
    53     }
       
    54 
       
    55 
       
    56 #endif