wlanutilities/wlansniffer/mainapplication/inc/wsfconnecteddetailscontroller.h
branchRCL_3
changeset 25 f28ada11abbf
parent 0 56b72877c1cb
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 TWsfConnectedDetailsController
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef T_WSFCONNECTEDDETAILSCONTROLLER_H
       
    19 #define T_WSFCONNECTEDDETAILSCONTROLLER_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 "wsfactivetimerhandler.h"
       
    29 
       
    30 //  FORWARD DECLARATIONS
       
    31 class CWsfConnectedDetailsModel;
       
    32 class MWsfActiveTimerHandler;
       
    33 class CWsfConnectedDetailsDialog;
       
    34 
       
    35 //  CLASS DEFINITION
       
    36 /**
       
    37  * Details view controller
       
    38  * 
       
    39  * @since S60 5.0
       
    40  * @lib wlansniffer.exe
       
    41  */
       
    42 class TWsfConnectedDetailsController: public MWsfDetailsViewControllerIf, 
       
    43                                       public MWsfActiveTimerHandler
       
    44     {
       
    45     public:     // New methods
       
    46 
       
    47         /**
       
    48          * Dialog setter
       
    49          * @since S60 5.0
       
    50          * @param aDialog Dialog pointer
       
    51          */        
       
    52         inline void SetDialog( CWsfConnectedDetailsDialog* aDialog );
       
    53         
       
    54         /**
       
    55          * Model setter
       
    56          * @since S60 5.0
       
    57          * @param aModel Model pointer
       
    58          */
       
    59         inline void SetModel( CWsfConnectedDetailsModel* aModel );
       
    60 
       
    61         
       
    62     public: //From MWsfDetailsViewControllerIf
       
    63 
       
    64         /**
       
    65          * Set the Wlan array & selected item from main view to details view
       
    66          * @since S60 5.0
       
    67          * @param aWlanArray - Current Wlan Array
       
    68          * @param aSelectedWlanSsid - Selected Wlan from Main view
       
    69          */
       
    70         void SetWlanListL( CWsfWlanInfoArray* aWlanArray, 
       
    71                            const TDesC8& aSelectedWlanSsid );
       
    72 
       
    73         /**
       
    74          * Wlan array has been chaged eg. some wlan dropped or new found
       
    75          * @since S60 5.0
       
    76          * @param aWlanArray - Current Wlan Array
       
    77          */
       
    78         void WlanListChangedL( CWsfWlanInfoArray* aWlanArray );
       
    79 
       
    80         /**
       
    81          * Refresh -> draw current model to view
       
    82          * @since S60 5.0
       
    83          */
       
    84         void RefreshL();
       
    85         
       
    86         /**
       
    87         * Sets partner object
       
    88         * @since S60 5.0
       
    89         * @param aPartner The new partner object
       
    90         */
       
    91         void SetPartner( MWsfDetailsViewPartner& aPartner );
       
    92 
       
    93         
       
    94     public:     // From MWsfActiveTimerHandler
       
    95     
       
    96         /**
       
    97          * Updates the details view active time
       
    98          * @since S60 5.0
       
    99          */
       
   100         void UpdateActiveTimeL();
       
   101    
       
   102         
       
   103     private:    // Data
       
   104 
       
   105         /**
       
   106          * Details dialog model (not owned)
       
   107          */
       
   108         CWsfConnectedDetailsModel* iModel;
       
   109         
       
   110         /**
       
   111          * Details dialog (not owned)
       
   112          */
       
   113         CWsfConnectedDetailsDialog* iDialog;
       
   114     };
       
   115 
       
   116 
       
   117 
       
   118 #include "wsfconnecteddetailscontroller.inl"
       
   119 
       
   120 
       
   121 
       
   122 #endif  //  T_WSFCONNECTEDDETAILSCONTROLLER_H
       
   123 
       
   124 // End of file