mds_plat/metadata_engine_api/inc/mdeconstants.h
changeset 60 79f826a55db2
equal deleted inserted replaced
58:fe894bb075c2 60:79f826a55db2
       
     1 /*
       
     2 * Copyright (c) 2007-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:  Metadata Engine's literals.
       
    15 *
       
    16 */
       
    17 
       
    18 // conforms to Metadata schema version 1.6
       
    19 
       
    20 #ifndef MDECONSTANTS_H
       
    21 #define MDECONSTANTS_H
       
    22 
       
    23 namespace MdeConstants
       
    24     {
       
    25     namespace Object
       
    26         {
       
    27         _LIT( KBaseObject, "Object" );
       
    28         _LIT( KAutomaticUri, "" );
       
    29 
       
    30         _LIT( KSizeProperty, "Size" );
       
    31         _LIT( KOriginProperty, "Origin" );
       
    32         _LIT( KUsageCountProperty, "UsageCount" );
       
    33         _LIT( KCreationDateProperty, "CreationDate" );
       
    34         _LIT( KLastModifiedDateProperty, "LastModifiedDate" );
       
    35         _LIT( KItemTypeProperty, "ItemType" );
       
    36         _LIT( KTitleProperty, "Title" );
       
    37         _LIT( KTimeOffsetProperty, "TimeOffset" );
       
    38         _LIT( KInDefaultFolder, "InDefaultFolder" );
       
    39 
       
    40         enum TOrigin
       
    41             {
       
    42             EOther      = 0,
       
    43             ECamera     = 1,
       
    44             EDownloaded = 2,
       
    45             ESideLoaded = 3,
       
    46             ERecorded   = 4
       
    47             };
       
    48         }
       
    49         typedef MdeConstants::Object::TOrigin Origin; // deprecated
       
    50 
       
    51     namespace Location
       
    52         {
       
    53         _LIT( KLocationObject, "Location" );
       
    54         _LIT( KLocationItemType, "application/vnd.nokia.mde.locationcontext" );
       
    55 
       
    56         _LIT( KCellIdProperty, "CellID" );
       
    57         _LIT( KCountryCodeProperty, "CountryCodeStr" );
       
    58         _LIT( KNetworkCodeProperty, "NetworkCodeStr" );
       
    59         _LIT( KLocationAreaCodeProperty, "LocationAreaCode" );
       
    60         _LIT( KSpeedProperty, "Speed" );
       
    61         _LIT( KDirectionProperty, "Direction" );
       
    62         _LIT( KQualityProperty, "Quality" );
       
    63         _LIT( KLatitudeProperty, "Latitude" );
       
    64         _LIT( KLongitudeProperty, "Longitude" );
       
    65         _LIT( KAltitudeProperty, "Altitude" );
       
    66         _LIT( KSatellitesProperty, "Satellites" );
       
    67         _LIT( KCountryProperty, "Country" );
       
    68         _LIT( KCellNameProperty, "CellName" );
       
    69         }
       
    70 
       
    71     namespace Calendar
       
    72         {
       
    73         _LIT( KCalendarObject, "Calendar" );
       
    74         _LIT( KCalendarItemType, "application/vnd.nokia.mde.calendarcontext" );
       
    75 
       
    76         _LIT( KCalendarTypeProperty, "CalendarType" );
       
    77         _LIT( KStartTimeProperty, "StartTime" );
       
    78         _LIT( KEndTimeProperty, "EndTime" );
       
    79         _LIT( KLocationProperty, "Location" );
       
    80         _LIT( KvCalendarProperty, "vCalendar" );
       
    81         _LIT( KLocalUidProperty, "LocalUid" );
       
    82         }
       
    83 
       
    84     namespace Contact
       
    85         {
       
    86         _LIT( KContactObject, "Contact" );
       
    87         _LIT( KContactItemType, "application/vnd.nokia.mde.contactcontext" );
       
    88 
       
    89         _LIT( KNumberProperty, "Number" );
       
    90         _LIT( KEmailAddressProperty, "EmailAddress" );
       
    91         _LIT( KCompanyProperty, "Company" );
       
    92         _LIT( KJobTitleProperty, "JobTitle" );
       
    93         _LIT( KAddressProperty, "Address" );
       
    94         _LIT( KURLProperty, "ContactURL" );
       
    95         _LIT( KvCardProperty, "vCard" );
       
    96         }
       
    97 
       
    98     namespace Message
       
    99         {
       
   100         _LIT( KMessageObject, "Message" );
       
   101         _LIT( KSMSItemType, "application/vnd.nokia.mde.sms" );
       
   102         _LIT( KMMSItemType, "application/vnd.nokia.mde.mms" );
       
   103 
       
   104         _LIT( KReceivedProperty, "Received" );
       
   105         _LIT( KSenderProperty, "Sender" );
       
   106         _LIT( KToWhomProperty, "ToWhom" );
       
   107         }
       
   108 
       
   109     namespace Album
       
   110         {
       
   111         _LIT( KAlbumObject, "Album" );
       
   112         _LIT( KAlbumItemType, "application/vnd.nokia.mde.album" );
       
   113 
       
   114         _LIT( KOrderedProperty, "Ordered" );
       
   115         _LIT( KTypeProperty, "Type" );
       
   116         
       
   117         // Depricated
       
   118         _LIT( KPropertiesProperty, "Properties" );
       
   119         _LIT( KSlideshowWallpaperProperty, "SlideshowWallpaper" );
       
   120 
       
   121         enum TAlbumType
       
   122             {
       
   123             EAlbumUser            = 0,
       
   124             EAlbumUserPredefined  = 1,
       
   125             EAlbumSystemFavourite = 2,
       
   126             EAlbumSystemCamera  = 3,
       
   127             };
       
   128         typedef MdeConstants::Album::TAlbumType AlbumType; // deprecated
       
   129         }
       
   130 
       
   131     namespace Tag
       
   132         {
       
   133         _LIT( KTagObject, "Tag" );
       
   134         _LIT( KTagItemType, "application/vnd.nokia.mde.tag" );
       
   135         enum TTagType
       
   136             {
       
   137             EUserDefineTags = 0,
       
   138             ESystemDefineCityTags = 1,
       
   139             ESystemDefineCountryTags = 2,
       
   140             EUnMappedLocationTags = 3
       
   141             };
       
   142         }
       
   143 
       
   144     namespace MediaObject
       
   145         {
       
   146         _LIT( KMediaObject, "MediaObject" );
       
   147 
       
   148         _LIT( KProtectedProperty, "Protected" );
       
   149         _LIT( KDRMProperty, "DRM" );
       
   150         _LIT( KThumbnailPresentProperty, "ThumbnailPresent" );
       
   151         _LIT( KResizedProperty, "Resized" );
       
   152         _LIT( KSampleProperty, "Sample" );
       
   153         _LIT( KRatingProperty, "Rating" );
       
   154         _LIT( KPrivacyProperty, "Privacy" );
       
   155         _LIT( KResolutionUnitProperty, "ResolutionUnit" );
       
   156         _LIT( KBitrateProperty, "Bitrate" );
       
   157         _LIT( KWidthProperty, "Width" );
       
   158         _LIT( KHeightProperty, "Height" );
       
   159         _LIT( KPreinstalledProperty, "Preinstalled" );
       
   160         _LIT( KAccessCountProperty, "AccessCount" );
       
   161         _LIT( KDownloadIdProperty, "DownloadID" );
       
   162         _LIT( KDurationProperty, "Duration" );
       
   163         _LIT( KReleaseDateProperty, "ReleaseDate" );
       
   164         _LIT( KCaptureDateProperty, "CaptureDate" );
       
   165         _LIT( KArtistProperty, "Artist" );
       
   166         _LIT( KAuthorProperty, "Author" );
       
   167         _LIT( KCopyrightProperty, "Copyright" );
       
   168         _LIT( KLegalProperty, "Legal" );
       
   169         _LIT( KDescriptionProperty, "Description" );
       
   170         _LIT( KCommentProperty, "Comment" );
       
   171         _LIT( KGenreProperty, "Genre" );
       
   172         _LIT( KTrackProperty, "Track" );
       
   173         _LIT( KAudioFourCCProperty, "AudioFourCC" );
       
   174         
       
   175         enum TPreinstalledFlag
       
   176         	{
       
   177         	ENotPreinstalled = 0,
       
   178         	EPreinstalled    = 1
       
   179         	};
       
   180         }
       
   181 
       
   182     namespace Video // derived from MediaObject
       
   183         {
       
   184         _LIT( KVideoObject, "Video" );
       
   185 
       
   186         _LIT( KAgeProfileProperty, "AgeProfile" );
       
   187         _LIT( KRecordingFlagsProperty, "RecordingFlags" );
       
   188         _LIT( KLastPlayPositionProperty, "LastPlayPosition" );
       
   189         _LIT( KFramerateProperty, "Framerate" );
       
   190         _LIT( KAudioLanguageProperty, "AudioLanguage" );
       
   191         }
       
   192 
       
   193     namespace Image // derived from MediaObject
       
   194         {
       
   195         _LIT( KImageObject, "Image" );
       
   196 
       
   197         _LIT( KDraftProperty, "Draft" );
       
   198         _LIT( KFocalPlaneResolutionUnitProperty, "FocalPlaneResolutionUnit" );
       
   199         _LIT( KExposureProgramProperty, "ExposureProgram" );
       
   200         _LIT( KFocalLengthIn35mmFilmProperty, "FocalLengthIn35mmFilm" );
       
   201         _LIT( KISOSpeedRatingsProperty, "ISOSpeedRatings" );
       
   202         _LIT( KMeteringModeProperty, "MeteringMode" );
       
   203         _LIT( KWhiteBalanceProperty, "WhiteBalance" );
       
   204         _LIT( KFlashProperty, "Flash" );
       
   205         _LIT( KColourSpaceProperty, "ColourSpace" );
       
   206         _LIT( KOrientationProperty, "Orientation" );
       
   207         _LIT( KSamplesPerPixelProperty, "SamplesPerPixel" );
       
   208         _LIT( KBitsPerSampleProperty, "BitsPerSample" );
       
   209         _LIT( KYCbCrPositioningProperty, "YCbCrPositioning" );
       
   210         _LIT( KThumbCompressionProperty, "ThumbCompression" );
       
   211         _LIT( KThumbResolutionUnitProperty, "ThumbResolutionUnit" );
       
   212         _LIT( KThumbOrientationProperty, "ThumbOrientation" );
       
   213         _LIT( KFrameCountProperty, "FrameCount" );
       
   214         _LIT( KPixelXDimensionProperty, "PixelXDimension" );
       
   215         _LIT( KPixelYDimensionProperty, "PixelYDimension" );
       
   216         _LIT( KExifVersionProperty, "ExifVersion" );
       
   217         _LIT( KComponentsConfigurationProperty, "ComponentsConfiguration" );
       
   218         _LIT( KFlashPixVersionProperty, "FlashPixVersion" );
       
   219         _LIT( KThumbXResolutionProperty, "ThumbXResolution" );
       
   220         _LIT( KThumbYResolutionProperty, "ThumbYResolution" );
       
   221         _LIT( KFocalPlaneXResolutionProperty, "FocalPlaneXResolution" );
       
   222         _LIT( KFocalPlaneYResolutionProperty, "FocalPlaneYResolution" );
       
   223         _LIT( KExposureTimeProperty, "ExposureTime" );
       
   224         _LIT( KExposureBiasValueProperty, "ExposureBiasValue" );
       
   225         _LIT( KFNumberProperty, "FNumber" );
       
   226         _LIT( KFocalLengthProperty, "FocalLength" );
       
   227         _LIT( KApertureValueProperty, "ApertureValue" );
       
   228         _LIT( KMaxApertureProperty, "MaxAperture" );
       
   229         _LIT( KShutterSpeedValueProperty, "ShutterSpeedValue" );
       
   230         _LIT( KXResolutionProperty, "XResolution" );
       
   231         _LIT( KYResolutionProperty, "YResolution" );
       
   232         _LIT( KDateTimeProperty, "DateTime" );
       
   233         _LIT( KDateTimeDigitizedProperty, "DateTimeDigitized" );
       
   234         _LIT( KDateTimeOriginalProperty, "DateTimeOriginal" );
       
   235         _LIT( KPixelFormatProperty, "PixelFormat" );
       
   236         _LIT( KModelProperty, "Model" );
       
   237         _LIT( KMakeProperty, "Make" );
       
   238         _LIT( KRelatedSoundFileProperty, "RelatedSoundFile" );
       
   239         }
       
   240 
       
   241     namespace Audio // derived from MediaObject
       
   242         {
       
   243         _LIT( KAudioObject, "Audio" );
       
   244 
       
   245         _LIT( KSamplingFrequencyProperty, "SamplingFrequency" );
       
   246         _LIT( KAlbumProperty, "Album" );
       
   247         _LIT( KComposerProperty, "Composer" );
       
   248         _LIT( KOriginalArtistProperty, "OriginalArtist" );
       
   249         _LIT( KAlbumArtistProperty, "AlbumArtist" );
       
   250         }
       
   251 
       
   252     namespace Events
       
   253         {
       
   254         _LIT( KCreated, "Created" );
       
   255         _LIT( KDeleted, "Deleted" );
       
   256         _LIT( KOpened, "Opened" );
       
   257         _LIT( KPlayed, "Played" );
       
   258         _LIT( KEdited, "Edited" );
       
   259         _LIT( KSent, "Sent" );
       
   260         _LIT( KReceived, "Received" );
       
   261         }
       
   262 
       
   263     namespace Relations
       
   264         {
       
   265         _LIT( KContains, "Contains" );
       
   266         _LIT( KReplaces, "Replaces" );
       
   267         _LIT( KIsVersionOf, "IsVersionOf" );
       
   268         _LIT( KRequires, "Requires" );
       
   269         _LIT( KUses, "Uses" );
       
   270         _LIT( KReferences, "References" );
       
   271         _LIT( KSummarises, "Summarises" );
       
   272         _LIT( KContainsLocation, "ContainsLocation" );
       
   273         }
       
   274 
       
   275     namespace TrackLog
       
   276     	{
       
   277     	_LIT( KTrackLogObject, "TrackLog" );
       
   278     	_LIT( KTrackLogItemType, "application/vnd.nokia.mde.tracklog" );
       
   279     	_LIT( KLengthProperty, "Length" );
       
   280     	_LIT( KStartTimeProperty, "StartTime" );
       
   281     	_LIT( KStopTimeProperty, "StopTime" );
       
   282     	}
       
   283     }
       
   284 
       
   285 // type definitions
       
   286 
       
   287 typedef MdeConstants::Object::TOrigin TOrigin;
       
   288 
       
   289 
       
   290 #endif // MDECONSTANTS_H