|
1 /* |
|
2 * Copyright (c) 2006 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: This header file contains macro definitions used by the database subsystem. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef MPXPODCASTCOLLECTIONDBDEF_H |
|
20 #define MPXPODCASTCOLLECTIONDBDEF_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <mmfmeta.h> |
|
24 |
|
25 // CONSTANTS |
|
26 |
|
27 // ================================== DATABASE ================================ |
|
28 |
|
29 // Db filename |
|
30 _LIT(KMCDbFile, "pcv6_1.db"); |
|
31 |
|
32 // Collection Db resource file |
|
33 _LIT(KMPXCollectionDbResourceFile, "PCRes.rsc"); |
|
34 |
|
35 // == TABLE NAMES =============================================== |
|
36 // The Auxiliary table stores general database metadata like last refresh time etc... |
|
37 _LIT(KMCAuxiliaryTable, "Auxiliary"); |
|
38 // The Podcast table stores information about the episodes stored within the collection |
|
39 _LIT(KMCPodcastTable, "Podcast"); |
|
40 // The author table stores information about the authors of the music stored in the collection |
|
41 _LIT(KMCAuthorTable, "Artist"); // podcast author = media artist |
|
42 // The Title table stores information about the podcast titles of the episodes stored in the collection |
|
43 _LIT(KMCTitleTable, "Album"); // podcast title = media album |
|
44 // The Category table stores information about the category of the episodes stored in the collection |
|
45 _LIT(KMCCategoryTable, "Genre"); // podcast category = media genre |
|
46 // The Composer table stores information about the composer of the episodes stored in the collection |
|
47 _LIT(KMCComposerTable, "Composer"); |
|
48 |
|
49 // == Podcast TABLE FIELDS ====================================================== |
|
50 // Uniqe Id (32 bits). Combination of 4bits of table Id and 28bits of MD5 hashed code |
|
51 // (from Path or Name string) |
|
52 _LIT(KMCPodcastUniqueId, "UniqueId"); |
|
53 _LIT(KMCPodcastVolumeId, "VolumeId"); |
|
54 _LIT(KMCPodcastSync, "Sync"); // Ever SYNCed with PC |
|
55 _LIT(KMCPodcastMod, "Modified"); // Modified in db |
|
56 _LIT(KMCPodcastIsPlaying, "IsPlaying"); // Episode is currently playing |
|
57 _LIT(KMCPodcastDel, "Deleted"); // File deleted already |
|
58 _LIT(KMCPodcastDuration, "Duration"); |
|
59 _LIT(KMCPodcastTimeAdded, "TimeAdded"); |
|
60 _LIT(KMCPodcastPlayCount, "PlayCount"); |
|
61 _LIT(KMCPodcastTimePlayed, "TimePlayed"); |
|
62 _LIT(KMCPodcastRating, "Rating"); |
|
63 // NOTE: Location will store the path and file name, without drive-letter |
|
64 _LIT(KMCPodcastLocation, "Location"); |
|
65 _LIT(KMCPodcastArt, "Art"); |
|
66 _LIT(KMCPodcastDbFlag, "DbFlag"); |
|
67 _LIT(KMCPodcastUrl, "Url"); |
|
68 _LIT(KMCPodcastDRM, "DRM"); |
|
69 _LIT(KMCPodcastReleaseDate, "ReleaseDate"); |
|
70 _LIT(KMCPodcastPublishDate, "PublishDate"); |
|
71 _LIT(KMCPodcastLastPlayPosition, "LastPlayPosition"); |
|
72 _LIT(KMCPodcastSampleRate, "SampleRate"); |
|
73 _LIT(KMCPodcastBitRate, "BitRate"); |
|
74 // Number of channels: required by MTP to support Play4sure |
|
75 _LIT(KMCPodcastNumChannels, "NumChannels"); |
|
76 // Audio Codec: required by MTP to support Play4sure |
|
77 _LIT(KMCPodcastCodec, "Codec"); |
|
78 _LIT(KMCPodcastMimeType, "MimeType"); |
|
79 |
|
80 // From MMF (MmfMeta.h) |
|
81 #define KMCPodcastName KMMFMetaEntrySongTitle // "title" |
|
82 // podcast author = media artist |
|
83 #define KMCPodcastAuthor KMMFMetaEntryArtist // "artist" |
|
84 // podcast title = media album |
|
85 #define KMCPodcastTitle KMMFMetaEntryAlbum // "album" |
|
86 #define KMCPodcastTrackNumber KMMFMetaEntryAlbumTrack // "albumtrack" |
|
87 // podcast category = media genre |
|
88 #define KMCPodcastGenre KMMFMetaEntryGenre // "genre" |
|
89 #define KMCPodcastComposer KMMFMetaEntryComposer // "composer" |
|
90 #define KMCPodcastComment KMMFMetaEntryComment // "comment" |
|
91 #define KMCPodcastCopyright KMMFMetaEntryCopyright // "copyright" |
|
92 #define KMCPodcastOrigArtist KMMFMetaEntryOriginalArtist // "originalartist" |
|
93 _LIT(KMCPodcastCategory, "PodcastCategory"); |
|
94 // end of MMF support data |
|
95 |
|
96 // == Category TABLE FIELDS =================================================== |
|
97 _LIT(KMCCategoryUniqueId, "UniqueId"); |
|
98 _LIT(KMCCategoryName, "Name"); |
|
99 _LIT(KMCCategoryCountEpisodes, "EpisodeCount"); |
|
100 |
|
101 // == Auxiliary TABLE FIELDS ================================================== |
|
102 // Version of database |
|
103 // The version integer looks like: |
|
104 // 31 23 15 0 bit |
|
105 // ----------------------------- |
|
106 // |Major |Minor |Build | |
|
107 // ----------------------------- |
|
108 _LIT(KMCAuxVersion, "Version"); |
|
109 |
|
110 // Last time db was refreshed |
|
111 _LIT(KMCAuxTimeRefresh, "TimeRefreshed"); |
|
112 |
|
113 // Last time db was synced |
|
114 _LIT(KMCAuxTimeSync, "TimeSynced"); |
|
115 |
|
116 // Database Corrupted bit |
|
117 _LIT(KMCPodcastCorruptDB, "Corrupt"); |
|
118 |
|
119 // Number of records that have been marked as deleted |
|
120 _LIT(KMCSavedDeletedRecordCount, "SaveDeletedRecordCount"); |
|
121 |
|
122 |
|
123 #endif // MPXPODCASTCOLLECTIONDBDEF_H |
|
124 |
|
125 //End of File |