videocollection/inc/videocollectioncommon.h
author hgs
Thu, 01 Apr 2010 22:38:49 +0300
changeset 30 4f111d64a341
child 34 bbb98528c666
permissions -rw-r--r--
201005
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
30
hgs
parents:
diff changeset
     1
/*
hgs
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
hgs
parents:
diff changeset
     3
* All rights reserved.
hgs
parents:
diff changeset
     4
* This component and the accompanying materials are made available
hgs
parents:
diff changeset
     5
* under the terms of "Eclipse Public License v1.0"
hgs
parents:
diff changeset
     6
* which accompanies this distribution, and is available
hgs
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
hgs
parents:
diff changeset
     8
*
hgs
parents:
diff changeset
     9
* Initial Contributors:
hgs
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
hgs
parents:
diff changeset
    11
*
hgs
parents:
diff changeset
    12
* Contributors:
hgs
parents:
diff changeset
    13
*
hgs
parents:
diff changeset
    14
* Description:  definition of common data for video collection components
hgs
parents:
diff changeset
    15
*
hgs
parents:
diff changeset
    16
*/
hgs
parents:
diff changeset
    17
hgs
parents:
diff changeset
    18
#ifndef __VIDEOCOLLECTIONCOMMON_H__
hgs
parents:
diff changeset
    19
#define __VIDEOCOLLECTIONCOMMON_H__
hgs
parents:
diff changeset
    20
hgs
parents:
diff changeset
    21
hgs
parents:
diff changeset
    22
#include <QObject>
hgs
parents:
diff changeset
    23
hgs
parents:
diff changeset
    24
