internetradio2.0/uiinc/irsystemeventobserver.h
changeset 0 09774dfdd46b
equal deleted inserted replaced
-1:000000000000 0:09774dfdd46b
       
     1 /*
       
     2 * Copyright (c) 2009 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: 
       
    15 *     ?description_line
       
    16 *     ?description_line
       
    17 *     ?description_line
       
    18 *
       
    19 */
       
    20 /*
       
    21 * ============================================================================
       
    22 *  Name     : IRSystemEventObserver.h
       
    23 *  Part of  : 
       
    24 *  Origin   : 
       
    25 *  Created  : 
       
    26 *  Description:
       
    27 *     ?description_line
       
    28 *     ?description_line
       
    29 *     ?description_line
       
    30 *  Version  :
       
    31 *  
       
    32 *  ---------------------------------------------------------------------------
       
    33 *  Version history:
       
    34 * ============================================================================
       
    35 */
       
    36 /** @file IRSystemEventObserver.h */
       
    37 
       
    38 #ifndef IRSYSTEMEVENTOBSERVER_H
       
    39 #define IRSYSTEMEVENTOBSERVER_H
       
    40 
       
    41 
       
    42 //  INCLUDES
       
    43 
       
    44 // DATA TYPES
       
    45 
       
    46 /** Type of system event */
       
    47 enum TIRSystemEventType
       
    48 	{
       
    49 	EIRHeadsetConnected,		 ///< Headset was connected
       
    50 	EIRHeadsetDisconnected,		 ///< Headset was disconnected
       
    51 	EIRNetworkCoverageUp,		 ///< Network coverage detected
       
    52 	EIRNetworkCoverageDown,		 ///< Network coverage lost
       
    53 	EIRCallActivated,			 ///< Call activated or ringing
       
    54 	EIRCallDeactivated,			 ///< Call disconnected
       
    55 	EIRLowDiskSpace,			 ///< Low disk space
       
    56 	EIRAudioRoutingHeadset,		 ///< Audio routed through headset
       
    57 	EIRAudioRoutingSpeaker,		 ///< Audio routed through speaker (IHF)
       
    58 	EIRAudioResourcesAvailable,  ///< Audio resources have become available
       
    59 	EIRAudioAutoResumeForbidden  ///< Audio auto resuming is forbidden
       
    60 	};
       
    61 
       
    62 // FORWARD DECLARATIONS
       
    63 
       
    64 // CLASS DECLARATION
       
    65 
       
    66 /**
       
    67 * Observer for any system event state change.
       
    68 */
       
    69 class MIRSystemEventObserver
       
    70     {
       
    71     public:  // Methods
       
    72 
       
    73 		/**
       
    74 		* Called when system event occurs.
       
    75 		* @param aEventType Type of the event
       
    76 		*/
       
    77         virtual void HandleSystemEventL(TIRSystemEventType aEventType) = 0;
       
    78 
       
    79     };
       
    80 
       
    81 #endif      // IRSYSTEMEVENTOBSERVER_H   
       
    82             
       
    83 // End of File