wlanutilities/wlansniffer/mainapplication/inc/wsfdetailsviewcontroller.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 TWsfDetailsViewController
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef T_WSFDETAILSVIEWCONTROLLER_H
       
    19 #define T_WSFDETAILSVIEWCONTROLLER_H
       
    20 
       
    21 //  EXTERNAL INCLUDES
       
    22 #include <e32def.h>
       
    23 
       
    24 //  INTERNAL INCLUDES
       
    25 #include "wsfsession.h"
       
    26 #include "wsfwlaninfo.h"
       
    27 #include "wsfdetailsviewcontrollerif.h"
       
    28 #include "wsfdetailsviewcontrollerpartner.h"
       
    29 #include "wsfactivetimerhandler.h"
       
    30 
       
    31 //  FORWARD DECLARATIONS
       
    32 class CWsfDetailsViewModel;
       
    33 class MWsfDetailsContainerIf;
       
    34 class MWsfDetailsViewPartner;
       
    35 class MWsfActiveTimerHandler;
       
    36 
       
    37 //  CLASS DEFINITION
       
    38 /**
       
    39  * Details view controller
       
    40  * 
       
    41  * @since S60 5.0
       
    42  * @lib wlansniffer.exe
       
    43  */
       
    44 class TWsfDetailsViewController : public MWsfDetailsViewControllerIf, 
       
    45                                   public MWsfDetailsViewControllerPartner,
       
    46                                   public MWsfActiveTimerHandler
       
    47     {
       
    48     public:     // New methods
       
    49     
       
    50         /**
       
    51          * Model setter
       
    52          * @since S60 5.0
       
    53          * @param aModel Model pointer
       
    54          */
       
    55         void SetModel( CWsfDetailsViewModel* aModel );
       
    56 
       
    57         /**
       
    58          * container setter
       
    59          * @since S60 5.0
       
    60          * @param aContainer Container pointer
       
    61          */
       
    62         void SetContainer( MWsfDetailsContainerIf* aContainer );
       
    63 
       
    64         
       
    65     public: //From MWsfDetailsViewControllerIf
       
    66         /**
       
    67          * Set the Wlan array & selected item from main view to details view
       
    68          * @since S60 5.0
       
    69          * @param aWlanArray Current Wlan Array
       
    70          * @param aSelectedWlanSsid Selected Wlan from Main view
       
    71          */
       
    72         void SetWlanListL( CWsfWlanInfoArray* aWlanArray, 
       
    73                            const TDesC8& aSelectedWlanSsid );
       
    74 
       
    75         /**
       
    76          * Wlan array has been chaged eg. some wlan dropped or new found
       
    77          * @since S60 5.0
       
    78          * @param aWlanArray Current Wlan Array
       
    79          */
       
    80         void WlanListChangedL( CWsfWlanInfoArray* aWlanArray );
       
    81 
       
    82         /**
       
    83          * Refresh -> draw current model to view
       
    84          * @since S60 5.0
       
    85          */
       
    86         void RefreshL();
       
    87         
       
    88         /**
       
    89         * Sets partner object
       
    90         * @since S60 5.0
       
    91         * @param aPartner The new partner object
       
    92         */
       
    93         void SetPartner( MWsfDetailsViewPartner& aPartner );
       
    94 
       
    95         
       
    96     public: //Method from MWsfDetailsViewControllerPartner
       
    97     
       
    98         /**
       
    99          * Handles left key presses
       
   100          * @since S60 5.0
       
   101          */
       
   102         void HandleLeftKeyPressedL();
       
   103         
       
   104         /**
       
   105          * Handles right key presses
       
   106          * @since S60 5.0
       
   107          */
       
   108         void HandleRightKeyPressedL();
       
   109 
       
   110         /**
       
   111          * Handles selection key presses
       
   112          * @since S60 5.0
       
   113          */
       
   114         void HandleSelectionKeyPressedL();
       
   115         
       
   116 
       
   117     public:     // From MWsfActiveTimerHandler
       
   118     
       
   119         /**
       
   120          * Updates the details view active time
       
   121          * @since S60 5.0
       
   122          */
       
   123         void UpdateActiveTimeL();
       
   124         
       
   125         
       
   126     private:    // New methods
       
   127     
       
   128         /**
       
   129          * Handles pane text update on container
       
   130          * @since S60 5.0
       
   131          */
       
   132         void HandlePaneTextUpdateL();
       
   133     
       
   134         
       
   135     private:    // Data
       
   136 
       
   137         //Ref: details view model
       
   138         CWsfDetailsViewModel* iModel;
       
   139         
       
   140         //Ref: details view container
       
   141         MWsfDetailsContainerIf* iContainer;
       
   142         
       
   143         //Ref: Details view partner
       
   144         MWsfDetailsViewPartner* iPartner;
       
   145         
       
   146     };
       
   147 
       
   148 #endif      //  T_WSFDETAILSVIEWCONTROLLER_H
       
   149 
       
   150 // End of file
       
   151