musicplayer_plat/mpx_music_shop_ui_api/inc/MMusicShopBrViewCallback.h
changeset 0 ff3acec5bc43
child 2 b70d77332e66
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/musicplayer_plat/mpx_music_shop_ui_api/inc/MMusicShopBrViewCallback.h	Thu Dec 17 08:45:05 2009 +0200
@@ -0,0 +1,65 @@
+/*
+* 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
+