wlanutilities/wlansniffer/wlaninfosorting/inc/wsfwlanssidselectiondlg2.h
branchRCL_3
changeset 25 f28ada11abbf
equal deleted inserted replaced
24:63be7eb3fc78 25:f28ada11abbf
       
     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 CWsfWlanSsidSelectionDlg2
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C_WSFWLANSSIDSELECTIONDLG2_H
       
    21 #define C_WSFWLANSSIDSELECTIONDLG2_H
       
    22 
       
    23 
       
    24 //  EXTERNAL INCLUDES
       
    25 #include <aknlistquerydialog.h>
       
    26 #include <badesca.h>
       
    27 
       
    28 
       
    29 // FORWARD DECLARATIONS
       
    30 class CAknTitlePane;
       
    31 class CAknIconArray;
       
    32 class CGulIcon;
       
    33 
       
    34 
       
    35 //  CLASS DEFINITION
       
    36 /**
       
    37 * Dialog for modifying the SSID blacklist
       
    38 *
       
    39 * @lib wsfwlaninfosorting.lib
       
    40 * @since S60 5.0
       
    41 */
       
    42 NONSHARABLE_CLASS( CWsfWlanSsidSelectionDlg2 ): public CAknListQueryDialog
       
    43     {
       
    44     public:     
       
    45         /**
       
    46         * Factory function.
       
    47         * @since S60 5.0
       
    48         * @param aSsidArray Array of all SSIDs. Ownership not passed.
       
    49         * @param aSelectionIndexArray Array to indicate selected state of 
       
    50         *                             the SSIDs. Ownership not passed.
       
    51         * @return Class instance
       
    52         */
       
    53         static CWsfWlanSsidSelectionDlg2* NewL( CDesCArrayFlat& aSsidArray,
       
    54                     CListBoxView::CSelectionIndexArray& aSelectionIndexArray );
       
    55 
       
    56         /**
       
    57         * Factory function.
       
    58         * @since S60 5.0
       
    59         * @param aSsidArray Array of all SSIDs. Ownership not passed.
       
    60         * @param aSelectionIndexArray Array to indicate selected state of 
       
    61         *                             the SSIDS. Ownership not passed.
       
    62         * @return Class instance
       
    63         */
       
    64         static CWsfWlanSsidSelectionDlg2* NewLC( CDesCArrayFlat& aSsidArray,
       
    65                     CListBoxView::CSelectionIndexArray& aSelectionIndexArray );
       
    66 
       
    67         ~CWsfWlanSsidSelectionDlg2();
       
    68 
       
    69 
       
    70     private:
       
    71         /**
       
    72         * Constructor.
       
    73         * @since S60 5.0
       
    74         * @param aSsidArray Array of all SSIDs. Ownership not passed.
       
    75         * @param aSelectionIndexArray Array to indicate selected state of 
       
    76         *                             the SSIDS. Ownership not passed.
       
    77         * @return Class instance
       
    78         */
       
    79         CWsfWlanSsidSelectionDlg2( CDesCArrayFlat& aSsidArray,
       
    80                     CListBoxView::CSelectionIndexArray& aSelectionIndexArray );
       
    81                     
       
    82         void ConstructL();
       
    83 
       
    84         
       
    85     public: // from CEikDialog
       
    86         TKeyResponse OfferKeyEventL( const TKeyEvent& aKeyEvent, 
       
    87                                      TEventCode aType );
       
    88 
       
    89         void PreLayoutDynInitL();
       
    90                              
       
    91             
       
    92     private:    // new methods
       
    93 
       
    94         /**
       
    95         * Creates a listbox item array of the SSID list
       
    96         * @since S60 5.0
       
    97         * @param aSource The source SSID array. Ownership not passed.
       
    98         * @param aDest The array to put the resulting listbox items in.
       
    99         *              Ownership not passed.
       
   100         */
       
   101         void CopyAndFormatArrayContentsL( CDesCArrayFlat* aSource,
       
   102                                           CDesCArrayFlat* aDest );
       
   103 
       
   104         /**
       
   105         * Function to create checkbox icons for the markable list
       
   106         * @since S60 5.0
       
   107         * @param aFileName Path to the icon file
       
   108         * @param aIcon Icon id
       
   109         * @param aMask Mask id
       
   110         * @param aID Item ID of the masked bitmap to be created.
       
   111         * @return The constructed icon. Ownership passed.
       
   112         */
       
   113         CGulIcon* CreateIconLC( const TDesC& aFileName, TInt aIcon, TInt aMask,
       
   114                                 const TAknsItemID& aID );
       
   115     
       
   116         /**
       
   117         * Create an icon array of the checkbox icons
       
   118         * @since S60 5.0
       
   119         * @return The constructed icon array. Ownership passed.
       
   120         */
       
   121         CAknIconArray* CreateQueryIconArrayL();        
       
   122 
       
   123 
       
   124     private: //data
       
   125     
       
   126         /**
       
   127         * Array of SSIDs in the list
       
   128         */
       
   129         CDesCArrayFlat* iSsidArray;
       
   130     
       
   131         /**
       
   132         * Array of selection states
       
   133         */
       
   134         CArrayFix<TInt>* iSelectedItems;
       
   135     
       
   136         /**
       
   137         * Reference to the title pane of the list. Not owned.
       
   138         */
       
   139         CAknTitlePane* iPane;
       
   140     
       
   141         /**
       
   142         * Title text. Owned.
       
   143         */
       
   144         HBufC* iTitle;
       
   145 
       
   146     };
       
   147 
       
   148     
       
   149 #endif // C_WSFWLANSSIDSELECTIONDLG2_H