musicplayer_plat/mpx_music_player_app_api/inc/mpxconstants.h
changeset 0 ff3acec5bc43
child 14 943ff5625028
equal deleted inserted replaced
-1:000000000000 0:ff3acec5bc43
       
     1 /*
       
     2 * Copyright (c) 2006 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:  MPXMusicPlayer constants
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPXCONSTANTS_H
       
    21 #define MPXCONSTANTS_H
       
    22 
       
    23 
       
    24 // INCLUDES
       
    25 #include "mpxmusicplayer.hrh"
       
    26 
       
    27 
       
    28 // CONSTANTS
       
    29 // MusicPlayer application UID
       
    30 const TUid KAppUidMusicPlayerX = {KMusicPlayerAppUidConstant};
       
    31 
       
    32 // Host application UIDs in embedded mode
       
    33 #define KMPXMessagingUid  0x100058C5
       
    34 #define KMPXMmsViewerUid  0x100058DF
       
    35 #define KMPXMmsEditorUid  0x100058DE
       
    36 #define KMPXMailViewerUid 0x101F4CE4
       
    37 #define KMPXMailEditorUid 0x101F4CD6
       
    38 #define KMPXBrowserUid    0x10008D39
       
    39 #define KMPXBrowserUid2   0x1020724D
       
    40 #define KMPXMusicShopUid  0x101F8839
       
    41 
       
    42 // Uid for Podcast Collection Plugin
       
    43 const TUid KMPXUidPodcastDBPlugin = { 0x101FFC3C };
       
    44 
       
    45 // DATA TYPES
       
    46 
       
    47 // MPX Music Player start up parameters (dochandler), the order of enums can't 
       
    48 // be changed.
       
    49 enum TMPXLaunchMode
       
    50     {
       
    51     // Player is started in playing state
       
    52     EMPXLaunchModePlaying,
       
    53 
       
    54     // Player is started in stopped state
       
    55     EMPXLaunchModeStopped,
       
    56 
       
    57     // Player is started to play a preview
       
    58     // clip embedded in the audio file
       
    59     EMPXLaunchModePlayPreview,
       
    60 
       
    61     // Not in embedded mode or unknown status
       
    62     EMPXLaunchModeUnknown,
       
    63 
       
    64     // A single track was opened in embedded mode
       
    65     EMPXLaunchModeTrack,
       
    66 
       
    67     // A playlist was opened in embedded mode
       
    68     EMPXLaunchModePlaylist,
       
    69 
       
    70     // A temporary playlist was opened by
       
    71     // marking several tracks in Gallery
       
    72     EMPXLaunchModeTempPlaylist
       
    73     };
       
    74 
       
    75 // ERROR CODES
       
    76 
       
    77 // Error code to note that the rights on a DRM file are about to expire
       
    78 // so the proper warning message can be displayed.
       
    79 const TInt KMPXRightsAboutToExpire  = -40000;     
       
    80 
       
    81 // Error code to indicate that all tracks in a playlist are invalid so the
       
    82 // proper error message can be displayed.
       
    83 const TInt KMPXAllTracksInvalid     = -40001;
       
    84 
       
    85 // Error code to indicate that playback not allowed during video call
       
    86 const TInt KMPXErrorVideoCall       = -40002;
       
    87 
       
    88 #endif  // MPXCONSTANTS_H   
       
    89             
       
    90 // End of File