videocollection/inc/videocollectioncommon.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
child 50 21fe8338c6bf
equal deleted inserted replaced
35:3738fe97f027 36:8aed59de29f9
    33     {
    33     {
    34         KeyUndefined = Qt::UserRole,
    34         KeyUndefined = Qt::UserRole,
    35         KeyDateTime,
    35         KeyDateTime,
    36 		KeySizeValue,
    36 		KeySizeValue,
    37 		KeyStatus,
    37 		KeyStatus,
    38 		KeyMetaData,
       
    39 		KeyFilePath,
    38 		KeyFilePath,
    40         KeyLast
    39         KeyLast,
       
    40         KeyNumberOfItems,
       
    41         KeyTitle
    41     };
    42     };
    42     
    43     
    43     /**
    44     /**
    44     * Keys for the metadata map fetched from video model.
    45     * Keys for the metadata map fetched from video model.
    45     * These are strings, because QVariant only supports QMap<QString, QVariant>
    46     * These are strings, because QVariant only supports QMap<QString, QVariant>
    72      * Labels for the different details. Needs to be in the same
    73      * Labels for the different details. Needs to be in the same
    73      * order than the VideoDetailLabelKeys.
    74      * order than the VideoDetailLabelKeys.
    74      */
    75      */
    75     const char * const VideoDetailLabels[] = {
    76     const char * const VideoDetailLabels[] = {
    76     		QT_TR_NOOP("txt_videos_list_drm"),
    77     		QT_TR_NOOP("txt_videos_list_drm"),
    77             QT_TR_NOOP("Service:"), //TODO: localisation
    78             QT_TR_NOOP("txt_videos_list_service"),
    78             QT_TR_NOOP("txt_videos_list_description"),
    79             QT_TR_NOOP("txt_videos_list_description"),
    79             QT_TR_NOOP("txt_videos_list_duration"),
    80             QT_TR_NOOP("txt_videos_list_duration"),
    80             QT_TR_NOOP("txt_videos_list_date"),
    81             QT_TR_NOOP("txt_videos_list_date"),
    81             QT_TR_NOOP("txt_videos_list_modified"),
    82             QT_TR_NOOP("txt_videos_list_modified"),
    82             QT_TR_NOOP("txt_videos_list_location"),
    83             QT_TR_NOOP("txt_videos_list_location"),
    83             QT_TR_NOOP("txt_videos_list_author"),
    84             QT_TR_NOOP("txt_videos_list_author"),
    84             QT_TR_NOOP("txt_videos_list_copyright"),
    85             QT_TR_NOOP("txt_videos_list_copyright"),
    85             QT_TR_NOOP("Audio Type:"), //TODO: localisation
    86             QT_TR_NOOP("txt_videos_list_audio_type"),
    86             QT_TR_NOOP("txt_videos_list_language"),
    87             QT_TR_NOOP("txt_videos_list_language"),
    87             QT_TR_NOOP("txt_videos_list_keywords"),
    88             QT_TR_NOOP("txt_videos_list_keywords"),
    88             QT_TR_NOOP("txt_videos_list_file_size"),
    89             QT_TR_NOOP("txt_videos_list_file_size"),
    89             QT_TR_NOOP("txt_videos_list_resolution"),
    90             QT_TR_NOOP("txt_videos_list_resolution"),
    90             QT_TR_NOOP("txt_videos_list_format"),
    91             QT_TR_NOOP("txt_videos_list_format"),
   149         statusRemoveSucceed,
   150         statusRemoveSucceed,
   150         statusVideosAddedToCollection,
   151         statusVideosAddedToCollection,
   151         statusAllVideosAlreadyInCollection,
   152         statusAllVideosAlreadyInCollection,
   152         statusVideosRemovedFromCollection
   153         statusVideosRemovedFromCollection
   153     };
   154     };
   154     
   155 
       
   156     enum TModelType
       
   157     {
       
   158     	EModelTypeInvalid,
       
   159     	EModelTypeAllVideos,
       
   160     	EModelTypeCollections,
       
   161     	EModelTypeCollectionContent,
       
   162     	EModelTypeGeneric
       
   163     };
       
   164 
   155     /**
   165     /**
   156      * Utility macro to trace heap consumption.
   166      * Utility macro to trace heap consumption.
   157      */
   167      */
   158 #ifdef _DEBUG
   168 #ifdef _DEBUG
   159     #define TRACE_HEAP(prefix)\
   169     #define TRACE_HEAP(prefix)\