applicationmanagement/server/src/amview.cpp
changeset 42 aa33c2cb9a50
child 62 03849bd79877
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2  * Copyright (c) 2000 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: Implementation of applicationmanagement components
       
    15  *
       
    16  */
       
    17 
       
    18 #include "amview.h"
       
    19 #include "debug.h"
       
    20 using namespace NApplicationManagement;
       
    21 
       
    22 // ------------------------------------------------------------------------------------------------
       
    23 // AMView::AMView()
       
    24 // ------------------------------------------------------------------------------------------------
       
    25 AMView::AMView()
       
    26     {
       
    27     
       
    28     }
       
    29 // ------------------------------------------------------------------------------------------------
       
    30 // AMView::~AMView()
       
    31 // ------------------------------------------------------------------------------------------------
       
    32 AMView::~AMView()
       
    33     {
       
    34     
       
    35     }
       
    36 // ------------------------------------------------------------------------------------------------
       
    37 // AMView::eventFilter()
       
    38 // ------------------------------------------------------------------------------------------------
       
    39 bool AMView::eventFilter(QObject *object, QEvent *event)
       
    40 {   
       
    41     switch (event->type())
       
    42         {
       
    43         case QEvent::ApplicationActivate:
       
    44             {
       
    45             RDEBUG( "eventFilter: QEvent::ApplicationActivate start" );
       
    46             CApplicationManagementUtility::mHidden=0;
       
    47             if(CApplicationManagementUtility::mCurrDlg)
       
    48                 CApplicationManagementUtility::mCurrDlg->setVisible(true);
       
    49             RDEBUG( "eventFilter: end" );
       
    50             break;
       
    51             }
       
    52         default:
       
    53             break;
       
    54         }
       
    55 return HbView::eventFilter(object, event); 
       
    56 }