inc/mpcommondefs.h
changeset 48 af3740e3753f
parent 29 8192e5b5c935
child 58 ed94e1e8390e
equal deleted inserted replaced
42:79c49924ae23 48:af3740e3753f
    18 
    18 
    19 
    19 
    20 #ifndef MPCOMMONDEFS_H
    20 #ifndef MPCOMMONDEFS_H
    21 #define MPCOMMONDEFS_H
    21 #define MPCOMMONDEFS_H
    22 
    22 
       
    23 #include <QMetaType>
       
    24 
    23 namespace MpCommon
    25 namespace MpCommon
    24 {
    26 {
    25     // UID definition
    27     // UID definition
    26     const long int KMusicPlayerUid      = {0x10207C62};
    28     const long int KMusicPlayerUid      = {0x10207C62};
    27     const long int KCollectionViewUid   = {0x10207C63};
    29     const long int KCollectionViewUid   = {0x10207C63};
    38         Exit,
    40         Exit,
    39         SendToBackground,
    41         SendToBackground,
    40         ActivateCollectionView,
    42         ActivateCollectionView,
    41         ActivatePlaybackView,
    43         ActivatePlaybackView,
    42         ActivateSettingsView,
    44         ActivateSettingsView,
    43         ActivateDetailsView
    45         ActivateDetailsView,
       
    46         ActivatePreviousView
    44     };
    47     };
    45 
    48 
    46     /*!
    49     /*!
    47      View's mode.
    50      View's mode.
    48      DefaultView - Default mode; normal Music Player operation.
    51      DefaultView - Default mode; normal Music Player operation.
    60     enum MpThumbType{
    63     enum MpThumbType{
    61         ListThumb,
    64         ListThumb,
    62         TBoneThumb,
    65         TBoneThumb,
    63         MediaWallThumb,
    66         MediaWallThumb,
    64     };
    67     };
       
    68     
       
    69     /*!
       
    70     Volume property, used in MpMpxPlaybackFramework and MpVolumeSlider.
       
    71     */
       
    72     enum MpVolumeProperty{
       
    73         MaxVolume,
       
    74         Volume,
       
    75         MuteState
       
    76     };
    65 }
    77 }
    66 
    78 
       
    79     // Register MpVolumeProperty so can be used in signal and slot connection
       
    80     Q_DECLARE_METATYPE( MpCommon::MpVolumeProperty )
       
    81 
    67 #endif	// MPCOMMONDEFS_H
    82 #endif	// MPCOMMONDEFS_H