fotaapplication/fotaserver/src/fsview.cpp
changeset 73 ae69c2e8bc34
parent 66 08c8318ec9cb
equal deleted inserted replaced
71:d2517372cc44 73:ae69c2e8bc34
     9  * Initial Contributors:
     9  * Initial Contributors:
    10  * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11  *
    11  *
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description: Implementation of applicationmanagement components
    14  * Description: Implementation of Fotaapplication components
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include "fsview.h"
    18 #include "fsview.h"
    19 #include "FotaServer.h"
    19 #include "fotaserver.h"
    20 
    20 
    21 // ------------------------------------------------------------------------------------------------
    21 // ------------------------------------------------------------------------------------------------
    22 // FSView::FSView()
    22 // HbFSView::HbFSView()
    23 // ------------------------------------------------------------------------------------------------
    23 // ------------------------------------------------------------------------------------------------
    24 FSView::FSView()
    24 HbFSView::HbFSView()
    25     {
       
    26     	Initilized = EFalse;
       
    27     }
       
    28 // ------------------------------------------------------------------------------------------------
       
    29 // FSView::~FSView()
       
    30 // ------------------------------------------------------------------------------------------------
       
    31 FSView::~FSView()
       
    32     {
    25     {
    33     
    26     
    34     }
    27     }
    35 // ------------------------------------------------------------------------------------------------
    28 // ------------------------------------------------------------------------------------------------
    36 // FSView::eventFilter()
    29 // HbFSView::~HbFSView()
    37 // ------------------------------------------------------------------------------------------------
    30 // ------------------------------------------------------------------------------------------------
    38 bool FSView::eventFilter(QObject *object, QEvent *event)
    31 HbFSView::~HbFSView()
       
    32     {
       
    33     
       
    34     }
       
    35 // ------------------------------------------------------------------------------------------------
       
    36 // HbFSView::eventFilter()
       
    37 // ------------------------------------------------------------------------------------------------
       
    38 bool HbFSView::eventFilter(QObject *object, QEvent *event)
    39 {   
    39 {   
    40     if( Initilized == EFalse )
       
    41     {
       
    42     		emit applicationReady();
       
    43     		Initilized = ETrue;
       
    44     }
       
    45     switch (event->type())
    40     switch (event->type())
    46         {
    41         {
    47         case QEvent::ApplicationActivate:
    42         case QEvent::ApplicationActivate:
    48             {
    43             {
    49 //            RDEBUG( "eventFilter: QEvent::ApplicationActivate start" );
    44             m_Server->SetVisible(ETrue);
    50 	    iServer->SetVisible(ETrue);
       
    51 //            RDEBUG( "eventFilter: end" );
       
    52             break;
    45             break;
    53             }
    46             }
    54         default:
    47         default:
    55             break;
    48             break;
    56         }
    49         }
    57 return HbView::eventFilter(object, event); 
    50 return HbView::eventFilter(object, event); 
    58 }
    51 }
    59 
    52 
    60 
    53 
    61 
    54 
    62 void FSView::SetServer(CFotaServer * aServer)
    55 void HbFSView::SetServer(CFotaServer * aServer)
    63 {
    56 {
    64 	iServer = aServer;
    57     m_Server = aServer;
    65 }
    58 }