mmuifw_plat/alf_widgetmodel_api/inc/alf/ialfsortfunction.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:  callback interface for sort.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef I_ALFSORTFUNCTION
       
    20 #define I_ALFSORTFUNCTION
       
    21 
       
    22 // CLASS DECLARATIONS
       
    23 namespace Alf
       
    24     {
       
    25     
       
    26 class IAlfMap;
       
    27 
       
    28 /**
       
    29  * callback- interface for sort.
       
    30  * 
       
    31  * @since S60 ?S60_version  
       
    32  * @status Draft
       
    33  */
       
    34 class IAlfSortFunction
       
    35     {
       
    36 public:
       
    37     /**
       
    38      * compares two leafs
       
    39      *
       
    40      * @param aFirst first parameter for comparison
       
    41      * @param aSecond second parameter for comparison
       
    42      * @return < 0, if aFirst is less than aSecond, > 0 if aFirst is more than aSecond,
       
    43                 0, if aFirst equals aSecond.
       
    44      * @since S60 ?S60_version
       
    45      */ 
       
    46     virtual int compareLeafs( const IAlfMap* aFirst, const IAlfMap* aSecond ) const = 0;
       
    47     
       
    48     };
       
    49     
       
    50     }
       
    51 #endif
       
    52 
       
    53 // End of File