wlanutilities/wlansniffer/wlaninfosorting/inc/wsfwlanssidselectiondlg2.h
changeset 0 56b72877c1cb
child 2 6e4b6261703d
equal deleted inserted replaced
-1:000000000000 0:56b72877c1cb
       
     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                                                 public MEikListBoxObserver
       
    44     {
       
    45     public:     
       
    46         /**
       
    47         * Factory function.
       
    48         * @since S60 5.0
       
    49         * @param aSsidArray Array of all SSIDs. Ownership not passed.
       
    50         * @param aSelectionIndexArray Array to indicate selected state of 
       
    51         *                             the SSIDs. Ownership not passed.
       
    52         * @return Class instance
       
    53         */
       
    54         static CWsfWlanSsidSelectionDlg2* NewL( CDesCArrayFlat& aSsidArray,
       
    55                     CListBoxView::CSelectionIndexArray& aSelectionIndexArray );
       
    56 
       
    57         /**
       
    58         * Factory function.
       
    59         * @since S60 5.0
       
    60         * @param aSsidArray Array of all SSIDs. Ownership not passed.
       
    61         * @param aSelectionIndexArray Array to indicate selected state of 
       
    62         *                             the SSIDS. Ownership not passed.
       
    63         * @return Class instance
       
    64         */
       
    65         static CWsfWlanSsidSelectionDlg2* NewLC( CDesCArrayFlat& aSsidArray,
       
    66                     CListBoxView::CSelectionIndexArray& aSelectionIndexArray );
       
    67 
       
    68         ~CWsfWlanSsidSelectionDlg2();
       
    69 
       
    70 
       
    71     private:
       
    72         /**
       
    73         * Constructor.
       
    74         * @since S60 5.0
       
    75         * @param aSsidArray Array of all SSIDs. Ownership not passed.
       
    76         * @param aSelectionIndexArray Array to indicate selected state of 
       
    77         *                             the SSIDS. Ownership not passed.
       
    78         * @return Class instance
       
    79         */
       
    80         CWsfWlanSsidSelectionDlg2( CDesCArrayFlat& aSsidArray,
       
    81                     CListBoxView::CSelectionIndexArray& aSelectionIndexArray );
       
    82                     
       
    83         void ConstructL();
       
    84 
       
    85         
       
    86     public: // from CEikDialog
       
    87         void PreLayoutDynInitL();
       
    88         
       
    89 
       
    90     public: // From MEikListBoxObserver
       
    91         void HandleListBoxEventL( CEikListBox* aListBox, 
       
    92                                   TListBoxEvent aEventType );                       
       
    93             
       
    94     private:    // new methods
       
    95 
       
    96         /**
       
    97         * Creates a listbox item array of the SSID list
       
    98         * @since S60 5.0
       
    99         * @param aSource The source SSID array. Ownership not passed.
       
   100         * @param aDest The array to put the resulting listbox items in.
       
   101         *              Ownership not passed.
       
   102         */
       
   103         void CopyAndFormatArrayContentsL( CDesCArrayFlat* aSource,
       
   104                                           CDesCArrayFlat* aDest );
       
   105 
       
   106         /**
       
   107         * Function to create checkbox icons for the markable list
       
   108         * @since S60 5.0
       
   109         * @param aFileName Path to the icon file
       
   110         * @param aIcon Icon id
       
   111         * @param aMask Mask id
       
   112         * @param aID Item ID of the masked bitmap to be created.
       
   113         * @return The constructed icon. Ownership passed.
       
   114         */
       
   115         CGulIcon* CreateIconLC( const TDesC& aFileName, TInt aIcon, TInt aMask,
       
   116                                 const TAknsItemID& aID );
       
   117     
       
   118         /**
       
   119         * Create an icon array of the checkbox icons
       
   120         * @since S60 5.0
       
   121         * @return The constructed icon array. Ownership passed.
       
   122         */
       
   123         CAknIconArray* CreateQueryIconArrayL();        
       
   124 
       
   125 
       
   126     private: //data
       
   127     
       
   128         /**
       
   129         * Array of SSIDs in the list
       
   130         */
       
   131         CDesCArrayFlat* iSsidArray;
       
   132     
       
   133         /**
       
   134         * Array of selection states
       
   135         */
       
   136         CArrayFix<TInt>* iSelectedItems;
       
   137     
       
   138         /**
       
   139         * Reference to the title pane of the list. Not owned.
       
   140         */
       
   141         CAknTitlePane* iPane;
       
   142     
       
   143         /**
       
   144         * Title text. Owned.
       
   145         */
       
   146         HBufC* iTitle;
       
   147 
       
   148     };
       
   149 
       
   150     
       
   151 #endif // C_WSFWLANSSIDSELECTIONDLG2_H