wlanutilities/wlansniffer/wlaninfo/inc/wsfwlaninfoarraysortkey.h
branchRCL_3
changeset 24 63be7eb3fc78
parent 23 b852595f5cbe
child 25 f28ada11abbf
equal deleted inserted replaced
23:b852595f5cbe 24:63be7eb3fc78
     1 /*
       
     2 * Copyright (c) 2007-2007 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:  Class header for CWsfWlanInfoArraySortKey
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_WSFWLANINFOARRAYSORTKEY_H
       
    21 #define C_WSFWLANINFOARRAYSORTKEY_H
       
    22 
       
    23 //  EXTERNAL INCLUDES
       
    24 #include <e32base.h>
       
    25 
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CWsfWlanInfoArray;
       
    29 
       
    30 
       
    31 //  CLASS DEFINITION
       
    32 /**
       
    33  * Sort key for wlan info array
       
    34  * @lib wsfwlaninfo.lib
       
    35  * @since S60 5.0
       
    36  */
       
    37 NONSHARABLE_CLASS( CWsfWlanInfoArraySortKey ): public TKeyArrayFix 
       
    38 	{
       
    39     public:     // Constructors
       
    40         /**
       
    41         * Factory function.
       
    42         * @since S60 5.0
       
    43         * @param aArray The array to work with.
       
    44         */
       
    45 		static CWsfWlanInfoArraySortKey* NewLC( CWsfWlanInfoArray& aArray );
       
    46 		
       
    47         /**
       
    48         * Destructor.
       
    49         * @since S60 5.0
       
    50         */
       
    51 		~CWsfWlanInfoArraySortKey();
       
    52   
       
    53     private:  // Constructors
       
    54         /**
       
    55         * Constructor.
       
    56         * @since S60 5.0
       
    57         * @param aArray The array to work with.
       
    58         */        
       
    59 		CWsfWlanInfoArraySortKey( CWsfWlanInfoArray& aArray );
       
    60 
       
    61     public:   // from TKey
       
    62 
       
    63        /**
       
    64         * Compare function
       
    65         * @since S60 5.0
       
    66         * @param aLeft Left element to be compared
       
    67         * @param aRight Right element to be compared
       
    68         * @return -1 if aLeft<aRight, 0 if equal, 1 otherwise
       
    69         */
       
    70         virtual TInt Compare( TInt aLeft, TInt aRight ) const;
       
    71 
       
    72     public:    // Data
       
    73         // The array to work with. Not owned.
       
    74 		CWsfWlanInfoArray* iArray;
       
    75 	};
       
    76 
       
    77 
       
    78 #endif // C_WSFWLANINFOARRAYSORTKEY_H