Data Structures | |
| struct | alp_ms_dml_statement_parameters |
Structure that defines a query for the alp_ms_dml_statement api-s. (Use the alp_ms_dml_statement_parameters_* methods to set it.). More... | |
Defines | |
| #define | ALP_MS_DML_COL_ANY_FILEID "file_id" |
| int32 Identifier of file for metadata | |
| #define | ALP_MS_DML_COL_AUDIO_ALBUM "album" |
| string Album name | |
| #define | ALP_MS_DML_COL_AUDIO_ARTIST "artist" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_BITRATE "bitrate" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_COMPOSER "composer" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_COUNT "play_count" |
| int32 Number of times the file has been played | |
| #define | ALP_MS_DML_COL_AUDIO_CTIME "ctime" |
| int32 Creation time of file | |
| #define | ALP_MS_DML_COL_AUDIO_DURATION "duration" |
| int32 Duration in seconds of audio playback. | |
| #define | ALP_MS_DML_COL_AUDIO_GENRE "genre" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_NOTES "notes" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_PIC_PATH "pic_file_location" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_SAMPLERATE "samplerate" |
| string | |
| #define | ALP_MS_DML_COL_AUDIO_TITLE "title" |
| string Audio title | |
| #define | ALP_MS_DML_COL_AUDIO_TOTAL_TRACKS "totaltracks" |
| int32 | |
| #define | ALP_MS_DML_COL_AUDIO_TRACKNUM "tracknum" |
| int32 | |
| #define | ALP_MS_DML_COL_AUDIO_YEAR "year" |
| int32 | |
| #define | ALP_MS_DML_COL_COLLECTION_COUNT "count" |
| int32 | |
| #define | ALP_MS_DML_COL_COLLECTION_TITLE "title" |
| string | |
| #define | ALP_MS_DML_COL_DOCUMENT_DESCRIPTION "title" |
| string, (obsolete) document title | |
| #define | ALP_MS_DML_COL_DOCUMENT_NOTES "notes" |
| string | |
| #define | ALP_MS_DML_COL_DOCUMENT_TITLE "title" |
| string, document title | |
| #define | ALP_MS_DML_COL_DOCUMENT_TYPE "mimetype" |
| string Mimetype of document, useful for filters | |
| #define | ALP_MS_DML_COL_IMAGE_HEIGHT "height" |
| int32 | |
| #define | ALP_MS_DML_COL_IMAGE_NOTES "notes" |
| string | |
| #define | ALP_MS_DML_COL_IMAGE_TITLE "title" |
| string | |
| #define | ALP_MS_DML_COL_IMAGE_WIDTH "width" |
| int32 | |
| #define | ALP_MS_DML_COL_RINGTONE_DURATION "duration" |
| int32 | |
| #define | ALP_MS_DML_COL_RINGTONE_TITLE "title" |
| string | |
| #define | ALP_MS_DML_COL_VIDEO_CREATION_TIME "ctime" |
| time_t Creation time of the video | |
| #define | ALP_MS_DML_COL_VIDEO_CTIME "ctime" |
| int32 Creation time of file | |
| #define | ALP_MS_DML_COL_VIDEO_DURATION "duration" |
| int32 Time in seconds of the video playback. | |
| #define | ALP_MS_DML_COL_VIDEO_GENRE "genre" |
| string | |
| #define | ALP_MS_DML_COL_VIDEO_HEIGHT "height" |
| int32 height of video frame | |
| #define | ALP_MS_DML_COL_VIDEO_NOTES "notes" |
| string | |
| #define | ALP_MS_DML_COL_VIDEO_PLAY_COUNT "play_count" |
| int32 Number of times the video has been played. | |
| #define | ALP_MS_DML_COL_VIDEO_TITLE "title" |
| string Title of the video. | |
| #define | ALP_MS_DML_COL_VIDEO_WIDTH "width" |
| int32 width of video frame | |
| #define | ALP_MS_DML_COL_VOICE_BITRATE "bitrate" |
| string | |
| #define | ALP_MS_DML_COL_VOICE_DURATION "duration" |
| int32 | |
| #define | ALP_MS_DML_COL_VOICE_SAMPLERATE "samplerate" |
| string | |
| #define | ALP_MS_DML_COL_VOICE_TITLE "title" |
| string | |
| #define | ALP_MS_ITEM_TYPE_APPLICATION ALP_MS_CATEGORY_APPLICATION |
| The application category. | |
| #define | ALP_MS_ITEM_TYPE_AUDIO ALP_MS_CATEGORY_AUDIO |
| The audio category. | |
| #define | ALP_MS_ITEM_TYPE_AUDIO_PIC ALP_MS_CATEGORY_AUDIO_PIC |
| The audio pic category. | |
| #define | ALP_MS_ITEM_TYPE_DOCUMENT ALP_MS_CATEGORY_APPLICATION |
| Deprecated: the old document category | |
| #define | ALP_MS_ITEM_TYPE_IMAGE ALP_MS_CATEGORY_IMAGE |
| The image category. | |
| #define | ALP_MS_ITEM_TYPE_RINGTONE ALP_MS_CATEGORY_RINGTONE |
| The ringtone category. | |
| #define | ALP_MS_ITEM_TYPE_VIDEO ALP_MS_CATEGORY_VIDEO |
| The video category. | |
| #define | ALP_MS_ITEM_TYPE_VOICE ALP_MS_CATEGORY_VOICE |
| The voice category. | |
Typedefs | |
| typedef int(* | AlpMsCallbackFunction )(void *user_data, int argc, char **argv, char **azColName) |
| Protoype for alp_ms_dml_statement_exec callback method. This callback should normally return 0; a non-zero value will terminate the query. | |
Enumerations | |
| enum | alp_ms_dml_statement_exec_offsets { alp_ms_dml_statement_exec_location_offset = -2, alp_ms_dml_statement_exec_file_id_offset = -1 } |
| Offsets to 'system fields' hidden by the alp_ms_dml_statement_exec callback. More... | |
Functions | |
| alp_status_t | alp_ms_dml_close (AlpDmlH dmlH) |
| Close the MediaSelector DML when updating is complete. | |
| alp_status_t | alp_ms_dml_commit_item (AlpDmlH dmlH, AlpDmlItemH itemH) |
| Commit the filled in metadata to the database. | |
| alp_status_t | alp_ms_dml_flush (AlpDmlH dmlH) |
| Flush the MediaSelector DML transaction buffers. | |
| alp_status_t | alp_ms_dml_item_create (const char *item_type, AlpDmlItemH *itemH, const char *path) |
| Create item metadata entry of a specified type. | |
| alp_status_t | alp_ms_dml_item_destroy (AlpDmlItemH itemH) |
| Clean up after finished with an item. | |
| alp_status_t | alp_ms_dml_item_set_int32 (AlpDmlItemH itemH, const char *dml_column, int32_t *value) |
| Sets integer value metadata. | |
| alp_status_t | alp_ms_dml_item_set_int64 (AlpDmlItemH itemH, const char *dml_column, int64_t *value) |
| Sets integer value metadata. | |
| alp_status_t | alp_ms_dml_item_set_string (AlpDmlItemH itemH, const char *dml_column, const char *value) |
| Sets string value metadata. | |
| alp_status_t | alp_ms_dml_open (AlpDmlH *dmlH) |
| Open the MediaSelector DML for updating the data within. | |
| alp_status_t | alp_ms_dml_statement_begin (AlpDmlH dmlH, AlpDmlStatementH *stmtH, alp_ms_dml_statement_parameters *params, int *numResults) |
| Begin dml statment using the given criteria. | |
| alp_status_t | alp_ms_dml_statement_build_single_file_filter (const char *filename, char **filter) |
Generate a filter to select a single file. (Looks up file_id and dir_id.). | |
| alp_status_t | alp_ms_dml_statement_end (AlpDmlStatementH stmtH) |
| Close statement handle. | |
| alp_status_t | alp_ms_dml_statement_exec (AlpDmlH dmlH, AlpMsCallbackFunction callback, void *data, alp_ms_dml_statement_parameters *params, int *numResults) |
| Run dml statment using the given criteria, and call callback method once per row. | |
| alp_status_t | alp_ms_dml_statement_get_columns (AlpDmlStatementH stmtH, int *columnCount, gchar ***columnNames) |
| Get the list of column names - useful when fields=="*". | |
| alp_status_t | alp_ms_dml_statement_get_file_url (AlpDmlStatementH stmtH, const char **url) |
Get a file URL for current row. This may be used in conjunction with alp_mf_get_url_path() to get a path to the file. Caller owns the returned string, and must free it with g_free! | |
| alp_status_t | alp_ms_dml_statement_get_int32 (AlpDmlStatementH stmtH, const char *dml_column, int32_t *value) |
| Get an int32_t from column by name. | |
| alp_status_t | alp_ms_dml_statement_get_int64 (AlpDmlStatementH stmtH, const char *dml_column, int64_t *value) |
| Get an int64_t from column by name. | |
| alp_status_t | alp_ms_dml_statement_get_string (AlpDmlStatementH stmtH, const char *dml_column, const char **value) |
| Get a string from column by name. Caller does NOT own string, and should not free it! | |
| alp_status_t | alp_ms_dml_statement_next (AlpDmlStatementH stmtH) |
| Advance to the next statement. | |
| alp_status_t | alp_ms_dml_statement_parameters_clear (alp_ms_dml_statement_parameters *parameters) |
| Initialize parameters block - set all fields to default values (binary zero). | |
| alp_status_t | alp_ms_dml_statement_parameters_set_fields (alp_ms_dml_statement_parameters *parameters, const char *category, const char *fields) |
| Set both category and fields. | |
| alp_status_t | alp_ms_dml_statement_parameters_set_match (alp_ms_dml_statement_parameters *parameters, const char *matchField, const char *match) |
| Set both match and matchField. | |
| alp_status_t | alp_ms_dml_statement_parameters_set_regex (alp_ms_dml_statement_parameters *parameters, const char *regexField, const char *regex) |
| Set both regex and regexField - slow but powerful matching. | |
| alp_status_t | alp_ms_dml_statement_parameters_set_select_by_category (alp_ms_dml_statement_parameters *parameters, const char *includedCategories, const char *excludedCategories) |
| Set both includedCategories and excludedCategories. | |
| alp_status_t | alp_ms_dml_statement_parameters_set_skip (alp_ms_dml_statement_parameters *parameters, int start, int limit) |
| Set start/limit - restrict results to a 'window'. | |
| alp_status_t | alp_ms_dml_statement_parameters_set_sort (alp_ms_dml_statement_parameters *parameters, const char *sortby, bool ascending) |
| Set sort info. | |
|
|
int32 Identifier of file for metadata
|
|
|
string Album name
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
int32 Number of times the file has been played
|
|
|
int32 Creation time of file
|
|
|
int32 Duration in seconds of audio playback.
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string
|
|
|
string Audio title
|
|
|
int32
|
|
|
int32
|
|
|
int32
|
|
|
int32
|
|
|
string
|
|
|
string, (obsolete) document title
|
|
|
string
|
|
|
string, document title
|
|
|
string Mimetype of document, useful for filters
|
|
|
int32
|
|
|
string
|
|
|
string
|
|
|
int32
|
|
|
int32
|
|
|
string
|
|
|
time_t Creation time of the video
|
|
|
int32 Creation time of file
|
|
|
int32 Time in seconds of the video playback.
|
|
|
string
|
|
|
int32 height of video frame
|
|
|
string
|
|
|
int32 Number of times the video has been played.
|
|
|
string Title of the video.
|
|
|
int32 width of video frame
|
|
|
string
|
|
|
int32
|
|
|
string
|
|
|
string
|
|
|
The application category.
|
|
|
The audio category.
|
|
|
The audio pic category.
|
|
|
Deprecated: the old document category
|
|
|
The image category.
|
|
|
The ringtone category.
|
|
|
The video category.
|
|
|
The voice category.
|
|
|
Protoype for alp_ms_dml_statement_exec callback method. This callback should normally return 0; a non-zero value will terminate the query.
|
|
|
Offsets to 'system fields' hidden by the alp_ms_dml_statement_exec callback.
|
|
|
Close the MediaSelector DML when updating is complete.
|
|
||||||||||||
|
Commit the filled in metadata to the database.
|
|
|
Flush the MediaSelector DML transaction buffers.
|
|
||||||||||||||||
|
Create item metadata entry of a specified type.
|
|
|
Clean up after finished with an item.
|
|
||||||||||||||||
|
Sets integer value metadata.
|
|
||||||||||||||||
|
Sets integer value metadata.
|
|
||||||||||||||||
|
Sets string value metadata.
|
|
|
Open the MediaSelector DML for updating the data within.
|
|
||||||||||||||||||||
|
Begin dml statment using the given criteria.
|
|
||||||||||||
|
Generate a filter to select a single file. (Looks up
|
|
|
Close statement handle.
|
|
||||||||||||||||||||||||
|
Run dml statment using the given criteria, and call callback method once per row.
|
|
||||||||||||||||
|
Get the list of column names - useful when fields=="*".
|
|
||||||||||||
|
Get a file URL for current row. This may be used in conjunction with alp_mf_get_url_path() to get a path to the file. Caller owns the returned string, and must free it with
|
|
||||||||||||||||
|
Get an int32_t from column by name.
|
|
||||||||||||||||
|
Get an int64_t from column by name.
|
|
||||||||||||||||
|
Get a string from column by name. Caller does NOT own string, and should not free it!
|
|
|
Advance to the next statement.
|
|
|
Initialize parameters block - set all fields to default values (binary zero).
|
|
||||||||||||||||
|
Set both category and fields.
|
|
||||||||||||||||
|
Set both match and matchField.
|
|
||||||||||||||||
|
Set both regex and regexField - slow but powerful matching.
|
|
||||||||||||||||
|
Set both includedCategories and excludedCategories.
|
|
||||||||||||||||
|
Set start/limit - restrict results to a 'window'.
|
|
||||||||||||||||
|
Set sort info.
|
Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.