![]() |
![]() |
![]() |
Tracker Common Library Reference Manual | ![]() |
---|---|---|---|---|
#include <libtracker-common/tracker-field.h> TrackerField; TrackerField* tracker_field_new (void); void tracker_field_append_child_id (TrackerField *field, const gchar *id); const GSList* tracker_field_get_child_ids (TrackerField *field); TrackerFieldType tracker_field_get_data_type (TrackerField *field); gboolean tracker_field_get_delimited (TrackerField *field); gboolean tracker_field_get_embedded (TrackerField *field); const gchar* tracker_field_get_field_name (TrackerField *field); gboolean tracker_field_get_filtered (TrackerField *field); const gchar* tracker_field_get_id (TrackerField *field); gboolean tracker_field_get_multiple_values (TrackerField *field); const gchar* tracker_field_get_name (TrackerField *field); gboolean tracker_field_get_store_metadata (TrackerField *field); gint tracker_field_get_weight (TrackerField *service); void tracker_field_set_child_ids (TrackerField *field, const GSList *value); void tracker_field_set_data_type (TrackerField *field, TrackerFieldType value); void tracker_field_set_delimited (TrackerField *field, gboolean value); void tracker_field_set_embedded (TrackerField *field, gboolean value); void tracker_field_set_field_name (TrackerField *field, const gchar *value); void tracker_field_set_filtered (TrackerField *field, gboolean value); void tracker_field_set_id (TrackerField *field, const gchar *value); void tracker_field_set_multiple_values (TrackerField *field, gboolean value); void tracker_field_set_name (TrackerField *field, const gchar *value); void tracker_field_set_store_metadata (TrackerField *field, gboolean value); void tracker_field_set_weight (TrackerField *field, gint value); const gchar* tracker_field_type_to_string (TrackerFieldType fieldtype);
"child-ids" gpointer : Read / Write "data-type" TrackerFieldType : Read / Write "delimited" gboolean : Read / Write "embedded" gboolean : Read / Write "field-name" gchar* : Read / Write "filtered" gboolean : Read / Write "id" gchar* : Read / Write "multiple-values" gboolean : Read / Write "name" gchar* : Read / Write "store-metadata" gboolean : Read / Write "weight" gint : Read / Write
TrackerField* tracker_field_new (void);
Creates a new TrackerField instance.
Returns : | The newly created TrackerField |
void tracker_field_append_child_id (TrackerField *field, const gchar *id);
field : |
|
id : |
const GSList* tracker_field_get_child_ids (TrackerField *field);
field : |
|
Returns : |
TrackerFieldType tracker_field_get_data_type (TrackerField *field);
field : |
|
Returns : |
gboolean tracker_field_get_delimited (TrackerField *field);
field : |
|
Returns : |
gboolean tracker_field_get_embedded (TrackerField *field);
field : |
|
Returns : |
const gchar* tracker_field_get_field_name (TrackerField *field);
field : |
|
Returns : |
gboolean tracker_field_get_filtered (TrackerField *field);
field : |
|
Returns : |
gboolean tracker_field_get_multiple_values (TrackerField *field);
field : |
|
Returns : |
const gchar* tracker_field_get_name (TrackerField *field);
field : |
|
Returns : |
gboolean tracker_field_get_store_metadata (TrackerField *field);
field : |
|
Returns : |
gint tracker_field_get_weight (TrackerField *service);
service : |
|
Returns : |
void tracker_field_set_child_ids (TrackerField *field, const GSList *value);
field : |
|
value : |
void tracker_field_set_data_type (TrackerField *field, TrackerFieldType value);
field : |
|
value : |
void tracker_field_set_delimited (TrackerField *field, gboolean value);
field : |
|
value : |
void tracker_field_set_embedded (TrackerField *field, gboolean value);
field : |
|
value : |
void tracker_field_set_field_name (TrackerField *field, const gchar *value);
field : |
|
value : |
void tracker_field_set_filtered (TrackerField *field, gboolean value);
field : |
|
value : |
void tracker_field_set_id (TrackerField *field, const gchar *value);
field : |
|
value : |
void tracker_field_set_multiple_values (TrackerField *field, gboolean value);
field : |
|
value : |
void tracker_field_set_name (TrackerField *field, const gchar *value);
field : |
|
value : |
void tracker_field_set_store_metadata (TrackerField *field, gboolean value);
field : |
|
value : |
void tracker_field_set_weight (TrackerField *field, gint value);
field : |
|
value : |
const gchar* tracker_field_type_to_string (TrackerFieldType fieldtype);
fieldtype : |
|
Returns : |
"data-type"
property"data-type" TrackerFieldType : Read / Write
Field data type.
Default value: TRACKER_FIELD_TYPE_INDEX
"field-name"
property"field-name" gchar* : Read / Write
Column in services table with the contents of this metadata.
Default value: NULL
"multiple-values"
property"multiple-values" gboolean : Read / Write
Multiple values.
Default value: TRUE
"store-metadata"
property"store-metadata" gboolean : Read / Write
Store metadata.
Default value: FALSE
"weight"
property"weight" gint : Read / Write
Boost to the score.
Allowed values: >= 0
Default value: 0