musicplayer_plat/mpx_music_shop_ui_api/inc/MMusicShopBrViewCallback.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Thu, 17 Dec 2009 08:45:05 +0200
changeset 0 ff3acec5bc43
child 2 b70d77332e66
permissions -rw-r--r--
Revision: 200949 Kit: 200951

/*
* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  MusicShop Browser  view callback provider.
*
*/


#ifndef M_MUSICSHOP_BR_VIEW_CALLBACK_H
#define M_MUSICSHOP_BR_VIEW_CALLBACK_H

// INCLUDE FILES
#include <MusicShopExternalInterface.h>


// CLASS DECLARATION

/**
* Interface to give callback to browser view.
*
* @lib MusicShopLib.lib
* @since S60 3.2.3
*/
class MMusicShopBrViewCallback
    {
    public:
        enum TMusDownloadControlCommandId
            {
            EPauseDownload = 0x01, // pause
            EResumeDownload, // resume
            ECancelDownload // cancel
            };
        /**
        * Activate the MusicShop application view based on view id
        *
        * @since S60 3.2.3
        * @param aViewId view id,
        *                KUidMusBrViewId for browser  view,
        *                KUidMusBmViewId for bookmark view.
        */
        virtual void ActivateMusicShopViewL (TUid aViewId) = 0;

        /**
        * Handle pause/resume/cancel download related commands from Music Player playback view.
        *
        * @since S60 3.2.3
        * @param aControlDownloadCommandId pause/resume/cancel download command id.
        */
        virtual void HandleDownloadCommandL ( TMusDownloadControlCommandId aControlDownloadCommandId ) = 0;
    };

#endif //M_MUSICSHOP_BR_VIEW_CALLBACK_H

    // End of File