menufw/menufwui/mmwidgets/inc/mmvisibilityobserver.h
changeset 0 f72a12da539e
equal deleted inserted replaced
-1:000000000000 0:f72a12da539e
       
     1 /*
       
     2 * Copyright (c) 2007 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:  receives key pressed notifications
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef M_MMVISIBILITYOBSERVER_H
       
    19 #define M_MMVISIBILITYOBSERVER_H
       
    20 
       
    21 #include <coedef.h>
       
    22 
       
    23 /**
       
    24  *  Interface for handling application changing background/foreground states.
       
    25  *
       
    26  *  @code
       
    27  *  @endcode
       
    28  *  @lib 
       
    29  *  @since S60 v3.0
       
    30  *  @ingroup group_mmwidgets
       
    31  */
       
    32 class MMmVisibilityObserver
       
    33     {
       
    34 public:
       
    35     
       
    36     /**
       
    37      * Called when application goes into foreground (e.g options menu
       
    38      * goes off or application is opened ).
       
    39      * 
       
    40      * @since S60 v5.0
       
    41      */
       
    42     virtual void HandleForegroundGainedL() = 0;
       
    43     
       
    44     /**
       
    45      * Called when application goes into background (e.g the options list
       
    46      * is open and application view is dimmed).
       
    47      *
       
    48      * @since S60 v5.0
       
    49      */
       
    50     virtual void HandleBackgroundGainedL() = 0;
       
    51     
       
    52     };
       
    53     
       
    54 #endif // M_MMVISIBILITYOBSERVER_H