static media_content_attribute_info_s g_content_attrs_info[] = {
/* Media Info */
- {MEDIA_ID, DB_FIELD_MEDIA_ID, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ID},
- {MEDIA_PATH, DB_FIELD_MEDIA_PATH, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_PATH},
- {MEDIA_DISPLAY_NAME, DB_FIELD_MEDIA_DISPLAY_NAME, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_DISPLAY_NAME},
- {MEDIA_TYPE, DB_FIELD_MEDIA_TYPE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_TYPE},
- {MEDIA_MIME_TYPE, DB_FIELD_MEDIA_MIME_TYPE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_MIME_TYPE},
- {MEDIA_SIZE, DB_FIELD_MEDIA_SIZE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_SIZE},
- {MEDIA_ADDED_TIME, DB_FIELD_MEDIA_ADDED_TIME, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ADDED_TIME},
- {MEDIA_MODIFIED_TIME, DB_FIELD_MEDIA_MODIFIED_TIME, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_MODIFIED_TIME},
- {MEDIA_TIMELINE, DB_FIELD_MEDIA_TIMELINE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_TIMELINE},
- {MEDIA_THUMBNAIL_PATH, DB_FIELD_MEDIA_THUMBNAIL_PATH, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_THUMBNAIL_PATH},
- {MEDIA_TITLE, DB_FIELD_MEDIA_TITLE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_TITLE},
- {MEDIA_ALBUM, DB_FIELD_MEDIA_ALBUM, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ALBUM},
- {MEDIA_ARTIST, DB_FIELD_MEDIA_ARTIST, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ARTIST},
- {MEDIA_ALBUM_ARTIST, DB_FIELD_MEDIA_ALBUM_ARTIST, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ALBUM_ARTIST},
- {MEDIA_GENRE, DB_FIELD_MEDIA_GENRE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_GENRE},
- {MEDIA_COMPOSER, DB_FIELD_MEDIA_COMPOSER, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_COMPOSER},
- {MEDIA_YEAR, DB_FIELD_MEDIA_YEAR, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_YEAR},
- {MEDIA_RECORDED_DATE, DB_FIELD_MEDIA_RECORDED_DATE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_RECORDED_DATE},
- {MEDIA_COPYRIGHT, DB_FIELD_MEDIA_COPYRIGHT, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_COPYRIGHT},
- {MEDIA_TRACK_NUM, DB_FIELD_MEDIA_TRACK_NUM, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_TRACK_NUM},
- {MEDIA_DESCRIPTION, DB_FIELD_MEDIA_DESCRIPTION, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_DESCRIPTION},
- {MEDIA_BITRATE, DB_FIELD_MEDIA_BITRATE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_BITRATE},
- {MEDIA_BITPERSAMPLE, DB_FIELD_MEDIA_BITPERSAMPLE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_BITPERSAMPLE},
- {MEDIA_SAMPLERATE, DB_FIELD_MEDIA_SAMPLERATE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_SAMPLERATE},
- {MEDIA_CHANNEL, DB_FIELD_MEDIA_CHANNEL, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_CHANNEL},
- {MEDIA_DURATION, DB_FIELD_MEDIA_DURATION, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_DURATION},
- {MEDIA_LONGITUDE, DB_FIELD_MEDIA_LONGITUDE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_LONGITUDE},
- {MEDIA_LATITUDE, DB_FIELD_MEDIA_LATITUDE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_LATITUDE},
- {MEDIA_ALTITUDE, DB_FIELD_MEDIA_ALTITUDE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ALTITUDE},
- {MEDIA_WIDTH, DB_FIELD_MEDIA_WIDTH, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_WIDTH},
- {MEDIA_HEIGHT, DB_FIELD_MEDIA_HEIGHT, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_HEIGHT},
- {MEDIA_DATETAKEN, DB_FIELD_MEDIA_DATETAKEN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_DATETAKEN},
- {MEDIA_ORIENTATION, DB_FIELD_MEDIA_ORIENTATION, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ORIENTATION},
- {MEDIA_RATING, DB_FIELD_MEDIA_RATING, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_RATING},
- {MEDIA_FAVOURITE, DB_FIELD_MEDIA_FAVOURITE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_FAVOURITE},
- {MEDIA_IS_DRM, DB_FIELD_MEDIA_IS_DRM, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_IS_DRM},
- {MEDIA_STORAGE_TYPE, DB_FIELD_MEDIA_STORAGE_TYPE, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_STORAGE_TYPE},
- {MEDIA_360, DB_FIELD_MEDIA_360, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_360},
+ {MEDIA_ID, DB_FIELD_MEDIA_ID, NULL},
+ {MEDIA_PATH, DB_FIELD_MEDIA_PATH, NULL},
+ {MEDIA_DISPLAY_NAME, DB_FIELD_MEDIA_DISPLAY_NAME, NULL},
+ {MEDIA_TYPE, DB_FIELD_MEDIA_TYPE, NULL},
+ {MEDIA_MIME_TYPE, DB_FIELD_MEDIA_MIME_TYPE, NULL},
+ {MEDIA_SIZE, DB_FIELD_MEDIA_SIZE, NULL},
+ {MEDIA_ADDED_TIME, DB_FIELD_MEDIA_ADDED_TIME, NULL},
+ {MEDIA_MODIFIED_TIME, DB_FIELD_MEDIA_MODIFIED_TIME, NULL},
+ {MEDIA_TIMELINE, DB_FIELD_MEDIA_TIMELINE, NULL},
+ {MEDIA_THUMBNAIL_PATH, DB_FIELD_MEDIA_THUMBNAIL_PATH, NULL},
+ {MEDIA_TITLE, DB_FIELD_MEDIA_TITLE, NULL},
+ {MEDIA_ALBUM, DB_FIELD_MEDIA_ALBUM, NULL},
+ {MEDIA_ARTIST, DB_FIELD_MEDIA_ARTIST, NULL},
+ {MEDIA_ALBUM_ARTIST, DB_FIELD_MEDIA_ALBUM_ARTIST, NULL},
+ {MEDIA_GENRE, DB_FIELD_MEDIA_GENRE, NULL},
+ {MEDIA_COMPOSER, DB_FIELD_MEDIA_COMPOSER, NULL},
+ {MEDIA_YEAR, DB_FIELD_MEDIA_YEAR, NULL},
+ {MEDIA_RECORDED_DATE, DB_FIELD_MEDIA_RECORDED_DATE, NULL},
+ {MEDIA_COPYRIGHT, DB_FIELD_MEDIA_COPYRIGHT, NULL},
+ {MEDIA_TRACK_NUM, DB_FIELD_MEDIA_TRACK_NUM, NULL},
+ {MEDIA_DESCRIPTION, DB_FIELD_MEDIA_DESCRIPTION, NULL},
+ {MEDIA_BITRATE, DB_FIELD_MEDIA_BITRATE, NULL},
+ {MEDIA_BITPERSAMPLE, DB_FIELD_MEDIA_BITPERSAMPLE, NULL},
+ {MEDIA_SAMPLERATE, DB_FIELD_MEDIA_SAMPLERATE, NULL},
+ {MEDIA_CHANNEL, DB_FIELD_MEDIA_CHANNEL, NULL},
+ {MEDIA_DURATION, DB_FIELD_MEDIA_DURATION, NULL},
+ {MEDIA_LONGITUDE, DB_FIELD_MEDIA_LONGITUDE, NULL},
+ {MEDIA_LATITUDE, DB_FIELD_MEDIA_LATITUDE, NULL},
+ {MEDIA_ALTITUDE, DB_FIELD_MEDIA_ALTITUDE, NULL},
+ {MEDIA_WIDTH, DB_FIELD_MEDIA_WIDTH, NULL},
+ {MEDIA_HEIGHT, DB_FIELD_MEDIA_HEIGHT, NULL},
+ {MEDIA_DATETAKEN, DB_FIELD_MEDIA_DATETAKEN, NULL},
+ {MEDIA_ORIENTATION, DB_FIELD_MEDIA_ORIENTATION, NULL},
+ {MEDIA_RATING, DB_FIELD_MEDIA_RATING, NULL},
+ {MEDIA_FAVOURITE, DB_FIELD_MEDIA_FAVOURITE, NULL},
+ {MEDIA_IS_DRM, DB_FIELD_MEDIA_IS_DRM, NULL},
+ {MEDIA_STORAGE_TYPE, DB_FIELD_MEDIA_STORAGE_TYPE, NULL},
+ {MEDIA_360, DB_FIELD_MEDIA_360, NULL},
/* Pinyin */
- {MEDIA_FILE_NAME_PINYIN, DB_FIELD_MEDIA_FILE_NAME_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_FILE_NAME_PINYIN},
- {MEDIA_TITLE_PINYIN, DB_FIELD_MEDIA_TITLE_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_TITLE_PINYIN},
- {MEDIA_ALBUM_PINYIN, DB_FIELD_MEDIA_ALBUM_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ALBUM_PINYIN},
- {MEDIA_ARTIST_PINYIN, DB_FIELD_MEDIA_ARTIST_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ARTIST_PINYIN},
- {MEDIA_ALBUM_ARTIST_PINYIN, DB_FIELD_MEDIA_ALBUM_ARTIST_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_ALBUM_ARTIST_PINYIN},
- {MEDIA_GENRE_PINYIN, DB_FIELD_MEDIA_GENRE_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_GENRE_PINYIN},
- {MEDIA_COMPOSER_PINYIN, DB_FIELD_MEDIA_COMPOSER_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_COMPOSER_PINYIN},
- {MEDIA_COPYRIGHT_PINYIN, DB_FIELD_MEDIA_COPYRIGHT_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_COPYRIGHT_PINYIN},
- {MEDIA_DESCRIPTION_PINYIN, DB_FIELD_MEDIA_DESCRIPTION_PINYIN, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_DESCRIPTION_PINYIN},
+ {MEDIA_FILE_NAME_PINYIN, DB_FIELD_MEDIA_FILE_NAME_PINYIN, NULL},
+ {MEDIA_TITLE_PINYIN, DB_FIELD_MEDIA_TITLE_PINYIN, NULL},
+ {MEDIA_ALBUM_PINYIN, DB_FIELD_MEDIA_ALBUM_PINYIN, NULL},
+ {MEDIA_ARTIST_PINYIN, DB_FIELD_MEDIA_ARTIST_PINYIN, NULL},
+ {MEDIA_ALBUM_ARTIST_PINYIN, DB_FIELD_MEDIA_ALBUM_ARTIST_PINYIN, NULL},
+ {MEDIA_GENRE_PINYIN, DB_FIELD_MEDIA_GENRE_PINYIN, NULL},
+ {MEDIA_COMPOSER_PINYIN, DB_FIELD_MEDIA_COMPOSER_PINYIN, NULL},
+ {MEDIA_COPYRIGHT_PINYIN, DB_FIELD_MEDIA_COPYRIGHT_PINYIN, NULL},
+ {MEDIA_DESCRIPTION_PINYIN, DB_FIELD_MEDIA_DESCRIPTION_PINYIN, NULL},
/* Folder */
- {FOLDER_ID, NULL, DB_TABLE_ALIAS_FOLDER"."DB_FIELD_FOLDER_ID},
- {FOLDER_PATH, NULL, DB_TABLE_ALIAS_FOLDER"."DB_FIELD_FOLDER_PATH},
- {FOLDER_NAME, NULL, DB_TABLE_ALIAS_FOLDER"."DB_FIELD_FOLDER_NAME},
- {FOLDER_STORAGE_TYPE, NULL, DB_TABLE_ALIAS_FOLDER"."DB_FIELD_FOLDER_STORAGE_TYPE},
- {FOLDER_NAME_PINYIN, NULL, DB_TABLE_ALIAS_FOLDER"."DB_FIELD_FOLDER_NAME_PINYIN},
+ {FOLDER_ID, DB_FIELD_FOLDER_ID, NULL},
+ {FOLDER_NAME, DB_FIELD_FOLDER_NAME, NULL},
+ {FOLDER_STORAGE_TYPE, DB_FIELD_FOLDER_STORAGE_TYPE, NULL},
+ {FOLDER_NAME_PINYIN, DB_FIELD_FOLDER_NAME_PINYIN, NULL},
/* Storage */
{MEDIA_STORAGE_ID, DB_FIELD_STORAGE_ID, NULL},
{MEDIA_STORAGE_PATH, DB_FIELD_STORAGE_PATH, NULL},
#ifdef _USE_SENIOR_MODE
- {MEDIA_CONTACT, DB_FIELD_MEDIA_CONTACT, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_CONTACT},
- {MEDIA_APP_DATA, DB_FIELD_MEDIA_APP_DATA, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_APP_DATA},
+ {MEDIA_CONTACT, DB_FIELD_MEDIA_CONTACT, NULL},
+ {MEDIA_APP_DATA, DB_FIELD_MEDIA_APP_DATA, NULL},
#endif
#ifdef _USE_TVPD_MODE
- {MEDIA_PLAYED_COUNT, DB_FIELD_MEDIA_PLAYED_COUNT, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_PLAYED_COUNT},
- {MEDIA_LAST_PLAYED_TIME, DB_FIELD_MEDIA_LAST_PLAYED_TIME, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_LAST_PLAYED_TIME},
- {MEDIA_LAST_PLAYED_POSITION, DB_FIELD_MEDIA_LAST_PLAYED_POSITION, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_LAST_PLAYED_POSITION},
- {MEDIA_FOLDER_ID, DB_FIELD_MEDIA_FOLDER_ID, DB_TABLE_ALIAS_MEDIA"."DB_FIELD_MEDIA_FOLDER_ID},
+ {MEDIA_PLAYED_COUNT, DB_FIELD_MEDIA_PLAYED_COUNT, NULL},
+ {MEDIA_LAST_PLAYED_TIME, DB_FIELD_MEDIA_LAST_PLAYED_TIME, NULL},
+ {MEDIA_LAST_PLAYED_POSITION, DB_FIELD_MEDIA_LAST_PLAYED_POSITION, NULL},
+ {MEDIA_FOLDER_ID, DB_FIELD_MEDIA_FOLDER_ID, NULL},
{MEDIA_STITCHED_INFO, DB_FIELD_MEDIA_STITCHED_INFO, NULL},
{MEDIA_MODIFIED_MONTH, DB_FIELD_MEDIA_MODIFIED_MONTH, NULL},
{MEDIA_MODIFIED_DATE, DB_FIELD_MEDIA_MODIFIED_DATE, NULL},
attribute_h _content_get_alias_attirbute_handle(void)
{
- /* This API use only folder query */
return g_alias_attr_handle;
}