musicplayer_plat/mpx_music_shop_ui_api/inc/MMusicShopBrViewCallback.h
changeset 0 ff3acec5bc43
child 2 b70d77332e66
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2005 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:  MusicShop Browser  view callback provider.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef M_MUSICSHOP_BR_VIEW_CALLBACK_H
       
    20 #define M_MUSICSHOP_BR_VIEW_CALLBACK_H
       
    21 
       
    22 // INCLUDE FILES
       
    23 #include <MusicShopExternalInterface.h>
       
    24 
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 * Interface to give callback to browser view.
       
    30 *
       
    31 * @lib MusicShopLib.lib
       
    32 * @since S60 3.2.3
       
    33 */
       
    34 class MMusicShopBrViewCallback
       
    35     {
       
    36     public:
       
    37         enum TMusDownloadControlCommandId
       
    38             {
       
    39             EPauseDownload = 0x01, // pause
       
    40             EResumeDownload, // resume
       
    41             ECancelDownload // cancel
       
    42             };
       
    43         /**
       
    44         * Activate the MusicShop application view based on view id
       
    45         *
       
    46         * @since S60 3.2.3
       
    47         * @param aViewId view id,
       
    48         *                KUidMusBrViewId for browser  view,
       
    49         *                KUidMusBmViewId for bookmark view.
       
    50         */
       
    51         virtual void ActivateMusicShopViewL (TUid aViewId) = 0;
       
    52 
       
    53         /**
       
    54         * Handle pause/resume/cancel download related commands from Music Player playback view.
       
    55         *
       
    56         * @since S60 3.2.3
       
    57         * @param aControlDownloadCommandId pause/resume/cancel download command id.
       
    58         */
       
    59         virtual void HandleDownloadCommandL ( TMusDownloadControlCommandId aControlDownloadCommandId ) = 0;
       
    60     };
       
    61 
       
    62 #endif //M_MUSICSHOP_BR_VIEW_CALLBACK_H
       
    63 
       
    64     // End of File
       
    65