wlanutilities/wlansniffer/mainapplication/src/wsfmainviewcontainer.cpp
branchRCL_3
changeset 8 c2bc3f8c7777
parent 0 56b72877c1cb
child 11 8b0eae1b1d71
equal deleted inserted replaced
4:107412708b22 8:c2bc3f8c7777
    37 #include "wsfmainviewinternals.h"
    37 #include "wsfmainviewinternals.h"
    38 #include "wsfmainviewcontrollerpartner.h"
    38 #include "wsfmainviewcontrollerpartner.h"
    39 #include "wsfdocument.h"
    39 #include "wsfdocument.h"
    40 #include "wsfwlaninfoarrayvisitor.h"
    40 #include "wsfwlaninfoarrayvisitor.h"
    41 #include "wsfappui.h"
    41 #include "wsfappui.h"
       
    42 #include "wsfmainview.h"
    42 #include <wlansniffer.rsg>
    43 #include <wlansniffer.rsg>
    43 
    44 
    44 #include "wsflogger.h"
    45 #include "wsflogger.h"
    45 
    46 
    46 
    47 
    58 //  CONSTRUCTION AND DESTRUCTION
    59 //  CONSTRUCTION AND DESTRUCTION
    59 // ---------------------------------------------------------
    60 // ---------------------------------------------------------
    60 // CWsfMainViewContainer::NewL
    61 // CWsfMainViewContainer::NewL
    61 // ---------------------------------------------------------
    62 // ---------------------------------------------------------
    62 //
    63 //
    63 CWsfMainViewContainer* CWsfMainViewContainer::NewL( const TRect& aRect )
    64 CWsfMainViewContainer* CWsfMainViewContainer::NewL( const TRect& aRect,
       
    65         CWsfMainView* aParentView )
    64     {
    66     {
    65     LOG_ENTERFN( "CWsfMainViewContainer::NewL" );
    67     LOG_ENTERFN( "CWsfMainViewContainer::NewL" );
    66     CWsfMainViewContainer* self = CWsfMainViewContainer::NewLC( aRect );
    68     CWsfMainViewContainer* self =
       
    69             CWsfMainViewContainer::NewLC( aRect, aParentView );
    67     CleanupStack::Pop( self );
    70     CleanupStack::Pop( self );
    68     return self;
    71     return self;
    69     }
    72     }
    70 
    73 
    71 // ---------------------------------------------------------
    74 // ---------------------------------------------------------
    72 // CWsfMainViewContainer::NewLC
    75 // CWsfMainViewContainer::NewLC
    73 // ---------------------------------------------------------
    76 // ---------------------------------------------------------
    74 //
    77 //
    75 CWsfMainViewContainer* CWsfMainViewContainer::NewLC( const TRect& aRect )
    78 CWsfMainViewContainer* CWsfMainViewContainer::NewLC( const TRect& aRect,
       
    79         CWsfMainView* aParentView )
    76     {
    80     {
    77     LOG_ENTERFN( "CWsfMainViewContainer::NewLC" );
    81     LOG_ENTERFN( "CWsfMainViewContainer::NewLC" );
    78     CWsfMainViewContainer* self = new( ELeave ) CWsfMainViewContainer;
    82     CWsfMainViewContainer* self = new( ELeave ) CWsfMainViewContainer;
    79     CleanupStack::PushL( self );
    83     CleanupStack::PushL( self );
    80     self->ConstructL( aRect );
    84     self->ConstructL( aRect, aParentView );
    81     return self;
    85     return self;
    82     }
    86     }
    83 
    87 
    84 // ---------------------------------------------------------
    88 // ---------------------------------------------------------
    85 // CWsfMainViewContainer::~CWsfMainViewContainer
    89 // CWsfMainViewContainer::~CWsfMainViewContainer
   112 
   116 
   113 // ---------------------------------------------------------
   117 // ---------------------------------------------------------
   114 // CWsfMainViewContainer::ConstructL
   118 // CWsfMainViewContainer::ConstructL
   115 // ---------------------------------------------------------
   119 // ---------------------------------------------------------
   116 //
   120 //
   117 void CWsfMainViewContainer::ConstructL( const TRect& aRect )
   121 void CWsfMainViewContainer::ConstructL( const TRect& aRect,
       
   122         CWsfMainView* aParentView )
   118     {
   123     {
   119     LOG_ENTERFN( "CWsfMainViewContainer::ConstructL" );
   124     LOG_ENTERFN( "CWsfMainViewContainer::ConstructL" );
   120     CreateWindowL(); 
   125     CreateWindowL();
       
   126     
       
   127     iParentView = aParentView;
   121    
   128    
   122     iListBox = new( ELeave ) CAknDoubleGraphicStyleListBox();
   129     iListBox = new( ELeave ) CAknDoubleGraphicStyleListBox();
   123     TInt flags( EAknGenericListBoxFlags );
   130     TInt flags( EAknGenericListBoxFlags );
   124     iListBox->SetMopParent(this); // 
   131     iListBox->SetMopParent(this); // 
   125     iListBox->ConstructL( this, flags );    
   132     iListBox->ConstructL( this, flags );    
   485             LOG_WRITE("Connecting status found");
   492             LOG_WRITE("Connecting status found");
   486             StartConnectingAnimationL();
   493             StartConnectingAnimationL();
   487             }
   494             }
   488         CleanupStack::PopAndDestroy(text);
   495         CleanupStack::PopAndDestroy(text);
   489         }
   496         }
       
   497     
       
   498     iParentView->UpdateBrowserUsageInfoL();
       
   499     
   490     iListBox->DrawDeferred(); 
   500     iListBox->DrawDeferred(); 
   491     }
   501     }
   492 
   502 
   493 
   503 
   494 // --------------------------------------------------------------------------
   504 // --------------------------------------------------------------------------