wlanutilities/wlansniffer/wlaninfosorting/inc/wsfwlaninfosortingdefault.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-2008 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 CWsfWlanInfoSortingDefault
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_WSFWLANINFOSORTINGDEFAULT_H
       
    21 #define C_WSFWLANINFOSORTINGDEFAULT_H
       
    22 
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 //  INTERNAL INCLUDES
       
    28 #include "wsfwlaninfosortingfiltervisitor.h"
       
    29 
       
    30 
       
    31 //  CLASS DEFINITION
       
    32 /**
       
    33 * Default sorting filter for WLAN items
       
    34 *
       
    35 * @lib wsfwlaninfosorting.lib
       
    36 * @since S60 5.0
       
    37 */
       
    38 NONSHARABLE_CLASS( CWsfWlanInfoSortingDefault ): public CBase, 
       
    39                                         public MWsfWlanInfoSortingFilterVisitor
       
    40     {
       
    41     public:     
       
    42         static CWsfWlanInfoSortingDefault* NewLC();
       
    43         static CWsfWlanInfoSortingDefault* NewL();
       
    44         
       
    45         ~CWsfWlanInfoSortingDefault();
       
    46         
       
    47         
       
    48     private:    // constructors
       
    49         void ConstructL();
       
    50         CWsfWlanInfoSortingDefault();    
       
    51         
       
    52             
       
    53     public: // from MWsfWlanInfoSortingFilterVisitor
       
    54         
       
    55         /**
       
    56         * Do comparing between these two entries
       
    57         * @since S60 5.0
       
    58         * @param aInfoLeft Left element
       
    59         * @param aInfoRight Right element
       
    60         * @return Negative if aInfoLeft is smaller tha aInfoRight,
       
    61         *         zero if the entries are equal,
       
    62         *         positive if the aInfoLeft is greater than aInfoRight
       
    63         */
       
    64         virtual TInt Compare( const TWsfWlanInfo& aInfoLeft, 
       
    65                               const TWsfWlanInfo& aInfoRight );
       
    66 
       
    67         /**
       
    68         * Check if the entry matches to filter rules and carry out additional
       
    69         * operations if needed.
       
    70         * @since S60 5.0
       
    71         * @param aInfoLeft The element to be checked
       
    72         * @return ETrue if the item matches the rule
       
    73         */
       
    74         virtual TBool SetupOnRuleMatch( TWsfWlanInfo& aInfoLeft );
       
    75         
       
    76         /**
       
    77         * Handle filter match 
       
    78         * @since S60 5.0
       
    79         * @param aFilterEntry The element in question
       
    80         */ 
       
    81         virtual void MarkMatchedFilterL( TWsfWlanInfo& aFilterEntry );
       
    82 
       
    83         /**
       
    84         * Edit filter definitions
       
    85         * @since S60 5.0
       
    86         * @param aInfoArray The element in question
       
    87         */
       
    88         virtual void EditFilterDefsL( CWsfWlanInfoArray& aInfoArray );
       
    89         
       
    90         /**
       
    91         * Read the filter defintions to filter
       
    92         * @since S60 5.0
       
    93         */
       
    94         virtual void ReadFilterDefsL();
       
    95 
       
    96     };
       
    97 
       
    98 
       
    99 #endif // C_WSFWLANINFOSORTINGDEFAULT_H
       
   100