photosgallery/slideshow/engine/inc/shwmusicobserver.h
changeset 0 4e91876724a2
equal deleted inserted replaced
-1:000000000000 0:4e91876724a2
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:    Music control observer interface 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef __MSHWMUSICOBSERVER_H__
       
    22 #define __MSHWMUSICOBSERVER_H__
       
    23 
       
    24 #include <e32std.h>
       
    25 
       
    26 /*! 
       
    27   @class MShwMusicObserver
       
    28   
       
    29   @discussion Observes for changes in the music controls volume and on/off state
       
    30               MPX-specific
       
    31   */
       
    32 class MShwMusicObserver
       
    33     {
       
    34     public:
       
    35 
       
    36         /**
       
    37          * Notification that music is playing.
       
    38          * If this method leaves, MusicOff will
       
    39          * be called.
       
    40          */
       
    41         virtual void MusicOnL() = 0;
       
    42 
       
    43         /**
       
    44          * Notification that music is not playing
       
    45          */
       
    46         virtual void MusicOff() = 0;
       
    47 
       
    48         /**
       
    49          * Notification that music volume has changed
       
    50          * @param aCurrentVolume The current volume 
       
    51          * @param aCurrentVolume The maximum volume 
       
    52          */
       
    53         virtual void MusicVolumeL( TInt aCurrentVolume, TInt aMaxVolume ) = 0;
       
    54 
       
    55         /**
       
    56          * Notification that music track had an error
       
    57          * @param aErrorCode The error code
       
    58          */
       
    59         virtual void ErrorWithTrackL( TInt aErrorCode ) = 0;
       
    60 
       
    61     protected:
       
    62 
       
    63         /** 
       
    64          * Destructor. No deletion through this interface.
       
    65          */
       
    66         virtual ~MShwMusicObserver() {};
       
    67 
       
    68     };
       
    69 
       
    70 #endif // __MSHWMUSICOBSERVER_H__
       
    71