namespace VideoCollectionCommon
hgs
parents:
diff changeset
    25
{
hgs
parents:
diff changeset
    26
    /**
hgs
parents:
diff changeset
    27
    * enums indicating keys for the detail data 
hgs
parents:
diff changeset
    28
    * fetched from video model
hgs
parents:
diff changeset
    29
    */
hgs
parents:
diff changeset
    30
    enum VideoDetailKey
hgs
parents:
diff changeset
    31
    {
hgs
parents:
diff changeset
    32
        KeyUndefined = Qt::UserRole,
hgs
parents:
diff changeset
    33
        KeyDateTime,
hgs
parents:
diff changeset
    34
		KeySizeValue,
hgs
parents:
diff changeset
    35
		KeyStatus,
hgs
parents:
diff changeset
    36
		KeyMetaData,
hgs
parents:
diff changeset
    37
		KeyFilePath,
hgs
parents:
diff changeset
    38
        KeyLast
hgs
parents:
diff changeset
    39
    };
hgs
parents:
diff changeset
    40
    
hgs
parents:
diff changeset
    41
    /**
hgs
parents:
diff changeset
    42
    * Keys for the metadata map fetched from video model.
hgs
parents:
diff changeset
    43
    * These are strings, because QVariant only supports QMap<QString, QVariant>
hgs
parents:
diff changeset
    44
    */
hgs
parents:
diff changeset
    45
    const char* const MetaKeyDate = "MetaKeyDate";
hgs
parents:
diff changeset
    46
    const char* const MetaKeyDurationString = "MetaKeyDurationString";
hgs
parents:
diff changeset
    47
    const char* const MetaKeySizeString = "MetaKeySizeString";
hgs
parents:
diff changeset
    48
    const char* const MetaKeyStarRating = "MetaKeyStarRating";
hgs
parents:
diff changeset
    49
    const char* const MetaKeyDRMInfo = "MetaKeyDRMInfo";
hgs
parents:
diff changeset
    50
    const char* const MetaKeyServiceURL = "MetaKeyServiceURL";
hgs
parents:
diff changeset
    51
    const char* const MetaKeyDescription = "MetaKeyDescription";
hgs
parents:
diff changeset
    52
    const char* const MetaKeyModifiedDate = "MetaKeyModifiedDate";
hgs
parents:
diff changeset
    53
    const char* const MetaKeyShotLocation = "MetaKeyShotLocation";
hgs
parents:
diff changeset
    54
    const char* const MetaKeyAuthor = "MetaKeyAuthor";
hgs
parents:
diff changeset
    55
    const char* const MetaKeyCopyright = "MetaKeyCopyright";
hgs
parents:
diff changeset
    56
    const char* const MetaKeyAudioType = "MetaKeyAudioType";
hgs
parents:
diff changeset
    57
    const char* const MetaKeyLanguageString = "MetaKeyLanguageString";
hgs
parents:
diff changeset
    58
    const char* const MetaKeyKeywords = "MetaKeyKeywords";
hgs
parents:
diff changeset
    59
    const char* const MetaKeyVideoResolutionString = "MetaKeyVideoResolutionString";
hgs
parents:
diff changeset
    60
    const char* const MetaKeyBitRate = "MetaKeyBitRate";
hgs
parents:
diff changeset
    61
    const char* const MetaKeyFormat = "MetaKeyFormat";
hgs
parents:
diff changeset
    62
    
hgs
parents:
diff changeset
    63
    enum VideoItemStatus
hgs
parents:
diff changeset
    64
    {
hgs
parents:
diff changeset
    65
        StatusNone = 0,
hgs
parents:
diff changeset
    66
        StatusDeleted
hgs
parents:
diff changeset
    67
    };
hgs
parents:
diff changeset
    68
    
hgs
parents:
diff changeset
    69
    /**
hgs
parents:
diff changeset
    70
     * Labels for the different details. Needs to be in the same
hgs
parents:
diff changeset
    71
     * order than the VideoDetailLabelKeys.
hgs
parents:
diff changeset
    72
     */
hgs
parents:
diff changeset
    73
    const char * const VideoDetailLabels[] = {
hgs
parents:
diff changeset
    74
            QT_TR_NOOP("DRM: %1"),
hgs
parents:
diff changeset
    75
            QT_TR_NOOP("Service: %1"),
hgs
parents:
diff changeset
    76
            QT_TR_NOOP("Description: %1"),
hgs
parents:
diff changeset
    77
            QT_TR_NOOP("Length: %1"),
hgs
parents:
diff changeset
    78
            QT_TR_NOOP("Date: %1"),
hgs
parents:
diff changeset
    79
            QT_TR_NOOP("Modified: %1"),
hgs
parents:
diff changeset
    80
            QT_TR_NOOP("Location: %1"),
hgs
parents:
diff changeset
    81
            QT_TR_NOOP("Author: %1"),
hgs
parents:
diff changeset
    82
            QT_TR_NOOP("Copyright: %1"),
hgs
parents:
diff changeset
    83
            QT_TR_NOOP("Audio Type: %1"),
hgs
parents:
diff changeset
    84
            QT_TR_NOOP("Language: %1"),
hgs
parents:
diff changeset
    85
            QT_TR_NOOP("Keywords: %1"),
hgs
parents:
diff changeset
    86
            QT_TR_NOOP("Size: %1"),
hgs
parents:
diff changeset
    87
            QT_TR_NOOP("Resolution: %1"),
hgs
parents:
diff changeset
    88
            QT_TR_NOOP("Format: %1"),
hgs
parents:
diff changeset
    89
            QT_TR_NOOP("Bitrate: %1")
hgs
parents:
diff changeset
    90
    };
hgs
parents:
diff changeset
    91
hgs
parents:
diff changeset
    92
    /**
hgs
parents:
diff changeset
    93
     * Order of keys in the labels const array.
hgs
parents:
diff changeset
    94
     */
hgs
parents:
diff changeset
    95
    const char * const VideoDetailLabelKeys[] = {
hgs
parents:
diff changeset
    96
            MetaKeyDRMInfo,
hgs
parents:
diff changeset
    97
            MetaKeyServiceURL,
hgs
parents:
diff changeset
    98
            MetaKeyDescription,
hgs
parents:
diff changeset
    99
            MetaKeyDurationString,
hgs
parents:
diff changeset
   100
            MetaKeyDate,
hgs
parents:
diff changeset
   101
            MetaKeyModifiedDate,
hgs
parents:
diff changeset
   102
            MetaKeyShotLocation,
hgs
parents:
diff changeset
   103
            MetaKeyAuthor,
hgs
parents:
diff changeset
   104
            MetaKeyCopyright,
hgs
parents:
diff changeset
   105
            MetaKeyAudioType,
hgs
parents:
diff changeset
   106
            MetaKeyLanguageString,
hgs
parents:
diff changeset
   107
            MetaKeyKeywords,
hgs
parents:
diff changeset
   108
            MetaKeySizeString,
hgs
parents:
diff changeset
   109
            MetaKeyVideoResolutionString,
hgs
parents:
diff changeset
   110
            MetaKeyFormat,
hgs
parents:
diff changeset
   111
            MetaKeyBitRate
hgs
parents:
diff changeset
   112
    };
hgs
parents:
diff changeset
   113
    
hgs
parents:
diff changeset
   114
    
hgs
parents:
diff changeset
   115
    /**
hgs
parents:
diff changeset
   116
     * Collection related asyncronous 
hgs
parents:
diff changeset
   117
     * operations status codes
hgs
parents:
diff changeset
   118
     */
hgs
parents:
diff changeset
   119
    enum VideoCollectionAsyncStatus
hgs
parents:
diff changeset
   120
    {
hgs
parents:
diff changeset
   121
        statusSingleDeleteFail = 1,
hgs
parents:
diff changeset
   122
        statusMultipleDeleteFail,
hgs
parents:
diff changeset
   123
        statusMultipleDeleteSucceed        
hgs
parents:
diff changeset
   124
    };
hgs
parents:
diff changeset
   125
    
hgs
parents:
diff changeset
   126
   
hgs
parents:
diff changeset
   127
}
hgs
parents:
diff changeset
   128
#endif	// __VIDEOCOLLECTIONCOMMON_H__