inc/mpcommondefs.h
branchRCL_3
changeset 52 14979e23cb5e
equal deleted inserted replaced
50:26a1709b9fec 52:14979e23cb5e
       
     1 /*
       
     2 * Copyright (c) 2009 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:  Common definitios.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef MPCOMMONDEFS_H
       
    21 #define MPCOMMONDEFS_H
       
    22 
       
    23 #include <QMetaType>
       
    24 
       
    25 namespace MpCommon
       
    26 {
       
    27     // UID definition
       
    28     const long int KMusicPlayerUid      = {0x10207C62};
       
    29     const long int KCollectionViewUid   = {0x10207C63};
       
    30     const long int KPlaybackViewUid     = {0x10207C64};
       
    31     const long int KSettingsViewUid     = {0x10207C66};
       
    32     const long int KDetailsViewUid      = {0x2002D0AA};
       
    33     const long int KMediaWallViewUid    = {0x10207C94};
       
    34 
       
    35     /*!
       
    36      Command code sent from the views to the application main window
       
    37      through command signal.
       
    38      */
       
    39     enum MpCommandCode {
       
    40         Exit,
       
    41         SendToBackground,
       
    42         ActivateCollectionView,
       
    43         ActivatePlaybackView,
       
    44         ActivateSettingsView,
       
    45         ActivateDetailsView,
       
    46         ActivatePreviousView
       
    47     };
       
    48 
       
    49     /*!
       
    50      View's mode.
       
    51      DefaultView - Default mode; normal Music Player operation.
       
    52      FetchView - Music fetcher mode; launched through QtHighway interface.
       
    53      */
       
    54     enum MpViewMode {
       
    55         DefaultView,
       
    56         FetchView,
       
    57         EmbeddedView
       
    58     };
       
    59     
       
    60     /*!
       
    61     Thumbnail type, used in collection model.
       
    62     */
       
    63     enum MpThumbType{
       
    64         ListThumb,
       
    65         TBoneThumb,
       
    66         MediaWallThumb,
       
    67     };
       
    68     
       
    69     /*!
       
    70     Volume property, used in MpMpxPlaybackFramework and MpVolumeSlider.
       
    71     */
       
    72     enum MpVolumeProperty{
       
    73         MaxVolume,
       
    74         Volume,
       
    75         MuteState
       
    76     };
       
    77 }
       
    78 
       
    79     // Register MpVolumeProperty so can be used in signal and slot connection
       
    80     Q_DECLARE_METATYPE( MpCommon::MpVolumeProperty )
       
    81 
       
    82 #endif	// MPCOMMONDEFS_H