Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Enumerations | Functions | Variables
rhythmbox-collection.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <dee.h>
#include <stdlib.h>
#include <string.h>
#include <tdb.h>
#include <gio/gio.h>
#include <dee-icu.h>
#include <glib/gi18n-lib.h>
#include <glib/gstdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <unity.h>
#include <gee.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensRhythmboxCollection
struct  _UnityMusicLensRhythmboxCollectionClass
struct  _UnityMusicLensRhythmboxCollectionPrivate
struct  _Block2Data
struct  _UnityMusicLensRhythmboxCollectionXmlParser
struct  _UnityMusicLensRhythmboxCollectionXmlParserClass
struct  _UnityMusicLensRhythmboxCollectionXmlParserPrivate

Defines

#define UNITY_MUSIC_LENS_TYPE_COLUMNS   (unity_music_lens_columns_get_type ())
#define UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION   (unity_music_lens_rhythmbox_collection_get_type ())
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollection))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollectionClass))
#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_COLLECTION(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION))
#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_COLLECTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollectionClass))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_RESULT_TYPE   (unity_music_lens_rhythmbox_collection_result_type_get_type ())
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_hash_table_unref0(var)   ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))
#define _tdb_close0(var)   ((var == NULL) ? NULL : (var = (tdb_close (var), NULL)))
#define _dee_icu_term_filter_destroy0(var)   ((var == NULL) ? NULL : (var = (dee_icu_term_filter_destroy (var), NULL)))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_variant_type_free0(var)   ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))
#define _g_variant_unref0(var)   ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))
#define _g_byte_array_unref0(var)   ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))
#define UNITY_MUSIC_LENS_TYPE_TRACK   (unity_music_lens_track_get_type ())
#define UNITY_MUSIC_LENS_TRACK(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrack))
#define UNITY_MUSIC_LENS_TRACK_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))
#define UNITY_MUSIC_LENS_IS_TRACK(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_TRACK))
#define UNITY_MUSIC_LENS_IS_TRACK_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_TRACK))
#define UNITY_MUSIC_LENS_TRACK_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))
#define _g_ptr_array_unref0(var)   ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))
#define _g_slist_free0(var)   ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
#define UNITY_MUSIC_LENS_TYPE_TRACK_TYPE   (unity_music_lens_track_type_get_type ())
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER   (unity_music_lens_rhythmbox_collection_xml_parser_get_type ())
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParser))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_IS_XML_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_IS_XML_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))
#define _g_list_free0(var)   ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))
#define _g_string_free0(var)   ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
#define UNITY_MUSIC_LENS_TYPE_FILTER_PARSER   (unity_music_lens_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParser))
#define UNITY_MUSIC_LENS_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParserClass))
#define UNITY_MUSIC_LENS_IS_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_IS_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_FILTER_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParserClass))
#define UNITY_MUSIC_LENS_TYPE_CATEGORY   (unity_music_lens_category_get_type ())
#define _g_sequence_free0(var)   ((var == NULL) ? NULL : (var = (g_sequence_free (var), NULL)))
#define UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER   (unity_music_lens_decade_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_DECADE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER, UnityMusicLensDecadeFilterParser))
#define UNITY_MUSIC_LENS_DECADE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER, UnityMusicLensDecadeFilterParserClass))
#define UNITY_MUSIC_LENS_IS_DECADE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_IS_DECADE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_DECADE_FILTER_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER, UnityMusicLensDecadeFilterParserClass))
#define UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER   (unity_music_lens_genre_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_GENRE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, UnityMusicLensGenreFilterParser))
#define UNITY_MUSIC_LENS_GENRE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, UnityMusicLensGenreFilterParserClass))
#define UNITY_MUSIC_LENS_IS_GENRE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_IS_GENRE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_GENRE_FILTER_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, UnityMusicLensGenreFilterParserClass))
#define UNITY_MUSIC_LENS_TYPE_GENRE   (unity_music_lens_genre_get_type ())
#define UNITY_MUSIC_LENS_GENRE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenre))
#define UNITY_MUSIC_LENS_GENRE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
#define UNITY_MUSIC_LENS_IS_GENRE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE))
#define UNITY_MUSIC_LENS_IS_GENRE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE))
#define UNITY_MUSIC_LENS_GENRE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
#define _g_markup_parse_context_free0(var)   ((var == NULL) ? NULL : (var = (g_markup_parse_context_free (var), NULL)))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollectionPrivate))
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_UNKNOWN_ALBUM   _ ("Unknown")
#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserPrivate))

Typedefs

typedef struct _UnityMusicLensRhythmboxCollection
typedef struct _UnityMusicLensRhythmboxCollectionClass
typedef struct _UnityMusicLensRhythmboxCollectionPrivate
typedef struct _UnityMusicLensTrack
typedef struct _UnityMusicLensTrackClass
typedef struct _Block2Data
typedef struct _UnityMusicLensRhythmboxCollectionXmlParser
typedef struct _UnityMusicLensRhythmboxCollectionXmlParserClass
typedef struct _UnityMusicLensFilterParser
typedef struct _UnityMusicLensFilterParserClass
typedef struct _UnityMusicLensDecadeFilterParser
typedef struct _UnityMusicLensDecadeFilterParserClass
typedef struct _UnityMusicLensGenreFilterParser
typedef struct _UnityMusicLensGenreFilterParserClass
typedef struct _UnityMusicLensRhythmboxCollectionXmlParserPrivate
typedef struct _UnityMusicLensGenre
typedef struct _UnityMusicLensGenreClass

Enumerations

enum  UnityMusicLensColumns {
  UNITY_MUSIC_LENS_COLUMNS_TYPE, UNITY_MUSIC_LENS_COLUMNS_URI, UNITY_MUSIC_LENS_COLUMNS_TITLE, UNITY_MUSIC_LENS_COLUMNS_ARTIST,
  UNITY_MUSIC_LENS_COLUMNS_ALBUM, UNITY_MUSIC_LENS_COLUMNS_ARTWORK, UNITY_MUSIC_LENS_COLUMNS_MIMETYPE, UNITY_MUSIC_LENS_COLUMNS_GENRE,
  UNITY_MUSIC_LENS_COLUMNS_ALBUM_ARTIST, UNITY_MUSIC_LENS_COLUMNS_TRACK_NUMBER, UNITY_MUSIC_LENS_COLUMNS_YEAR, UNITY_MUSIC_LENS_COLUMNS_PLAY_COUNT,
  UNITY_MUSIC_LENS_COLUMNS_N_COLUMNS
}
enum  UnityMusicLensRhythmboxCollectionResultType { UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_ALBUM, UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_SONG, UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_RADIO }
enum  UnityMusicLensTrackType {
  UNITY_MUSIC_LENS_TRACK_TYPE_SONG, UNITY_MUSIC_LENS_TRACK_TYPE_RADIO, UNITY_MUSIC_LENS_TRACK_TYPE_SONG, UNITY_MUSIC_LENS_TRACK_TYPE_RADIO,
  UNITY_MUSIC_LENS_TRACK_TYPE_SONG, UNITY_MUSIC_LENS_TRACK_TYPE_RADIO
}
enum  UnityMusicLensCategory {
  UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC,
  UNITY_MUSIC_LENS_CATEGORY_RADIOS, UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE,
  UNITY_MUSIC_LENS_CATEGORY_MUSIC, UNITY_MUSIC_LENS_CATEGORY_RADIOS, UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS,
  UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC, UNITY_MUSIC_LENS_CATEGORY_RADIOS, UNITY_MUSIC_LENS_CATEGORY_SONGS,
  UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC, UNITY_MUSIC_LENS_CATEGORY_RADIOS,
  UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC,
  UNITY_MUSIC_LENS_CATEGORY_RADIOS
}

Functions

GType unity_music_lens_columns_get_type (void)
static GType unity_music_lens_rhythmbox_collection_result_type_get_type (void)
UnityMusicLensGenre * unity_music_lens_genre_new (void)
UnityMusicLensGenre * unity_music_lens_genre_construct (GType object_type)
static void unity_music_lens_rhythmbox_collection_xml_parser_start_tag (UnityMusicLensRhythmboxCollectionXmlParser *self, GMarkupParseContext *context, const gchar *name, gchar **attr_names, gchar **attr_values, GError **error)
static void _unity_music_lens_rhythmbox_collection_xml_parser_start_tag_gmarkup_parser_start_element_func (GMarkupParseContext *context, const gchar *element_name, gchar **attribute_names, gchar **attribute_values, gpointer self, GError **error)
static void unity_music_lens_rhythmbox_collection_xml_parser_end_tag (UnityMusicLensRhythmboxCollectionXmlParser *self, GMarkupParseContext *content, const gchar *name, GError **error)
static void _unity_music_lens_rhythmbox_collection_xml_parser_end_tag_gmarkup_parser_end_element_func (GMarkupParseContext *context, const gchar *element_name, gpointer self, GError **error)
static void unity_music_lens_rhythmbox_collection_xml_parser_process_text (UnityMusicLensRhythmboxCollectionXmlParser *self, GMarkupParseContext *context, const gchar *text, gsize text_len, GError **error)
static void _unity_music_lens_rhythmbox_collection_xml_parser_process_text_gmarkup_parser_text_func (GMarkupParseContext *context, const gchar *text, gsize text_len, gpointer self, GError **error)
UnityMusicLensTrack * unity_music_lens_track_new (void)
UnityMusicLensTrack * unity_music_lens_track_construct (GType object_type)
void unity_music_lens_track_set_type_track (UnityMusicLensTrack *self, UnityMusicLensTrackType value)
void unity_music_lens_track_set_uri (UnityMusicLensTrack *self, const gchar *value)
void unity_music_lens_track_set_title (UnityMusicLensTrack *self, const gchar *value)
void unity_music_lens_track_set_artist (UnityMusicLensTrack *self, const gchar *value)
void unity_music_lens_track_set_album (UnityMusicLensTrack *self, const gchar *value)
void unity_music_lens_track_set_album_artist (UnityMusicLensTrack *self, const gchar *value)
gchar * unity_music_lens_genre_get_id_for_genre (UnityMusicLensGenre *self, const gchar *genre)
void unity_music_lens_track_set_genre (UnityMusicLensTrack *self, const gchar *value)
void unity_music_lens_track_set_mime_type (UnityMusicLensTrack *self, const gchar *value)
void unity_music_lens_track_set_year (UnityMusicLensTrack *self, gint value)
void unity_music_lens_track_set_play_count (UnityMusicLensTrack *self, gint value)
void unity_music_lens_track_set_track_number (UnityMusicLensTrack *self, gint value)
static GObject * unity_music_lens_rhythmbox_collection_xml_parser_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
static void unity_music_lens_rhythmbox_collection_xml_parser_finalize (GObject *obj)
static void unity_music_lens_rhythmbox_collection_finalize (GObject *obj)
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func)
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func)
static gint _vala_array_length (gpointer array)
static gchar * __lambda4_ (UnityMusicLensRhythmboxCollection *self, DeeModel *model, DeeModelIter *iter)
static gchar * ___lambda4__dee_model_reader_func (DeeModel *model, DeeModelIter *iter, gpointer self)
static void unity_music_lens_rhythmbox_collection_initialize_index (UnityMusicLensRhythmboxCollection *self)
static guint8 * string_get_data (const gchar *self, int *result_length1)
static gchar * unity_music_lens_rhythmbox_collection_check_album_art_tdb (UnityMusicLensRhythmboxCollection *self, const gchar *artist, const gchar *album)
static gchar * unity_music_lens_rhythmbox_collection_get_albumart (UnityMusicLensRhythmboxCollection *self, UnityMusicLensTrack *track)
static gpointer _g_ptr_array_ref0 (gpointer self)
static gint g_ptr_array_get_length (GPtrArray *self)
static void g_ptr_array_set_length (GPtrArray *self, gint value)
GSList * unity_music_lens_rhythmbox_collection_get_album_tracks (UnityMusicLensRhythmboxCollection *self, const gchar *album_key)
static gpointer _g_variant_ref0 (gpointer self)
static GVariant * unity_music_lens_rhythmbox_collection_cached_variant_for_string (UnityMusicLensRhythmboxCollection *self, const gchar *input)
static GVariant * unity_music_lens_rhythmbox_collection_cached_variant_for_int (UnityMusicLensRhythmboxCollection *self, gint input)
static void unity_music_lens_rhythmbox_collection_prepare_row_buffer (UnityMusicLensRhythmboxCollection *self, UnityMusicLensTrack *track)
static Block2Data * block2_data_ref (Block2Data *_data2_)
static void block2_data_unref (Block2Data *_data2_)
static gpointer _g_object_ref0 (gpointer self)
static void ____lambda5_ (Block2Data *_data2_)
static void _____lambda5__g_file_monitor_changed (GFileMonitor *_sender, GFile *file, GFile *other_file, GFileMonitorEvent event_type, gpointer self)
void unity_music_lens_rhythmbox_collection_parse_metadata_file (UnityMusicLensRhythmboxCollection *self, const gchar *path)
static void __lambda6_ (UnityMusicLensRhythmboxCollection *self, UnityMusicLensTrack *track)
static void ___lambda6__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready (UnityMusicLensRhythmboxCollectionXmlParser *_sender, UnityMusicLensTrack *track, gpointer self)
static gint ____lambda7_ (UnityMusicLensRhythmboxCollection *self, DeeModelIter **a, DeeModelIter **b)
static gint _____lambda7__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self)
void unity_music_lens_rhythmbox_collection_parse_file (UnityMusicLensRhythmboxCollection *self, const gchar *path)
static void unity_music_lens_rhythmbox_collection_add_result (UnityMusicLensRhythmboxCollection *self, DeeModel *results_model, DeeModel *model, DeeModelIter *iter, UnityMusicLensRhythmboxCollectionResultType result_type, guint category_id)
static gchar * string_strip (const gchar *self)
static gint ____lambda8_ (UnityMusicLensRhythmboxCollection *self, DeeModelIter *a, DeeModelIter *b)
static gint _____lambda8__gcompare_data_func (gconstpointer a, gconstpointer b, gpointer self)
void unity_music_lens_rhythmbox_collection_search (UnityMusicLensRhythmboxCollection *self, UnityLensSearch *search, UnitySearchType search_type, GList *filters, gint max_results, gint category_override)
static void unity_music_lens_rhythmbox_collection_get_decade_filter (UnityMusicLensRhythmboxCollection *self, GList *filters, gint *min_year, gint *max_year)
static GeeSet * unity_music_lens_rhythmbox_collection_get_genre_filter (UnityMusicLensRhythmboxCollection *self, GList *filters)
UnityMusicLensRhythmboxCollection * unity_music_lens_rhythmbox_collection_construct (GType object_type)
UnityMusicLensRhythmboxCollection * unity_music_lens_rhythmbox_collection_new (void)
static void _g_variant_unref0_ (gpointer var)
static void _g_free0_ (gpointer var)
static void _g_ptr_array_unref0_ (gpointer var)
static gint _unity_music_lens_rhythmbox_collection___lambda9_ (UnityMusicLensRhythmboxCollection *self, GVariant **row1, int row1_length1, GVariant **row2, int row2_length1)
static gint __unity_music_lens_rhythmbox_collection___lambda9__dee_compare_row_func (GVariant **row1, GVariant **row2, gpointer self)
static void _unity_music_lens_rhythmbox_collection___lambda10_ (UnityMusicLensRhythmboxCollection *self, DeeTermList *terms_in, DeeTermList *terms_out)
static void __unity_music_lens_rhythmbox_collection___lambda10__dee_term_filter_func (DeeTermList *terms_in, DeeTermList *terms_out, gpointer self)
static GObject * unity_music_lens_rhythmbox_collection_constructor (GType type, guint n_construct_properties, GObjectConstructParam *construct_properties)
gboolean unity_music_lens_rhythmbox_collection_xml_parser_parse (UnityMusicLensRhythmboxCollectionXmlParser *self, const gchar *content, gsize len, GError **error)
UnityMusicLensRhythmboxCollectionXmlParser * unity_music_lens_rhythmbox_collection_xml_parser_construct (GType object_type)
UnityMusicLensRhythmboxCollectionXmlParser * unity_music_lens_rhythmbox_collection_xml_parser_new (void)
static void unity_music_lens_rhythmbox_collection_xml_parser_class_init (UnityMusicLensRhythmboxCollectionXmlParserClass *klass)
static void unity_music_lens_rhythmbox_collection_xml_parser_instance_init (UnityMusicLensRhythmboxCollectionXmlParser *self)
GType unity_music_lens_rhythmbox_collection_xml_parser_get_type (void)
static void unity_music_lens_rhythmbox_collection_class_init (UnityMusicLensRhythmboxCollectionClass *klass)
static void unity_music_lens_rhythmbox_collection_instance_init (UnityMusicLensRhythmboxCollection *self)
GType unity_music_lens_rhythmbox_collection_get_type (void)

Variables

static gpointer unity_music_lens_rhythmbox_collection_parent_class = NULL
static gpointer unity_music_lens_rhythmbox_collection_xml_parser_parent_class = NULL
static const GMarkupParser UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_parser = {_unity_music_lens_rhythmbox_collection_xml_parser_start_tag_gmarkup_parser_start_element_func, _unity_music_lens_rhythmbox_collection_xml_parser_end_tag_gmarkup_parser_end_element_func, _unity_music_lens_rhythmbox_collection_xml_parser_process_text_gmarkup_parser_text_func, NULL, NULL}

Class Documentation

struct _UnityMusicLensRhythmboxCollection

Definition at line 152 of file rhythmbox-collection.c.

Class Members
GObject parent_instance
UnityMusicLensRhythmboxCollectionPrivate * priv
struct _UnityMusicLensRhythmboxCollectionClass

Definition at line 157 of file rhythmbox-collection.c.

Class Members
GObjectClass parent_class
struct _UnityMusicLensRhythmboxCollectionPrivate

Definition at line 161 of file rhythmbox-collection.c.

Class Members
DeeModelTag * album_art_tag
TDB_CONTEXT * album_art_tdb
GHashTable * album_to_tracks_map
DeeSequenceModel * all_tracks
DeeAnalyzer * analyzer
DeeICUTermFilter * ascii_filter
gint current_album_art_tag
DeeIndex * index
GHashTable * int_variant_store
gchar * media_art_dir
GVariant * row_buffer
GFileMonitor * tdb_monitor
DeeFilterModel * tracks_by_play_count
GHashTable * variant_store
struct _Block2Data

Definition at line 189 of file rhythmbox-collection.c.

Class Members
int _ref_count_
gchar * path
UnityMusicLensRhythmboxCollection * self
struct _UnityMusicLensRhythmboxCollectionXmlParser

Definition at line 203 of file rhythmbox-collection.c.

Class Members
GObject parent_instance
UnityMusicLensRhythmboxCollectionXmlParserPrivate * priv
struct _UnityMusicLensRhythmboxCollectionXmlParserClass

Definition at line 208 of file rhythmbox-collection.c.

Class Members
GObjectClass parent_class
struct _UnityMusicLensRhythmboxCollectionXmlParserPrivate

Definition at line 212 of file rhythmbox-collection.c.

Class Members
GMarkupParseContext * context
gint current_data
UnityMusicLensTrack * current_track
UnityMusicLensGenre * genre
gboolean is_rhythmdb_xml
gboolean processing_track

Define Documentation

#define _dee_icu_term_filter_destroy0 (   var)    ((var == NULL) ? NULL : (var = (dee_icu_term_filter_destroy (var), NULL)))

Definition at line 57 of file rhythmbox-collection.c.

#define _g_byte_array_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_byte_array_unref (var), NULL)))

Definition at line 61 of file rhythmbox-collection.c.

#define _g_error_free0 (   var)    ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

Definition at line 77 of file rhythmbox-collection.c.

#define _g_free0 (   var)    (var = (g_free (var), NULL))

Definition at line 58 of file rhythmbox-collection.c.

#define _g_hash_table_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_hash_table_unref (var), NULL)))

Definition at line 55 of file rhythmbox-collection.c.

#define _g_list_free0 (   var)    ((var == NULL) ? NULL : (var = (g_list_free (var), NULL)))

Definition at line 88 of file rhythmbox-collection.c.

#define _g_markup_parse_context_free0 (   var)    ((var == NULL) ? NULL : (var = (g_markup_parse_context_free (var), NULL)))

Definition at line 134 of file rhythmbox-collection.c.

#define _g_object_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))

Definition at line 54 of file rhythmbox-collection.c.

#define _g_ptr_array_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL)))

Definition at line 72 of file rhythmbox-collection.c.

#define _g_sequence_free0 (   var)    ((var == NULL) ? NULL : (var = (g_sequence_free (var), NULL)))

Definition at line 102 of file rhythmbox-collection.c.

#define _g_slist_free0 (   var)    ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))

Definition at line 73 of file rhythmbox-collection.c.

#define _g_string_free0 (   var)    ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

Definition at line 89 of file rhythmbox-collection.c.

#define _g_variant_type_free0 (   var)    ((var == NULL) ? NULL : (var = (g_variant_type_free (var), NULL)))

Definition at line 59 of file rhythmbox-collection.c.

#define _g_variant_unref0 (   var)    ((var == NULL) ? NULL : (var = (g_variant_unref (var), NULL)))

Definition at line 60 of file rhythmbox-collection.c.

#define _tdb_close0 (   var)    ((var == NULL) ? NULL : (var = (tdb_close (var), NULL)))

Definition at line 56 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_DECADE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER, UnityMusicLensDecadeFilterParser))

Definition at line 105 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_DECADE_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER, UnityMusicLensDecadeFilterParserClass))

Definition at line 106 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_DECADE_FILTER_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER, UnityMusicLensDecadeFilterParserClass))

Definition at line 109 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParser))

Definition at line 92 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParserClass))

Definition at line 93 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_FILTER_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParserClass))

Definition at line 96 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_GENRE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenre))

Definition at line 126 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_GENRE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))

Definition at line 127 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_GENRE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, UnityMusicLensGenreFilterParser))

Definition at line 115 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_GENRE_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, UnityMusicLensGenreFilterParserClass))

Definition at line 116 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_GENRE_FILTER_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, UnityMusicLensGenreFilterParserClass))

Definition at line 119 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_GENRE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))

Definition at line 130 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_DECADE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER))

Definition at line 107 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_DECADE_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_DECADE_FILTER_PARSER))

Definition at line 108 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER))

Definition at line 94 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER))

Definition at line 95 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_GENRE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE))

Definition at line 128 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_GENRE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE))

Definition at line 129 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_GENRE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER))

Definition at line 117 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_GENRE_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER))

Definition at line 118 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_COLLECTION (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION))

Definition at line 45 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_COLLECTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION))

Definition at line 46 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_TRACK (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_TRACK))

Definition at line 66 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_IS_TRACK_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_TRACK))

Definition at line 67 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollection))

Definition at line 43 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollectionClass))

Definition at line 44 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollectionClass))

Definition at line 47 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_COLLECTION, UnityMusicLensRhythmboxCollectionPrivate))

Definition at line 82 of file rhythmbox-collection.c.

Definition at line 83 of file rhythmbox-collection.c.

Definition at line 53 of file rhythmbox-collection.c.

Definition at line 79 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParser))

Definition at line 80 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))

Definition at line 81 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserClass))

Definition at line 84 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, UnityMusicLensRhythmboxCollectionXmlParserPrivate))
#define UNITY_MUSIC_LENS_TRACK (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrack))

Definition at line 64 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_TRACK_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))

Definition at line 65 of file rhythmbox-collection.c.

#define UNITY_MUSIC_LENS_TRACK_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_TRACK, UnityMusicLensTrackClass))

Definition at line 68 of file rhythmbox-collection.c.

Definition at line 101 of file rhythmbox-collection.c.

Definition at line 40 of file rhythmbox-collection.c.

Definition at line 104 of file rhythmbox-collection.c.

Definition at line 91 of file rhythmbox-collection.c.

Definition at line 125 of file rhythmbox-collection.c.

Definition at line 114 of file rhythmbox-collection.c.

Definition at line 42 of file rhythmbox-collection.c.

Definition at line 63 of file rhythmbox-collection.c.

Definition at line 75 of file rhythmbox-collection.c.


Typedef Documentation

typedef struct _Block2Data

Definition at line 76 of file rhythmbox-collection.c.

Definition at line 111 of file rhythmbox-collection.c.

Definition at line 112 of file rhythmbox-collection.c.

Definition at line 98 of file rhythmbox-collection.c.

Definition at line 99 of file rhythmbox-collection.c.

typedef struct _UnityMusicLensGenre

Definition at line 132 of file rhythmbox-collection.c.

typedef struct _UnityMusicLensGenreClass

Definition at line 133 of file rhythmbox-collection.c.

Definition at line 121 of file rhythmbox-collection.c.

Definition at line 122 of file rhythmbox-collection.c.

Definition at line 49 of file rhythmbox-collection.c.

Definition at line 50 of file rhythmbox-collection.c.

Definition at line 51 of file rhythmbox-collection.c.

Definition at line 86 of file rhythmbox-collection.c.

Definition at line 87 of file rhythmbox-collection.c.

Definition at line 123 of file rhythmbox-collection.c.

typedef struct _UnityMusicLensTrack

Definition at line 70 of file rhythmbox-collection.c.

typedef struct _UnityMusicLensTrackClass

Definition at line 71 of file rhythmbox-collection.c.


Enumeration Type Documentation

Enumerator:
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 

Definition at line 195 of file rhythmbox-collection.c.

Enumerator:
UNITY_MUSIC_LENS_COLUMNS_TYPE 
UNITY_MUSIC_LENS_COLUMNS_URI 
UNITY_MUSIC_LENS_COLUMNS_TITLE 
UNITY_MUSIC_LENS_COLUMNS_ARTIST 
UNITY_MUSIC_LENS_COLUMNS_ALBUM 
UNITY_MUSIC_LENS_COLUMNS_ARTWORK 
UNITY_MUSIC_LENS_COLUMNS_MIMETYPE 
UNITY_MUSIC_LENS_COLUMNS_GENRE 
UNITY_MUSIC_LENS_COLUMNS_ALBUM_ARTIST 
UNITY_MUSIC_LENS_COLUMNS_TRACK_NUMBER 
UNITY_MUSIC_LENS_COLUMNS_YEAR 
UNITY_MUSIC_LENS_COLUMNS_PLAY_COUNT 
UNITY_MUSIC_LENS_COLUMNS_N_COLUMNS 

Definition at line 136 of file rhythmbox-collection.c.

Enumerator:
UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_ALBUM 
UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_SONG 
UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_RADIO 

Definition at line 178 of file rhythmbox-collection.c.

Enumerator:
UNITY_MUSIC_LENS_TRACK_TYPE_SONG 
UNITY_MUSIC_LENS_TRACK_TYPE_RADIO 
UNITY_MUSIC_LENS_TRACK_TYPE_SONG 
UNITY_MUSIC_LENS_TRACK_TYPE_RADIO 
UNITY_MUSIC_LENS_TRACK_TYPE_SONG 
UNITY_MUSIC_LENS_TRACK_TYPE_RADIO 

Definition at line 184 of file rhythmbox-collection.c.


Function Documentation

static void _____lambda5__g_file_monitor_changed ( GFileMonitor *  _sender,
GFile *  file,
GFile *  other_file,
GFileMonitorEvent  event_type,
gpointer  self 
) [static]

Definition at line 1349 of file rhythmbox-collection.c.

                                                                                                                                                      {
       ____lambda5_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _____lambda7__gcompare_data_func ( gconstpointer  a,
gconstpointer  b,
gpointer  self 
) [static]

Definition at line 1608 of file rhythmbox-collection.c.

                                                                                               {
       gint result;
       result = ____lambda7_ (self, a, b);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _____lambda8__gcompare_data_func ( gconstpointer  a,
gconstpointer  b,
gpointer  self 
) [static]

Definition at line 2078 of file rhythmbox-collection.c.

                                                                                               {
       gint result;
       result = ____lambda8_ (self, a, b);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ____lambda5_ ( Block2Data *  _data2_) [static]

Definition at line 1332 of file rhythmbox-collection.c.

                                               {
       UnityMusicLensRhythmboxCollection * self;
       TDB_CONTEXT* _tmp0_;
       self = _data2_->self;
       _tmp0_ = self->priv->album_art_tdb;
       if (_tmp0_ == NULL) {
              const gchar* _tmp1_;
              _tmp1_ = _data2_->path;
              unity_music_lens_rhythmbox_collection_parse_metadata_file (self, _tmp1_);
       } else {
              gint _tmp2_;
              _tmp2_ = self->priv->current_album_art_tag;
              self->priv->current_album_art_tag = _tmp2_ + 1;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint ____lambda7_ ( UnityMusicLensRhythmboxCollection *  self,
DeeModelIter **  a,
DeeModelIter **  b 
) [static]

Definition at line 1583 of file rhythmbox-collection.c.

                                                                                                       {
       gint result = 0;
       DeeSequenceModel* _tmp0_;
       DeeModelIter* _tmp1_;
       gint32 _tmp2_ = 0;
       gint32 trackno1;
       DeeSequenceModel* _tmp3_;
       DeeModelIter* _tmp4_;
       gint32 _tmp5_ = 0;
       gint32 trackno2;
       g_return_val_if_fail (a != NULL, 0);
       g_return_val_if_fail (b != NULL, 0);
       _tmp0_ = self->priv->all_tracks;
       _tmp1_ = *a;
       _tmp2_ = dee_model_get_int32 ((DeeModel*) _tmp0_, _tmp1_, (guint) UNITY_MUSIC_LENS_COLUMNS_TRACK_NUMBER);
       trackno1 = _tmp2_;
       _tmp3_ = self->priv->all_tracks;
       _tmp4_ = *b;
       _tmp5_ = dee_model_get_int32 ((DeeModel*) _tmp3_, _tmp4_, (guint) UNITY_MUSIC_LENS_COLUMNS_TRACK_NUMBER);
       trackno2 = _tmp5_;
       result = (gint) (trackno1 - trackno2);
       return result;
}

Here is the caller graph for this function:

static gint ____lambda8_ ( UnityMusicLensRhythmboxCollection *  self,
DeeModelIter *  a,
DeeModelIter *  b 
) [static]

Definition at line 2045 of file rhythmbox-collection.c.

                                                                                                     {
       gint result = 0;
       gint _tmp0_ = 0;
       DeeModelIter* _tmp1_;
       DeeModelIter* _tmp2_;
       gint _tmp7_;
       g_return_val_if_fail (a != NULL, 0);
       g_return_val_if_fail (b != NULL, 0);
       _tmp1_ = a;
       _tmp2_ = b;
       if (_tmp1_ == _tmp2_) {
              _tmp0_ = 0;
       } else {
              gint _tmp3_ = 0;
              DeeModelIter* _tmp4_;
              DeeModelIter* _tmp5_;
              gint _tmp6_;
              _tmp4_ = a;
              _tmp5_ = b;
              if (((void*) _tmp4_) > ((void*) _tmp5_)) {
                     _tmp3_ = 1;
              } else {
                     _tmp3_ = -1;
              }
              _tmp6_ = _tmp3_;
              _tmp0_ = _tmp6_;
       }
       _tmp7_ = _tmp0_;
       result = _tmp7_;
       return result;
}

Here is the caller graph for this function:

static gchar* ___lambda4__dee_model_reader_func ( DeeModel *  model,
DeeModelIter *  iter,
gpointer  self 
) [static]

Definition at line 383 of file rhythmbox-collection.c.

                                                                                                     {
       gchar* result;
       result = __lambda4_ (self, model, iter);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda6__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready ( UnityMusicLensRhythmboxCollectionXmlParser *  _sender,
UnityMusicLensTrack *  track,
gpointer  self 
) [static]

Definition at line 1578 of file rhythmbox-collection.c.

                                                                                                                                                                                           {
       __lambda6_ (self, track);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gchar* __lambda4_ ( UnityMusicLensRhythmboxCollection *  self,
DeeModel *  model,
DeeModelIter *  iter 
) [static]

Definition at line 352 of file rhythmbox-collection.c.

                                                                                                        {
       gchar* result = NULL;
       DeeModel* _tmp0_;
       DeeModelIter* _tmp1_;
       const gchar* _tmp2_ = NULL;
       DeeModel* _tmp3_;
       DeeModelIter* _tmp4_;
       const gchar* _tmp5_ = NULL;
       DeeModel* _tmp6_;
       DeeModelIter* _tmp7_;
       const gchar* _tmp8_ = NULL;
       gchar* _tmp9_ = NULL;
       gchar* s;
       g_return_val_if_fail (model != NULL, NULL);
       g_return_val_if_fail (iter != NULL, NULL);
       _tmp0_ = model;
       _tmp1_ = iter;
       _tmp2_ = dee_model_get_string (_tmp0_, _tmp1_, (guint) UNITY_MUSIC_LENS_COLUMNS_TITLE);
       _tmp3_ = model;
       _tmp4_ = iter;
       _tmp5_ = dee_model_get_string (_tmp3_, _tmp4_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTIST);
       _tmp6_ = model;
       _tmp7_ = iter;
       _tmp8_ = dee_model_get_string (_tmp6_, _tmp7_, (guint) UNITY_MUSIC_LENS_COLUMNS_ALBUM);
       _tmp9_ = g_strdup_printf ("%s\n%s\n%s", _tmp2_, _tmp5_, _tmp8_);
       s = _tmp9_;
       result = s;
       return result;
}

Here is the caller graph for this function:

static void __lambda6_ ( UnityMusicLensRhythmboxCollection *  self,
UnityMusicLensTrack *  track 
) [static]

Definition at line 1448 of file rhythmbox-collection.c.

                                                                                             {
       UnityMusicLensTrack* _tmp0_;
       gchar* _tmp1_ = NULL;
       gchar* albumart;
       const gchar* _tmp2_;
       UnityMusicLensTrack* _tmp6_;
       DeeSequenceModel* _tmp7_;
       DeeModelIter* _tmp8_ = NULL;
       DeeModelIter* iter;
       gboolean _tmp9_ = FALSE;
       UnityMusicLensTrack* _tmp10_;
       const gchar* _tmp11_;
       const gchar* _tmp12_;
       gboolean _tmp16_;
       const gchar* _tmp17_ = NULL;
       UnityMusicLensTrack* _tmp18_;
       const gchar* _tmp19_;
       const gchar* _tmp20_;
       UnityMusicLensTrack* _tmp27_;
       const gchar* _tmp28_;
       const gchar* _tmp29_;
       const gchar* _tmp30_;
       gchar* _tmp31_ = NULL;
       gchar* album_key;
       GHashTable* _tmp32_;
       const gchar* _tmp33_;
       gconstpointer _tmp34_ = NULL;
       GPtrArray* _tmp35_;
       GPtrArray* arr;
       GPtrArray* _tmp36_;
       GPtrArray* _tmp43_;
       DeeModelIter* _tmp44_;
       g_return_if_fail (track != NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_rhythmbox_collection_get_albumart (self, _tmp0_);
       albumart = _tmp1_;
       _tmp2_ = albumart;
       if (_tmp2_ != NULL) {
              UnityMusicLensTrack* _tmp3_;
              const gchar* _tmp4_;
              _tmp3_ = track;
              _tmp4_ = albumart;
              unity_music_lens_track_set_artwork_path (_tmp3_, _tmp4_);
       } else {
              UnityMusicLensTrack* _tmp5_;
              _tmp5_ = track;
              unity_music_lens_track_set_artwork_path (_tmp5_, "audio-x-generic");
       }
       _tmp6_ = track;
       unity_music_lens_rhythmbox_collection_prepare_row_buffer (self, _tmp6_);
       _tmp7_ = self->priv->all_tracks;
       _tmp8_ = dee_model_append_row ((DeeModel*) _tmp7_, self->priv->row_buffer);
       iter = _tmp8_;
       _tmp10_ = track;
       _tmp11_ = unity_music_lens_track_get_album (_tmp10_);
       _tmp12_ = _tmp11_;
       if (g_strcmp0 (_tmp12_, "") == 0) {
              _tmp9_ = TRUE;
       } else {
              UnityMusicLensTrack* _tmp13_;
              const gchar* _tmp14_;
              const gchar* _tmp15_;
              _tmp13_ = track;
              _tmp14_ = unity_music_lens_track_get_album (_tmp13_);
              _tmp15_ = _tmp14_;
              _tmp9_ = g_strcmp0 (_tmp15_, UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_UNKNOWN_ALBUM) == 0;
       }
       _tmp16_ = _tmp9_;
       if (_tmp16_) {
              _g_free0 (albumart);
              return;
       }
       _tmp18_ = track;
       _tmp19_ = unity_music_lens_track_get_album_artist (_tmp18_);
       _tmp20_ = _tmp19_;
       if (_tmp20_ != NULL) {
              UnityMusicLensTrack* _tmp21_;
              const gchar* _tmp22_;
              const gchar* _tmp23_;
              _tmp21_ = track;
              _tmp22_ = unity_music_lens_track_get_album_artist (_tmp21_);
              _tmp23_ = _tmp22_;
              _tmp17_ = _tmp23_;
       } else {
              UnityMusicLensTrack* _tmp24_;
              const gchar* _tmp25_;
              const gchar* _tmp26_;
              _tmp24_ = track;
              _tmp25_ = unity_music_lens_track_get_artist (_tmp24_);
              _tmp26_ = _tmp25_;
              _tmp17_ = _tmp26_;
       }
       _tmp27_ = track;
       _tmp28_ = unity_music_lens_track_get_album (_tmp27_);
       _tmp29_ = _tmp28_;
       _tmp30_ = _tmp17_;
       _tmp31_ = g_strdup_printf ("%s - %s", _tmp29_, _tmp30_);
       album_key = _tmp31_;
       _tmp32_ = self->priv->album_to_tracks_map;
       _tmp33_ = album_key;
       _tmp34_ = g_hash_table_lookup (_tmp32_, _tmp33_);
       _tmp35_ = _g_ptr_array_ref0 ((GPtrArray*) _tmp34_);
       arr = _tmp35_;
       _tmp36_ = arr;
       if (_tmp36_ == NULL) {
              GPtrArray* _tmp37_;
              GHashTable* _tmp38_;
              const gchar* _tmp39_;
              gchar* _tmp40_;
              GPtrArray* _tmp41_;
              GPtrArray* _tmp42_;
              _tmp37_ = g_ptr_array_new_with_free_func (NULL);
              _g_ptr_array_unref0 (arr);
              arr = _tmp37_;
              _tmp38_ = self->priv->album_to_tracks_map;
              _tmp39_ = album_key;
              _tmp40_ = g_strdup (_tmp39_);
              _tmp41_ = arr;
              _tmp42_ = _g_ptr_array_ref0 (_tmp41_);
              g_hash_table_insert (_tmp38_, _tmp40_, _tmp42_);
       }
       _tmp43_ = arr;
       _tmp44_ = iter;
       g_ptr_array_add (_tmp43_, _tmp44_);
       _g_ptr_array_unref0 (arr);
       _g_free0 (album_key);
       _g_free0 (albumart);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __unity_music_lens_rhythmbox_collection___lambda10__dee_term_filter_func ( DeeTermList *  terms_in,
DeeTermList *  terms_out,
gpointer  self 
) [static]

Definition at line 3203 of file rhythmbox-collection.c.

                                                                                                                                                    {
       _unity_music_lens_rhythmbox_collection___lambda10_ (self, terms_in, terms_out);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint __unity_music_lens_rhythmbox_collection___lambda9__dee_compare_row_func ( GVariant **  row1,
GVariant **  row2,
gpointer  self 
) [static]

Definition at line 3126 of file rhythmbox-collection.c.

                                                                                                                                      {
       gint result;
       result = _unity_music_lens_rhythmbox_collection___lambda9_ (self, row1, -1, row2, -1);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _g_free0_ ( gpointer  var) [static]

Definition at line 3085 of file rhythmbox-collection.c.

                                     {
       var = (g_free (var), NULL);
}

Here is the caller graph for this function:

static gpointer _g_object_ref0 ( gpointer  self) [static]

Definition at line 1327 of file rhythmbox-collection.c.

                                               {
       return self ? g_object_ref (self) : NULL;
}

Here is the caller graph for this function:

static gpointer _g_ptr_array_ref0 ( gpointer  self) [static]

Definition at line 902 of file rhythmbox-collection.c.

                                                  {
       return self ? g_ptr_array_ref (self) : NULL;
}

Here is the caller graph for this function:

static void _g_ptr_array_unref0_ ( gpointer  var) [static]

Definition at line 3090 of file rhythmbox-collection.c.

                                                {
       (var == NULL) ? NULL : (var = (g_ptr_array_unref (var), NULL));
}

Here is the caller graph for this function:

static gpointer _g_variant_ref0 ( gpointer  self) [static]

Definition at line 991 of file rhythmbox-collection.c.

                                                {
       return self ? g_variant_ref (self) : NULL;
}

Here is the caller graph for this function:

static void _g_variant_unref0_ ( gpointer  var) [static]

Definition at line 3080 of file rhythmbox-collection.c.

                                              {
       (var == NULL) ? NULL : (var = (g_variant_unref (var), NULL));
}

Here is the caller graph for this function:

static void _unity_music_lens_rhythmbox_collection___lambda10_ ( UnityMusicLensRhythmboxCollection *  self,
DeeTermList *  terms_in,
DeeTermList *  terms_out 
) [static]

Definition at line 3133 of file rhythmbox-collection.c.

                                                                                                                                                        {
       g_return_if_fail (terms_in != NULL);
       g_return_if_fail (terms_out != NULL);
       {
              DeeTermList* _tmp0_;
              DeeTermList* _tmp1_;
              DeeTermList* _term_list;
              DeeTermList* _tmp2_;
              guint _tmp3_;
              guint _tmp4_;
              guint _term_size;
              gint _term_index;
              _tmp0_ = terms_in;
              _tmp1_ = _g_object_ref0 (_tmp0_);
              _term_list = _tmp1_;
              _tmp2_ = _term_list;
              _tmp3_ = dee_term_list_num_terms (_tmp2_);
              _tmp4_ = _tmp3_;
              _term_size = _tmp4_;
              _term_index = -1;
              while (TRUE) {
                     gint _tmp5_;
                     gint _tmp6_;
                     guint _tmp7_;
                     DeeTermList* _tmp8_;
                     gint _tmp9_;
                     const gchar* _tmp10_ = NULL;
                     const gchar* term;
                     DeeICUTermFilter* _tmp11_;
                     const gchar* _tmp12_;
                     gchar* _tmp13_ = NULL;
                     gchar* folded;
                     DeeTermList* _tmp14_;
                     const gchar* _tmp15_;
                     const gchar* _tmp16_;
                     const gchar* _tmp17_;
                     _tmp5_ = _term_index;
                     _term_index = _tmp5_ + 1;
                     _tmp6_ = _term_index;
                     _tmp7_ = _term_size;
                     if (!(((guint) _tmp6_) < _tmp7_)) {
                            break;
                     }
                     _tmp8_ = _term_list;
                     _tmp9_ = _term_index;
                     _tmp10_ = dee_term_list_get_term (_tmp8_, (guint) _tmp9_);
                     term = _tmp10_;
                     _tmp11_ = self->priv->ascii_filter;
                     _tmp12_ = term;
                     _tmp13_ = dee_icu_term_filter_apply (_tmp11_, _tmp12_);
                     folded = _tmp13_;
                     _tmp14_ = terms_out;
                     _tmp15_ = term;
                     dee_term_list_add_term (_tmp14_, _tmp15_);
                     _tmp16_ = folded;
                     _tmp17_ = term;
                     if (g_strcmp0 (_tmp16_, _tmp17_) != 0) {
                            DeeTermList* _tmp18_;
                            const gchar* _tmp19_;
                            _tmp18_ = terms_out;
                            _tmp19_ = folded;
                            dee_term_list_add_term (_tmp18_, _tmp19_);
                     }
                     _g_free0 (folded);
              }
              _g_object_unref0 (_term_list);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _unity_music_lens_rhythmbox_collection___lambda9_ ( UnityMusicLensRhythmboxCollection *  self,
GVariant **  row1,
int  row1_length1,
GVariant **  row2,
int  row2_length1 
) [static]

Definition at line 3095 of file rhythmbox-collection.c.

                                                                                                                                                                              {
       gint result = 0;
       GVariant** _tmp0_;
       gint _tmp0__length1;
       GVariant* _tmp1_;
       gint32 _tmp2_ = 0;
       gint a;
       GVariant** _tmp3_;
       gint _tmp3__length1;
       GVariant* _tmp4_;
       gint32 _tmp5_ = 0;
       gint b;
       gint _tmp6_;
       gint _tmp7_;
       _tmp0_ = row1;
       _tmp0__length1 = row1_length1;
       _tmp1_ = _tmp0_[UNITY_MUSIC_LENS_COLUMNS_PLAY_COUNT];
       _tmp2_ = g_variant_get_int32 (_tmp1_);
       a = (gint) _tmp2_;
       _tmp3_ = row2;
       _tmp3__length1 = row2_length1;
       _tmp4_ = _tmp3_[UNITY_MUSIC_LENS_COLUMNS_PLAY_COUNT];
       _tmp5_ = g_variant_get_int32 (_tmp4_);
       b = (gint) _tmp5_;
       _tmp6_ = b;
       _tmp7_ = a;
       result = _tmp6_ - _tmp7_;
       return result;
}

Here is the caller graph for this function:

static void _unity_music_lens_rhythmbox_collection_xml_parser_end_tag_gmarkup_parser_end_element_func ( GMarkupParseContext *  context,
const gchar *  element_name,
gpointer  self,
GError **  error 
) [static]

Definition at line 3297 of file rhythmbox-collection.c.

                                                                                                                                                                                               {
       unity_music_lens_rhythmbox_collection_xml_parser_end_tag (self, context, element_name, error);
}

Here is the call graph for this function:

static void _unity_music_lens_rhythmbox_collection_xml_parser_process_text_gmarkup_parser_text_func ( GMarkupParseContext *  context,
const gchar *  text,
gsize  text_len,
gpointer  self,
GError **  error 
) [static]

Definition at line 3302 of file rhythmbox-collection.c.

                                                                                                                                                                                                     {
       unity_music_lens_rhythmbox_collection_xml_parser_process_text (self, context, text, text_len, error);
}

Here is the call graph for this function:

static void _unity_music_lens_rhythmbox_collection_xml_parser_start_tag_gmarkup_parser_start_element_func ( GMarkupParseContext *  context,
const gchar *  element_name,
gchar **  attribute_names,
gchar **  attribute_values,
gpointer  self,
GError **  error 
) [static]

Definition at line 3292 of file rhythmbox-collection.c.

                                                                                                                                                                                                                                                      {
       unity_music_lens_rhythmbox_collection_xml_parser_start_tag (self, context, element_name, attribute_names, attribute_values, error);
}

Here is the call graph for this function:

static void _vala_array_destroy ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 3911 of file rhythmbox-collection.c.

                                                                                                 {
       if ((array != NULL) && (destroy_func != NULL)) {
              int i;
              for (i = 0; i < array_length; i = i + 1) {
                     if (((gpointer*) array)[i] != NULL) {
                            destroy_func (((gpointer*) array)[i]);
                     }
              }
       }
}

Here is the caller graph for this function:

static void _vala_array_free ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 3923 of file rhythmbox-collection.c.

                                                                                              {
       _vala_array_destroy (array, array_length, destroy_func);
       g_free (array);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _vala_array_length ( gpointer  array) [static]

Definition at line 3929 of file rhythmbox-collection.c.

                                                {
       int length;
       length = 0;
       if (array) {
              while (((gpointer*) array)[length]) {
                     length++;
              }
       }
       return length;
}

Here is the caller graph for this function:

static Block2Data* block2_data_ref ( Block2Data *  _data2_) [static]

Definition at line 1312 of file rhythmbox-collection.c.

                                                         {
       g_atomic_int_inc (&_data2_->_ref_count_);
       return _data2_;
}

Here is the caller graph for this function:

static void block2_data_unref ( Block2Data *  _data2_) [static]

Definition at line 1318 of file rhythmbox-collection.c.

                                                    {
       if (g_atomic_int_dec_and_test (&_data2_->_ref_count_)) {
              _g_object_unref0 (_data2_->self);
              _g_free0 (_data2_->path);
              g_slice_free (Block2Data, _data2_);
       }
}

Here is the caller graph for this function:

static gint g_ptr_array_get_length ( GPtrArray *  self) [static]

Definition at line 907 of file rhythmbox-collection.c.

                                                     {
       gint result;
       guint _tmp0_;
       g_return_val_if_fail (self != NULL, 0);
       _tmp0_ = self->len;
       result = (gint) _tmp0_;
       return result;
}

Here is the caller graph for this function:

static void g_ptr_array_set_length ( GPtrArray *  self,
gint  value 
) [static]

Definition at line 917 of file rhythmbox-collection.c.

                                                                 {
       gint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       g_ptr_array_set_size (self, _tmp0_);
}
static guint8* string_get_data ( const gchar *  self,
int *  result_length1 
) [static]

Definition at line 409 of file rhythmbox-collection.c.

                                                                        {
       guint8* result;
       guint8* res;
       gint res_length1;
       gint _res_size_;
       gint _tmp0_;
       gint _tmp1_;
       gint _tmp2_;
       guint8* _tmp3_;
       gint _tmp3__length1;
       guint8* _tmp4_;
       gint _tmp4__length1;
       g_return_val_if_fail (self != NULL, NULL);
       res = (guint8*) self;
       res_length1 = -1;
       _res_size_ = res_length1;
       _tmp0_ = strlen (self);
       _tmp1_ = _tmp0_;
       res_length1 = (gint) _tmp1_;
       _tmp2_ = res_length1;
       _tmp3_ = res;
       _tmp3__length1 = res_length1;
       _tmp4_ = _tmp3_;
       _tmp4__length1 = _tmp3__length1;
       if (result_length1) {
              *result_length1 = _tmp4__length1;
       }
       result = _tmp4_;
       return result;
}

Here is the caller graph for this function:

static gchar* string_strip ( const gchar *  self) [static]

Definition at line 2030 of file rhythmbox-collection.c.

                                               {
       gchar* result = NULL;
       gchar* _tmp0_ = NULL;
       gchar* _result_;
       const gchar* _tmp1_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = g_strdup (self);
       _result_ = _tmp0_;
       _tmp1_ = _result_;
       g_strstrip (_tmp1_);
       result = _result_;
       return result;
}

Here is the caller graph for this function:

Definition at line 225 of file rhythmbox-collection.c.

      {
       UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_DUMMY_PROPERTY
};
UnityMusicLensGenre* unity_music_lens_genre_construct ( GType  object_type)

Definition at line 140 of file genre.c.

                                                                          {
       UnityMusicLensGenre * self = NULL;
       self = (UnityMusicLensGenre*) g_object_new (object_type, NULL);
       return self;
}
gchar* unity_music_lens_genre_get_id_for_genre ( UnityMusicLensGenre *  self,
const gchar *  genre 
)

Definition at line 115 of file genre.c.

                                                                                               {
       gchar* result = NULL;
       GeeMap* _tmp0_;
       const gchar* _tmp1_;
       gpointer _tmp2_ = NULL;
       gchar* _tmp3_;
       const gchar* _tmp4_;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (genre != NULL, NULL);
       _tmp0_ = unity_music_lens_genre_inverted_map;
       _tmp1_ = genre;
       _tmp2_ = gee_map_get (_tmp0_, _tmp1_);
       _tmp3_ = (gchar*) _tmp2_;
       _tmp4_ = _tmp3_;
       if (_tmp4_ == NULL) {
              gchar* _tmp5_;
              _tmp5_ = g_strdup (UNITY_MUSIC_LENS_GENRE_OTHER_ID);
              _g_free0 (_tmp3_);
              _tmp3_ = _tmp5_;
       }
       result = _tmp3_;
       return result;
}

Here is the caller graph for this function:

UnityMusicLensGenre* unity_music_lens_genre_new ( void  )

Definition at line 147 of file genre.c.

Here is the call graph for this function:

static void unity_music_lens_rhythmbox_collection_add_result ( UnityMusicLensRhythmboxCollection *  self,
DeeModel *  results_model,
DeeModel *  model,
DeeModelIter *  iter,
UnityMusicLensRhythmboxCollectionResultType  result_type,
guint  category_id 
) [static]

Definition at line 1736 of file rhythmbox-collection.c.

                                                                                                                                                                                                                                                 {
       DeeModelTag* _tmp0_;
       DeeModel* _tmp1_;
       DeeModelIter* _tmp2_;
       gconstpointer _tmp3_ = NULL;
       gint tag;
       gint _tmp4_;
       gint _tmp5_;
       UnityMusicLensColumns _tmp42_ = 0;
       gboolean _tmp43_ = FALSE;
       UnityMusicLensRhythmboxCollectionResultType _tmp44_;
       gboolean _tmp46_;
       UnityMusicLensColumns _tmp47_;
       UnityMusicLensColumns title_col;
       DeeModel* _tmp48_;
       DeeModelIter* _tmp49_;
       UnityMusicLensColumns _tmp50_;
       const gchar* _tmp51_ = NULL;
       const gchar* title;
       DeeModel* _tmp52_;
       DeeModelIter* _tmp53_;
       const gchar* _tmp54_ = NULL;
       gchar* _tmp55_;
       gchar* uri;
       DeeModel* _tmp56_;
       DeeModelIter* _tmp57_;
       const gchar* _tmp58_ = NULL;
       gchar* _tmp59_;
       gchar* dnd_uri;
       UnityMusicLensRhythmboxCollectionResultType _tmp60_;
       DeeModel* _tmp84_;
       const gchar* _tmp85_;
       DeeModel* _tmp86_;
       DeeModelIter* _tmp87_;
       const gchar* _tmp88_ = NULL;
       guint _tmp89_;
       DeeModel* _tmp90_;
       DeeModelIter* _tmp91_;
       const gchar* _tmp92_ = NULL;
       const gchar* _tmp93_;
       DeeModel* _tmp94_;
       DeeModelIter* _tmp95_;
       const gchar* _tmp96_ = NULL;
       const gchar* _tmp97_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (results_model != NULL);
       g_return_if_fail (model != NULL);
       g_return_if_fail (iter != NULL);
       _tmp0_ = self->priv->album_art_tag;
       _tmp1_ = model;
       _tmp2_ = iter;
       _tmp3_ = dee_model_get_tag (_tmp1_, _tmp2_, _tmp0_);
       tag = GPOINTER_TO_INT (_tmp3_);
       _tmp4_ = tag;
       _tmp5_ = self->priv->current_album_art_tag;
       if (_tmp4_ < _tmp5_) {
              DeeModel* _tmp6_;
              DeeModelIter* _tmp7_;
              const gchar* _tmp8_ = NULL;
              const gchar* album;
              DeeModel* _tmp9_;
              DeeModelIter* _tmp10_;
              const gchar* _tmp11_ = NULL;
              const gchar* artist;
              const gchar* _tmp12_;
              const gchar* _tmp16_;
              const gchar* _tmp17_;
              gchar* _tmp18_ = NULL;
              gchar* album_art_string;
              const gchar* _tmp19_;
              DeeModelTag* _tmp38_;
              DeeModel* _tmp39_;
              DeeModelIter* _tmp40_;
              gint _tmp41_;
              _tmp6_ = model;
              _tmp7_ = iter;
              _tmp8_ = dee_model_get_string (_tmp6_, _tmp7_, (guint) UNITY_MUSIC_LENS_COLUMNS_ALBUM);
              album = _tmp8_;
              _tmp9_ = model;
              _tmp10_ = iter;
              _tmp11_ = dee_model_get_string (_tmp9_, _tmp10_, (guint) UNITY_MUSIC_LENS_COLUMNS_ALBUM_ARTIST);
              artist = _tmp11_;
              _tmp12_ = artist;
              if (g_strcmp0 (_tmp12_, "") == 0) {
                     DeeModel* _tmp13_;
                     DeeModelIter* _tmp14_;
                     const gchar* _tmp15_ = NULL;
                     _tmp13_ = model;
                     _tmp14_ = iter;
                     _tmp15_ = dee_model_get_string (_tmp13_, _tmp14_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTIST);
                     artist = _tmp15_;
              }
              _tmp16_ = artist;
              _tmp17_ = album;
              _tmp18_ = unity_music_lens_rhythmbox_collection_check_album_art_tdb (self, _tmp16_, _tmp17_);
              album_art_string = _tmp18_;
              _tmp19_ = album_art_string;
              if (_tmp19_ != NULL) {
                     gchar* filename = NULL;
                     const gchar* _tmp20_ = NULL;
                     const gchar* _tmp21_;
                     gchar* _tmp22_ = NULL;
                     const gchar* _tmp23_ = NULL;
                     const gchar* _tmp24_;
                     gboolean _tmp25_ = FALSE;
                     const gchar* _tmp27_;
                     gchar* _tmp28_;
                     const gchar* _tmp29_;
                     DeeModel* _tmp30_;
                     DeeModelIter* _tmp31_;
                     const gchar* _tmp32_ = NULL;
                     _tmp20_ = g_get_user_cache_dir ();
                     _tmp21_ = album_art_string;
                     _tmp22_ = g_build_filename (_tmp20_, "rhythmbox", "album-art", _tmp21_, NULL);
                     _g_free0 (filename);
                     filename = _tmp22_;
                     _tmp24_ = filename;
                     _tmp25_ = g_file_test (_tmp24_, G_FILE_TEST_EXISTS);
                     if (_tmp25_) {
                            const gchar* _tmp26_;
                            _tmp26_ = filename;
                            _tmp23_ = _tmp26_;
                     } else {
                            _tmp23_ = "audio-x-generic";
                     }
                     _tmp27_ = _tmp23_;
                     _tmp28_ = g_strdup (_tmp27_);
                     _g_free0 (album_art_string);
                     album_art_string = _tmp28_;
                     _tmp29_ = album_art_string;
                     _tmp30_ = model;
                     _tmp31_ = iter;
                     _tmp32_ = dee_model_get_string (_tmp30_, _tmp31_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTWORK);
                     if (g_strcmp0 (_tmp29_, _tmp32_) != 0) {
                            DeeModel* _tmp33_;
                            DeeModelIter* _tmp34_;
                            const gchar* _tmp35_;
                            GVariant* _tmp36_ = NULL;
                            GVariant* _tmp37_;
                            _tmp33_ = model;
                            _tmp34_ = iter;
                            _tmp35_ = album_art_string;
                            _tmp36_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp35_);
                            _tmp37_ = _tmp36_;
                            dee_model_set_value (_tmp33_, _tmp34_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTWORK, _tmp37_);
                            _g_variant_unref0 (_tmp37_);
                     }
                     _g_free0 (filename);
              }
              _tmp38_ = self->priv->album_art_tag;
              _tmp39_ = model;
              _tmp40_ = iter;
              _tmp41_ = self->priv->current_album_art_tag;
              dee_model_set_tag (_tmp39_, _tmp40_, _tmp38_, GINT_TO_POINTER (_tmp41_));
              _g_free0 (album_art_string);
       }
       _tmp44_ = result_type;
       if (_tmp44_ == UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_SONG) {
              _tmp43_ = TRUE;
       } else {
              UnityMusicLensRhythmboxCollectionResultType _tmp45_;
              _tmp45_ = result_type;
              _tmp43_ = _tmp45_ == UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_RADIO;
       }
       _tmp46_ = _tmp43_;
       if (_tmp46_) {
              _tmp42_ = UNITY_MUSIC_LENS_COLUMNS_TITLE;
       } else {
              _tmp42_ = UNITY_MUSIC_LENS_COLUMNS_ALBUM;
       }
       _tmp47_ = _tmp42_;
       title_col = _tmp47_;
       _tmp48_ = model;
       _tmp49_ = iter;
       _tmp50_ = title_col;
       _tmp51_ = dee_model_get_string (_tmp48_, _tmp49_, (guint) _tmp50_);
       title = _tmp51_;
       _tmp52_ = model;
       _tmp53_ = iter;
       _tmp54_ = dee_model_get_string (_tmp52_, _tmp53_, (guint) UNITY_MUSIC_LENS_COLUMNS_URI);
       _tmp55_ = g_strdup (_tmp54_);
       uri = _tmp55_;
       _tmp56_ = model;
       _tmp57_ = iter;
       _tmp58_ = dee_model_get_string (_tmp56_, _tmp57_, (guint) UNITY_MUSIC_LENS_COLUMNS_URI);
       _tmp59_ = g_strdup (_tmp58_);
       dnd_uri = _tmp59_;
       _tmp60_ = result_type;
       if (_tmp60_ == UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_ALBUM) {
              gboolean _tmp61_ = FALSE;
              const gchar* _tmp62_;
              gboolean _tmp64_;
              DeeModel* _tmp65_;
              DeeModelIter* _tmp66_;
              const gchar* _tmp67_ = NULL;
              const gchar* artist;
              const gchar* _tmp68_;
              const gchar* _tmp72_;
              const gchar* _tmp73_;
              gchar* _tmp74_ = NULL;
              gchar* album_key;
              GString* _tmp75_;
              GString* sb;
              const gchar* _tmp76_;
              GSList* _tmp77_ = NULL;
              GString* _tmp80_;
              gchar* _tmp81_;
              const gchar* _tmp82_;
              gchar* _tmp83_ = NULL;
              _tmp62_ = title;
              if (g_strcmp0 (_tmp62_, "") == 0) {
                     _tmp61_ = TRUE;
              } else {
                     const gchar* _tmp63_;
                     _tmp63_ = title;
                     _tmp61_ = g_strcmp0 (_tmp63_, UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_UNKNOWN_ALBUM) == 0;
              }
              _tmp64_ = _tmp61_;
              if (_tmp64_) {
                     _g_free0 (dnd_uri);
                     _g_free0 (uri);
                     return;
              }
              _tmp65_ = model;
              _tmp66_ = iter;
              _tmp67_ = dee_model_get_string (_tmp65_, _tmp66_, (guint) UNITY_MUSIC_LENS_COLUMNS_ALBUM_ARTIST);
              artist = _tmp67_;
              _tmp68_ = artist;
              if (g_strcmp0 (_tmp68_, "") == 0) {
                     DeeModel* _tmp69_;
                     DeeModelIter* _tmp70_;
                     const gchar* _tmp71_ = NULL;
                     _tmp69_ = model;
                     _tmp70_ = iter;
                     _tmp71_ = dee_model_get_string (_tmp69_, _tmp70_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTIST);
                     artist = _tmp71_;
              }
              _tmp72_ = title;
              _tmp73_ = artist;
              _tmp74_ = g_strdup_printf ("%s - %s", _tmp72_, _tmp73_);
              album_key = _tmp74_;
              _tmp75_ = g_string_new ("");
              sb = _tmp75_;
              _tmp76_ = album_key;
              _tmp77_ = unity_music_lens_rhythmbox_collection_get_album_tracks (self, _tmp76_);
              {
                     GSList* track_uri_collection = NULL;
                     GSList* track_uri_it = NULL;
                     track_uri_collection = _tmp77_;
                     for (track_uri_it = track_uri_collection; track_uri_it != NULL; track_uri_it = track_uri_it->next) {
                            const gchar* track_uri = NULL;
                            track_uri = (const gchar*) track_uri_it->data;
                            {
                                   GString* _tmp78_;
                                   const gchar* _tmp79_;
                                   _tmp78_ = sb;
                                   _tmp79_ = track_uri;
                                   g_string_append_printf (_tmp78_, "%s\r\n", _tmp79_);
                            }
                     }
                     _g_slist_free0 (track_uri_collection);
              }
              _tmp80_ = sb;
              _tmp81_ = _tmp80_->str;
              _tmp80_->str = NULL;
              _g_free0 (dnd_uri);
              dnd_uri = _tmp81_;
              _tmp82_ = album_key;
              _tmp83_ = g_strdup_printf ("album://%s", _tmp82_);
              _g_free0 (uri);
              uri = _tmp83_;
              _g_string_free0 (sb);
              _g_free0 (album_key);
       }
       _tmp84_ = results_model;
       _tmp85_ = uri;
       _tmp86_ = model;
       _tmp87_ = iter;
       _tmp88_ = dee_model_get_string (_tmp86_, _tmp87_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTWORK);
       _tmp89_ = category_id;
       _tmp90_ = model;
       _tmp91_ = iter;
       _tmp92_ = dee_model_get_string (_tmp90_, _tmp91_, (guint) UNITY_MUSIC_LENS_COLUMNS_MIMETYPE);
       _tmp93_ = title;
       _tmp94_ = model;
       _tmp95_ = iter;
       _tmp96_ = dee_model_get_string (_tmp94_, _tmp95_, (guint) UNITY_MUSIC_LENS_COLUMNS_ARTIST);
       _tmp97_ = dnd_uri;
       dee_model_append (_tmp84_, _tmp85_, _tmp88_, _tmp89_, _tmp92_, _tmp93_, _tmp96_, _tmp97_, NULL);
       _g_free0 (dnd_uri);
       _g_free0 (uri);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static GVariant* unity_music_lens_rhythmbox_collection_cached_variant_for_int ( UnityMusicLensRhythmboxCollection *  self,
gint  input 
) [static]

Definition at line 1053 of file rhythmbox-collection.c.

                                                                                                                                    {
       GVariant* result = NULL;
       GHashTable* _tmp0_;
       gint _tmp1_;
       gconstpointer _tmp2_ = NULL;
       GVariant* _tmp3_;
       GVariant* v;
       GVariant* _tmp4_;
       gint _tmp5_;
       GVariant* _tmp6_;
       GVariant* _tmp7_;
       gint _tmp8_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->int_variant_store;
       _tmp1_ = input;
       _tmp2_ = g_hash_table_lookup (_tmp0_, GINT_TO_POINTER (_tmp1_));
       _tmp3_ = _g_variant_ref0 ((GVariant*) _tmp2_);
       v = _tmp3_;
       _tmp4_ = v;
       if (_tmp4_ != NULL) {
              result = v;
              return result;
       }
       _tmp5_ = input;
       _tmp6_ = g_variant_new_int32 ((gint32) _tmp5_);
       _tmp7_ = g_variant_ref_sink (_tmp6_);
       _g_variant_unref0 (v);
       v = _tmp7_;
       _tmp8_ = input;
       if (_tmp8_ < 128) {
              GHashTable* _tmp9_;
              gint _tmp10_;
              GVariant* _tmp11_;
              GVariant* _tmp12_;
              _tmp9_ = self->priv->int_variant_store;
              _tmp10_ = input;
              _tmp11_ = v;
              _tmp12_ = _g_variant_ref0 (_tmp11_);
              g_hash_table_insert (_tmp9_, GINT_TO_POINTER (_tmp10_), _tmp12_);
       }
       result = v;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static GVariant* unity_music_lens_rhythmbox_collection_cached_variant_for_string ( UnityMusicLensRhythmboxCollection *  self,
const gchar *  input 
) [static]

Definition at line 996 of file rhythmbox-collection.c.

                                                                                                                                               {
       GVariant* result = NULL;
       const gchar* _tmp0_ = NULL;
       const gchar* _tmp1_;
       const gchar* _tmp3_;
       const gchar* text;
       GHashTable* _tmp4_;
       const gchar* _tmp5_;
       gconstpointer _tmp6_ = NULL;
       GVariant* _tmp7_;
       GVariant* v;
       GVariant* _tmp8_;
       const gchar* _tmp9_;
       GVariant* _tmp10_;
       GVariant* _tmp11_;
       GHashTable* _tmp12_;
       GVariant* _tmp13_;
       const gchar* _tmp14_ = NULL;
       GVariant* _tmp15_;
       GVariant* _tmp16_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp1_ = input;
       if (_tmp1_ != NULL) {
              const gchar* _tmp2_;
              _tmp2_ = input;
              _tmp0_ = _tmp2_;
       } else {
              _tmp0_ = "";
       }
       _tmp3_ = _tmp0_;
       text = _tmp3_;
       _tmp4_ = self->priv->variant_store;
       _tmp5_ = text;
       _tmp6_ = g_hash_table_lookup (_tmp4_, _tmp5_);
       _tmp7_ = _g_variant_ref0 ((GVariant*) _tmp6_);
       v = _tmp7_;
       _tmp8_ = v;
       if (_tmp8_ != NULL) {
              result = v;
              return result;
       }
       _tmp9_ = text;
       _tmp10_ = g_variant_new_string (_tmp9_);
       _tmp11_ = g_variant_ref_sink (_tmp10_);
       _g_variant_unref0 (v);
       v = _tmp11_;
       _tmp12_ = self->priv->variant_store;
       _tmp13_ = v;
       _tmp14_ = g_variant_get_string (_tmp13_, NULL);
       _tmp15_ = v;
       _tmp16_ = _g_variant_ref0 (_tmp15_);
       g_hash_table_insert (_tmp12_, _tmp14_, _tmp16_);
       result = v;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gchar* unity_music_lens_rhythmbox_collection_check_album_art_tdb ( UnityMusicLensRhythmboxCollection *  self,
const gchar *  artist,
const gchar *  album 
) [static]

Definition at line 441 of file rhythmbox-collection.c.

                                                                                                                                                           {
       gchar* result = NULL;
       TDB_CONTEXT* _tmp0_;
       guint8 _tmp1_[1] = {0};
       guint8 null_helper[1];
       GByteArray* _tmp2_;
       GByteArray* byte_arr;
       GByteArray* _tmp3_;
       guint8* _tmp4_;
       gint _tmp4__length1;
       guint8* _tmp5_;
       gint _tmp5__length1;
       GByteArray* _tmp6_;
       GByteArray* _tmp7_;
       const gchar* _tmp8_;
       guint8* _tmp9_;
       gint _tmp9__length1;
       guint8* _tmp10_;
       gint _tmp10__length1;
       GByteArray* _tmp11_;
       GByteArray* _tmp12_;
       guint8* _tmp13_;
       gint _tmp13__length1;
       guint8* _tmp14_;
       gint _tmp14__length1;
       GByteArray* _tmp15_;
       GByteArray* _tmp16_;
       const gchar* _tmp17_;
       guint8* _tmp18_;
       gint _tmp18__length1;
       guint8* _tmp19_;
       gint _tmp19__length1;
       GByteArray* _tmp20_;
       TDB_DATA key;
       GByteArray* _tmp21_;
       guint8* _tmp22_;
       gint _tmp22__length1;
       TDB_CONTEXT* _tmp23_;
       TDB_DATA _tmp24_;
       TDB_DATA _tmp25_ = {0};
       TDB_DATA val;
       TDB_DATA _tmp26_;
       guint8* _tmp27_;
       gint _tmp27__length1;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (artist != NULL, NULL);
       g_return_val_if_fail (album != NULL, NULL);
       _tmp0_ = self->priv->album_art_tdb;
       if (_tmp0_ == NULL) {
              result = NULL;
              return result;
       }
       _tmp1_[0] = (guint8) 0;
       memcpy (null_helper, _tmp1_, 1 * sizeof (guint8));
       _tmp2_ = g_byte_array_new ();
       byte_arr = _tmp2_;
       _tmp3_ = byte_arr;
       _tmp4_ = string_get_data ("album", &_tmp4__length1);
       _tmp5_ = _tmp4_;
       _tmp5__length1 = _tmp4__length1;
       g_byte_array_append (_tmp3_, _tmp5_, _tmp5__length1);
       _tmp6_ = byte_arr;
       g_byte_array_append (_tmp6_, null_helper, 1);
       _tmp7_ = byte_arr;
       _tmp8_ = album;
       _tmp9_ = string_get_data (_tmp8_, &_tmp9__length1);
       _tmp10_ = _tmp9_;
       _tmp10__length1 = _tmp9__length1;
       g_byte_array_append (_tmp7_, _tmp10_, _tmp10__length1);
       _tmp11_ = byte_arr;
       g_byte_array_append (_tmp11_, null_helper, 1);
       _tmp12_ = byte_arr;
       _tmp13_ = string_get_data ("artist", &_tmp13__length1);
       _tmp14_ = _tmp13_;
       _tmp14__length1 = _tmp13__length1;
       g_byte_array_append (_tmp12_, _tmp14_, _tmp14__length1);
       _tmp15_ = byte_arr;
       g_byte_array_append (_tmp15_, null_helper, 1);
       _tmp16_ = byte_arr;
       _tmp17_ = artist;
       _tmp18_ = string_get_data (_tmp17_, &_tmp18__length1);
       _tmp19_ = _tmp18_;
       _tmp19__length1 = _tmp18__length1;
       g_byte_array_append (_tmp16_, _tmp19_, _tmp19__length1);
       _tmp20_ = byte_arr;
       g_byte_array_append (_tmp20_, null_helper, 1);
       key = tdb_null;
       _tmp21_ = byte_arr;
       _tmp22_ = _tmp21_->data;
       _tmp22__length1 = (gint) _tmp21_->len;
       key.dptr = _tmp22_;
       key.dsize = _tmp22__length1;
       _tmp23_ = self->priv->album_art_tdb;
       _tmp24_ = key;
       _tmp25_ = tdb_fetch (_tmp23_, _tmp24_);
       val = _tmp25_;
       _tmp26_ = val;
       _tmp27_ = _tmp26_.dptr;
       _tmp27__length1 = (gint) _tmp26_.dsize;
       if (_tmp27_ != NULL) {
              GVariantType* _tmp28_;
              GVariantType* _tmp29_;
              TDB_DATA _tmp30_;
              guint8* _tmp31_;
              gint _tmp31__length1;
              GVariant* _tmp32_ = NULL;
              GVariant* _tmp33_;
              GVariant* _tmp34_;
              GVariant* v;
              GVariant* _tmp35_;
              const GVariantType* _tmp36_;
              GVariant* _tmp37_ = NULL;
              GVariant* file_variant;
              GVariant* _tmp38_;
              _tmp28_ = g_variant_type_new ("a{sv}");
              _tmp29_ = _tmp28_;
              _tmp30_ = val;
              _tmp31_ = _tmp30_.dptr;
              _tmp31__length1 = (gint) _tmp30_.dsize;
              _tmp32_ = g_variant_new_from_data (_tmp29_, _tmp31_, _tmp31__length1, FALSE, NULL, NULL);
              _tmp33_ = g_variant_ref_sink (_tmp32_);
              _tmp34_ = _tmp33_;
              _g_variant_type_free0 (_tmp29_);
              v = _tmp34_;
              _tmp35_ = v;
              _tmp36_ = G_VARIANT_TYPE_STRING;
              _tmp37_ = g_variant_lookup_value (_tmp35_, "file", _tmp36_);
              file_variant = _tmp37_;
              _tmp38_ = file_variant;
              if (_tmp38_ != NULL) {
                     GVariant* _tmp39_;
                     const gchar* _tmp40_ = NULL;
                     gchar* _tmp41_;
                     _tmp39_ = file_variant;
                     _tmp40_ = g_variant_get_string (_tmp39_, NULL);
                     _tmp41_ = g_strdup (_tmp40_);
                     result = _tmp41_;
                     _g_variant_unref0 (file_variant);
                     _g_variant_unref0 (v);
                     _g_byte_array_unref0 (byte_arr);
                     return result;
              }
              _g_variant_unref0 (file_variant);
              _g_variant_unref0 (v);
       }
       result = NULL;
       _g_byte_array_unref0 (byte_arr);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_class_init ( UnityMusicLensRhythmboxCollectionClass *  klass) [static]

Definition at line 3867 of file rhythmbox-collection.c.

                                                                                                              {
       unity_music_lens_rhythmbox_collection_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensRhythmboxCollectionPrivate));
       G_OBJECT_CLASS (klass)->constructor = unity_music_lens_rhythmbox_collection_constructor;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_rhythmbox_collection_finalize;
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensRhythmboxCollection* unity_music_lens_rhythmbox_collection_construct ( GType  object_type)

Definition at line 3068 of file rhythmbox-collection.c.

                                                                                                       {
       UnityMusicLensRhythmboxCollection * self = NULL;
       self = (UnityMusicLensRhythmboxCollection*) g_object_new (object_type, NULL);
       return self;
}

Here is the caller graph for this function:

static GObject* unity_music_lens_rhythmbox_collection_constructor ( GType  type,
guint  n_construct_properties,
GObjectConstructParam *  construct_properties 
) [static]

Definition at line 3208 of file rhythmbox-collection.c.

                                                                                                                                                            {
       GObject * obj;
       GObjectClass * parent_class;
       UnityMusicLensRhythmboxCollection * self;
       const gchar* _tmp0_ = NULL;
       gchar* _tmp1_ = NULL;
       GHashFunc _tmp2_;
       GEqualFunc _tmp3_;
       GHashTable* _tmp4_;
       GHashFunc _tmp5_;
       GEqualFunc _tmp6_;
       GHashTable* _tmp7_;
       DeeSequenceModel* _tmp8_;
       DeeSequenceModel* _tmp9_;
       DeeSequenceModel* _tmp10_;
       guint _tmp11_;
       gchar** _tmp12_ = NULL;
       DeeSequenceModel* _tmp13_;
       DeeModelTag* _tmp14_;
       GHashFunc _tmp15_;
       GEqualFunc _tmp16_;
       GHashTable* _tmp17_;
       DeeFilter _tmp18_ = {0};
       DeeFilter filter;
       DeeSequenceModel* _tmp19_;
       DeeFilter _tmp20_;
       DeeFilterModel* _tmp21_;
       DeeICUTermFilter* _tmp22_;
       DeeTextAnalyzer* _tmp23_;
       DeeAnalyzer* _tmp24_;
       parent_class = G_OBJECT_CLASS (unity_music_lens_rhythmbox_collection_parent_class);
       obj = parent_class->constructor (type, n_construct_properties, construct_properties);
       self = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION (obj);
       G_STATIC_ASSERT (12 == ((gint) UNITY_MUSIC_LENS_COLUMNS_N_COLUMNS));
       _tmp0_ = g_get_user_cache_dir ();
       _tmp1_ = g_build_filename (_tmp0_, "media-art", NULL);
       _g_free0 (self->priv->media_art_dir);
       self->priv->media_art_dir = _tmp1_;
       _tmp2_ = g_str_hash;
       _tmp3_ = g_str_equal;
       _tmp4_ = g_hash_table_new_full (_tmp2_, _tmp3_, NULL, _g_variant_unref0_);
       _g_hash_table_unref0 (self->priv->variant_store);
       self->priv->variant_store = _tmp4_;
       _tmp5_ = g_direct_hash;
       _tmp6_ = g_direct_equal;
       _tmp7_ = g_hash_table_new_full (_tmp5_, _tmp6_, NULL, _g_variant_unref0_);
       _g_hash_table_unref0 (self->priv->int_variant_store);
       self->priv->int_variant_store = _tmp7_;
       _tmp8_ = (DeeSequenceModel*) dee_sequence_model_new ();
       _g_object_unref0 (self->priv->all_tracks);
       self->priv->all_tracks = _tmp8_;
       _tmp9_ = self->priv->all_tracks;
       dee_model_set_schema ((DeeModel*) _tmp9_, "i", "s", "s", "s", "s", "s", "s", "s", "s", "i", "i", "i", NULL);
       _tmp10_ = self->priv->all_tracks;
       _tmp12_ = dee_model_get_schema ((DeeModel*) _tmp10_, &_tmp11_);
       g_assert (_tmp11_ == ((gint) UNITY_MUSIC_LENS_COLUMNS_N_COLUMNS));
       _tmp13_ = self->priv->all_tracks;
       _tmp14_ = dee_model_register_tag ((DeeModel*) _tmp13_, NULL);
       self->priv->album_art_tag = _tmp14_;
       _tmp15_ = g_str_hash;
       _tmp16_ = g_str_equal;
       _tmp17_ = g_hash_table_new_full (_tmp15_, _tmp16_, _g_free0_, _g_ptr_array_unref0_);
       _g_hash_table_unref0 (self->priv->album_to_tracks_map);
       self->priv->album_to_tracks_map = _tmp17_;
       dee_filter_new_sort (__unity_music_lens_rhythmbox_collection___lambda9__dee_compare_row_func, g_object_ref (self), g_object_unref, &_tmp18_);
       filter = _tmp18_;
       _tmp19_ = self->priv->all_tracks;
       _tmp20_ = filter;
       _tmp21_ = (DeeFilterModel*) dee_filter_model_new ((DeeModel*) _tmp19_, &_tmp20_);
       _g_object_unref0 (self->priv->tracks_by_play_count);
       self->priv->tracks_by_play_count = _tmp21_;
       _tmp22_ = dee_icu_term_filter_new_ascii_folder ();
       _dee_icu_term_filter_destroy0 (self->priv->ascii_filter);
       self->priv->ascii_filter = _tmp22_;
       _tmp23_ = dee_text_analyzer_new ();
       _g_object_unref0 (self->priv->analyzer);
       self->priv->analyzer = (DeeAnalyzer*) _tmp23_;
       _tmp24_ = self->priv->analyzer;
       dee_analyzer_add_term_filter (_tmp24_, __unity_music_lens_rhythmbox_collection___lambda10__dee_term_filter_func, g_object_ref (self), g_object_unref);
       unity_music_lens_rhythmbox_collection_initialize_index (self);
       return obj;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_finalize ( GObject *  obj) [static]

Definition at line 3880 of file rhythmbox-collection.c.

                                                                          {
       UnityMusicLensRhythmboxCollection * self;
       self = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION (obj);
       _g_object_unref0 (self->priv->all_tracks);
       _g_object_unref0 (self->priv->tracks_by_play_count);
       _g_hash_table_unref0 (self->priv->album_to_tracks_map);
       _tdb_close0 (self->priv->album_art_tdb);
       _g_object_unref0 (self->priv->tdb_monitor);
       _g_hash_table_unref0 (self->priv->variant_store);
       _g_hash_table_unref0 (self->priv->int_variant_store);
       _vala_array_destroy (self->priv->row_buffer, 12, (GDestroyNotify) g_variant_unref);
       _g_object_unref0 (self->priv->analyzer);
       _g_object_unref0 (self->priv->index);
       _dee_icu_term_filter_destroy0 (self->priv->ascii_filter);
       _g_free0 (self->priv->media_art_dir);
       G_OBJECT_CLASS (unity_music_lens_rhythmbox_collection_parent_class)->finalize (obj);
}

Here is the call graph for this function:

Here is the caller graph for this function:

GSList* unity_music_lens_rhythmbox_collection_get_album_tracks ( UnityMusicLensRhythmboxCollection *  self,
const gchar *  album_key 
)

Definition at line 925 of file rhythmbox-collection.c.

                                                                                                                                 {
       GSList* result = NULL;
       GSList* results;
       GHashTable* _tmp0_;
       const gchar* _tmp1_;
       gconstpointer _tmp2_ = NULL;
       GPtrArray* _tmp3_;
       GPtrArray* iter_arr;
       GPtrArray* _tmp4_;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (album_key != NULL, NULL);
       results = NULL;
       _tmp0_ = self->priv->album_to_tracks_map;
       _tmp1_ = album_key;
       _tmp2_ = g_hash_table_lookup (_tmp0_, _tmp1_);
       _tmp3_ = _g_ptr_array_ref0 ((GPtrArray*) _tmp2_);
       iter_arr = _tmp3_;
       _tmp4_ = iter_arr;
       if (_tmp4_ != NULL) {
              {
                     GPtrArray* _tmp5_;
                     gint _tmp6_;
                     gint _tmp7_;
                     gint i;
                     _tmp5_ = iter_arr;
                     _tmp6_ = g_ptr_array_get_length (_tmp5_);
                     _tmp7_ = _tmp6_;
                     i = _tmp7_ - 1;
                     {
                            gboolean _tmp8_;
                            _tmp8_ = TRUE;
                            while (TRUE) {
                                   gboolean _tmp9_;
                                   gint _tmp11_;
                                   DeeSequenceModel* _tmp12_;
                                   GPtrArray* _tmp13_;
                                   gint _tmp14_;
                                   gconstpointer _tmp15_ = NULL;
                                   const gchar* _tmp16_ = NULL;
                                   _tmp9_ = _tmp8_;
                                   if (!_tmp9_) {
                                          gint _tmp10_;
                                          _tmp10_ = i;
                                          i = _tmp10_ - 1;
                                   }
                                   _tmp8_ = FALSE;
                                   _tmp11_ = i;
                                   if (!(_tmp11_ >= 0)) {
                                          break;
                                   }
                                   _tmp12_ = self->priv->all_tracks;
                                   _tmp13_ = iter_arr;
                                   _tmp14_ = i;
                                   _tmp15_ = g_ptr_array_index (_tmp13_, (guint) _tmp14_);
                                   _tmp16_ = dee_model_get_string ((DeeModel*) _tmp12_, (DeeModelIter*) _tmp15_, (guint) UNITY_MUSIC_LENS_COLUMNS_URI);
                                   results = g_slist_prepend (results, _tmp16_);
                            }
                     }
              }
       }
       result = results;
       _g_ptr_array_unref0 (iter_arr);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gchar* unity_music_lens_rhythmbox_collection_get_albumart ( UnityMusicLensRhythmboxCollection *  self,
UnityMusicLensTrack *  track 
) [static]

Definition at line 592 of file rhythmbox-collection.c.

                                                                                                                                       {
       gchar* result = NULL;
       gchar* filename = NULL;
       UnityMusicLensTrack* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       gchar* _tmp3_;
       gchar* _tmp4_;
       const gchar* _tmp5_;
       const gchar* _tmp10_;
       gchar* _tmp11_;
       gchar* artist;
       UnityMusicLensTrack* _tmp12_;
       const gchar* _tmp13_;
       const gchar* _tmp14_;
       gchar* _tmp15_;
       gchar* album;
       const gchar* _tmp16_;
       gchar* _tmp17_ = NULL;
       gchar* artist_norm;
       const gchar* _tmp18_;
       gchar* _tmp19_ = NULL;
       gchar* album_norm;
       const gchar* _tmp20_;
       const gchar* _tmp21_;
       gchar* _tmp22_ = NULL;
       const gchar* _tmp23_;
       const gchar* _tmp29_;
       gchar* _tmp30_ = NULL;
       gchar* artist_md5;
       const gchar* _tmp31_;
       gchar* _tmp32_ = NULL;
       gchar* album_md5;
       const gchar* _tmp33_;
       const gchar* _tmp34_;
       const gchar* _tmp35_;
       gchar* _tmp36_ = NULL;
       gchar* _tmp37_;
       gchar* _tmp38_ = NULL;
       const gchar* _tmp39_;
       gboolean _tmp40_ = FALSE;
       const gchar* _tmp41_;
       const gchar* _tmp42_;
       gchar* _tmp43_ = NULL;
       gchar* _tmp44_;
       gchar* _tmp45_ = NULL;
       gchar* _tmp46_;
       gchar* combined;
       const gchar* _tmp47_;
       const gchar* _tmp48_;
       gchar* _tmp49_ = NULL;
       gchar* _tmp50_;
       gchar* _tmp51_ = NULL;
       gchar* _tmp52_;
       gchar* _tmp53_ = NULL;
       const gchar* _tmp54_;
       gboolean _tmp55_ = FALSE;
       const gchar* _tmp66_ = NULL;
       UnityMusicLensTrack* _tmp67_;
       const gchar* _tmp68_;
       const gchar* _tmp69_;
       UnityMusicLensTrack* _tmp70_;
       const gchar* _tmp71_;
       const gchar* _tmp72_;
       gchar* _tmp73_ = NULL;
       gchar* _tmp74_;
       gchar* _tmp75_ = NULL;
       gchar* _tmp76_;
       gchar* artwork;
       const gchar* _tmp77_;
       gboolean _tmp78_ = FALSE;
       GError * _inner_error_ = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (track != NULL, NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_track_get_album_artist (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = g_strdup (_tmp2_);
       _tmp4_ = _tmp3_;
       _tmp5_ = _tmp4_;
       if (_tmp5_ == NULL) {
              UnityMusicLensTrack* _tmp6_;
              const gchar* _tmp7_;
              const gchar* _tmp8_;
              gchar* _tmp9_;
              _tmp6_ = track;
              _tmp7_ = unity_music_lens_track_get_artist (_tmp6_);
              _tmp8_ = _tmp7_;
              _tmp9_ = g_strdup (_tmp8_);
              _g_free0 (_tmp4_);
              _tmp4_ = _tmp9_;
       }
       _tmp10_ = _tmp4_;
       _tmp11_ = g_strdup (_tmp10_);
       artist = _tmp11_;
       _tmp12_ = track;
       _tmp13_ = unity_music_lens_track_get_album (_tmp12_);
       _tmp14_ = _tmp13_;
       _tmp15_ = g_strdup (_tmp14_);
       album = _tmp15_;
       _tmp16_ = artist;
       _tmp17_ = g_utf8_normalize (_tmp16_, (gssize) (-1), G_NORMALIZE_NFKD);
       artist_norm = _tmp17_;
       _tmp18_ = album;
       _tmp19_ = g_utf8_normalize (_tmp18_, (gssize) (-1), G_NORMALIZE_NFKD);
       album_norm = _tmp19_;
       _tmp20_ = artist;
       _tmp21_ = album;
       _tmp22_ = unity_music_lens_rhythmbox_collection_check_album_art_tdb (self, _tmp20_, _tmp21_);
       _g_free0 (filename);
       filename = _tmp22_;
       _tmp23_ = filename;
       if (_tmp23_ != NULL) {
              const gchar* _tmp24_ = NULL;
              const gchar* _tmp25_;
              gchar* _tmp26_ = NULL;
              const gchar* _tmp27_;
              gboolean _tmp28_ = FALSE;
              _tmp24_ = g_get_user_cache_dir ();
              _tmp25_ = filename;
              _tmp26_ = g_build_filename (_tmp24_, "rhythmbox", "album-art", _tmp25_, NULL);
              _g_free0 (filename);
              filename = _tmp26_;
              _tmp27_ = filename;
              _tmp28_ = g_file_test (_tmp27_, G_FILE_TEST_EXISTS);
              if (_tmp28_) {
                     result = filename;
                     _g_free0 (album_norm);
                     _g_free0 (artist_norm);
                     _g_free0 (album);
                     _g_free0 (artist);
                     _g_free0 (_tmp4_);
                     return result;
              }
       }
       _tmp29_ = artist_norm;
       _tmp30_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp29_, (gsize) (-1));
       artist_md5 = _tmp30_;
       _tmp31_ = album_norm;
       _tmp32_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp31_, (gsize) (-1));
       album_md5 = _tmp32_;
       _tmp33_ = self->priv->media_art_dir;
       _tmp34_ = artist_md5;
       _tmp35_ = album_md5;
       _tmp36_ = g_strdup_printf ("album-%s-%s", _tmp34_, _tmp35_);
       _tmp37_ = _tmp36_;
       _tmp38_ = g_build_filename (_tmp33_, _tmp37_, NULL);
       _g_free0 (filename);
       filename = _tmp38_;
       _g_free0 (_tmp37_);
       _tmp39_ = filename;
       _tmp40_ = g_file_test (_tmp39_, G_FILE_TEST_EXISTS);
       if (_tmp40_) {
              result = filename;
              _g_free0 (album_md5);
              _g_free0 (artist_md5);
              _g_free0 (album_norm);
              _g_free0 (artist_norm);
              _g_free0 (album);
              _g_free0 (artist);
              _g_free0 (_tmp4_);
              return result;
       }
       _tmp41_ = artist;
       _tmp42_ = album;
       _tmp43_ = g_strdup_printf ("%s\t%s", _tmp41_, _tmp42_);
       _tmp44_ = _tmp43_;
       _tmp45_ = g_utf8_normalize (_tmp44_, (gssize) (-1), G_NORMALIZE_NFKD);
       _tmp46_ = _tmp45_;
       _g_free0 (_tmp44_);
       combined = _tmp46_;
       _tmp47_ = self->priv->media_art_dir;
       _tmp48_ = combined;
       _tmp49_ = g_compute_checksum_for_string (G_CHECKSUM_MD5, _tmp48_, (gsize) (-1));
       _tmp50_ = _tmp49_;
       _tmp51_ = g_strdup_printf ("album-%s.jpg", _tmp50_);
       _tmp52_ = _tmp51_;
       _tmp53_ = g_build_filename (_tmp47_, _tmp52_, NULL);
       _g_free0 (filename);
       filename = _tmp53_;
       _g_free0 (_tmp52_);
       _g_free0 (_tmp50_);
       _tmp54_ = filename;
       _tmp55_ = g_file_test (_tmp54_, G_FILE_TEST_EXISTS);
       if (_tmp55_) {
              result = filename;
              _g_free0 (combined);
              _g_free0 (album_md5);
              _g_free0 (artist_md5);
              _g_free0 (album_norm);
              _g_free0 (artist_norm);
              _g_free0 (album);
              _g_free0 (artist);
              _g_free0 (_tmp4_);
              return result;
       }
       {
              UnityMusicLensTrack* _tmp56_;
              const gchar* _tmp57_;
              const gchar* _tmp58_;
              GFile* _tmp59_ = NULL;
              GFile* artwork_file;
              GFile* _tmp60_;
              GFileInfo* _tmp61_ = NULL;
              GFileInfo* info;
              GFileInfo* _tmp62_;
              const gchar* _tmp63_ = NULL;
              gchar* _tmp64_;
              gchar* thumbnail_path;
              const gchar* _tmp65_;
              _tmp56_ = track;
              _tmp57_ = unity_music_lens_track_get_uri (_tmp56_);
              _tmp58_ = _tmp57_;
              _tmp59_ = g_file_new_for_uri (_tmp58_);
              artwork_file = _tmp59_;
              _tmp60_ = artwork_file;
              _tmp61_ = g_file_query_info (_tmp60_, G_FILE_ATTRIBUTE_THUMBNAIL_PATH, 0, NULL, &_inner_error_);
              info = _tmp61_;
              if (_inner_error_ != NULL) {
                     _g_object_unref0 (artwork_file);
                     goto __catch8_g_error;
              }
              _tmp62_ = info;
              _tmp63_ = g_file_info_get_attribute_string (_tmp62_, G_FILE_ATTRIBUTE_THUMBNAIL_PATH);
              _tmp64_ = g_strdup (_tmp63_);
              thumbnail_path = _tmp64_;
              _tmp65_ = thumbnail_path;
              if (_tmp65_ != NULL) {
                     result = thumbnail_path;
                     _g_object_unref0 (info);
                     _g_object_unref0 (artwork_file);
                     _g_free0 (combined);
                     _g_free0 (album_md5);
                     _g_free0 (artist_md5);
                     _g_free0 (album_norm);
                     _g_free0 (artist_norm);
                     _g_free0 (album);
                     _g_free0 (artist);
                     _g_free0 (_tmp4_);
                     _g_free0 (filename);
                     return result;
              }
              _g_free0 (thumbnail_path);
              _g_object_unref0 (info);
              _g_object_unref0 (artwork_file);
       }
       goto __finally8;
       __catch8_g_error:
       {
              g_clear_error (&_inner_error_);
              _inner_error_ = NULL;
       }
       __finally8:
       if (_inner_error_ != NULL) {
              _g_free0 (combined);
              _g_free0 (album_md5);
              _g_free0 (artist_md5);
              _g_free0 (album_norm);
              _g_free0 (artist_norm);
              _g_free0 (album);
              _g_free0 (artist);
              _g_free0 (_tmp4_);
              _g_free0 (filename);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return NULL;
       }
       _tmp66_ = g_get_user_cache_dir ();
       _tmp67_ = track;
       _tmp68_ = unity_music_lens_track_get_artist (_tmp67_);
       _tmp69_ = _tmp68_;
       _tmp70_ = track;
       _tmp71_ = unity_music_lens_track_get_album (_tmp70_);
       _tmp72_ = _tmp71_;
       _tmp73_ = g_strdup_printf ("%s - %s.jpg", _tmp69_, _tmp72_);
       _tmp74_ = _tmp73_;
       _tmp75_ = g_build_filename (_tmp66_, "rhythmbox", "covers", _tmp74_, NULL);
       _tmp76_ = _tmp75_;
       _g_free0 (_tmp74_);
       artwork = _tmp76_;
       _tmp77_ = artwork;
       _tmp78_ = g_file_test (_tmp77_, G_FILE_TEST_EXISTS);
       if (_tmp78_) {
              result = artwork;
              _g_free0 (combined);
              _g_free0 (album_md5);
              _g_free0 (artist_md5);
              _g_free0 (album_norm);
              _g_free0 (artist_norm);
              _g_free0 (album);
              _g_free0 (artist);
              _g_free0 (_tmp4_);
              _g_free0 (filename);
              return result;
       }
       result = NULL;
       _g_free0 (artwork);
       _g_free0 (combined);
       _g_free0 (album_md5);
       _g_free0 (artist_md5);
       _g_free0 (album_norm);
       _g_free0 (artist_norm);
       _g_free0 (album);
       _g_free0 (artist);
       _g_free0 (_tmp4_);
       _g_free0 (filename);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_get_decade_filter ( UnityMusicLensRhythmboxCollection *  self,
GList *  filters,
gint *  min_year,
gint *  max_year 
) [static]

Definition at line 2833 of file rhythmbox-collection.c.

                                                                                                                                                              {
       gint _vala_min_year = 0;
       gint _vala_max_year = 0;
       UnityFilter* filter;
       GList* _tmp0_;
       gboolean _tmp7_ = FALSE;
       UnityFilter* _tmp8_;
       gboolean _tmp12_;
       UnityFilter* _tmp14_;
       UnityMultiRangeFilter* _tmp15_;
       UnityMultiRangeFilter* mrf;
       UnityMultiRangeFilter* _tmp16_;
       UnityFilterOption* _tmp17_ = NULL;
       UnityFilterOption* _tmp18_;
       const gchar* _tmp19_;
       const gchar* _tmp20_;
       gint _tmp21_ = 0;
       UnityMultiRangeFilter* _tmp22_;
       UnityFilterOption* _tmp23_ = NULL;
       UnityFilterOption* _tmp24_;
       const gchar* _tmp25_;
       const gchar* _tmp26_;
       gint _tmp27_ = 0;
       g_return_if_fail (self != NULL);
       filter = NULL;
       _tmp0_ = filters;
       {
              GList* parser_collection = NULL;
              GList* parser_it = NULL;
              parser_collection = _tmp0_;
              for (parser_it = parser_collection; parser_it != NULL; parser_it = parser_it->next) {
                     UnityMusicLensFilterParser* _tmp1_;
                     UnityMusicLensFilterParser* parser = NULL;
                     _tmp1_ = _g_object_ref0 ((UnityMusicLensFilterParser*) parser_it->data);
                     parser = _tmp1_;
                     {
                            UnityMusicLensFilterParser* _tmp2_;
                            _tmp2_ = parser;
                            if (UNITY_MUSIC_LENS_IS_DECADE_FILTER_PARSER (_tmp2_)) {
                                   UnityMusicLensFilterParser* _tmp3_;
                                   UnityFilter* _tmp4_;
                                   UnityFilter* _tmp5_;
                                   UnityFilter* _tmp6_;
                                   _tmp3_ = parser;
                                   _tmp4_ = unity_music_lens_filter_parser_get_filter (_tmp3_);
                                   _tmp5_ = _tmp4_;
                                   _tmp6_ = _g_object_ref0 (_tmp5_);
                                   _g_object_unref0 (filter);
                                   filter = _tmp6_;
                            }
                            _g_object_unref0 (parser);
                     }
              }
       }
       _tmp8_ = filter;
       if (_tmp8_ == NULL) {
              _tmp7_ = TRUE;
       } else {
              UnityFilter* _tmp9_;
              gboolean _tmp10_;
              gboolean _tmp11_;
              _tmp9_ = filter;
              _tmp10_ = unity_filter_get_filtering (_tmp9_);
              _tmp11_ = _tmp10_;
              _tmp7_ = !_tmp11_;
       }
       _tmp12_ = _tmp7_;
       if (_tmp12_) {
              gint _tmp13_;
              _vala_min_year = 0;
              _tmp13_ = G_MAXINT;
              _vala_max_year = _tmp13_;
              _g_object_unref0 (filter);
              if (min_year) {
                     *min_year = _vala_min_year;
              }
              if (max_year) {
                     *max_year = _vala_max_year;
              }
              return;
       }
       _tmp14_ = filter;
       _tmp15_ = _g_object_ref0 (UNITY_IS_MULTI_RANGE_FILTER (_tmp14_) ? ((UnityMultiRangeFilter*) _tmp14_) : NULL);
       mrf = _tmp15_;
       _tmp16_ = mrf;
       _tmp17_ = unity_multi_range_filter_get_first_active (_tmp16_);
       _tmp18_ = _tmp17_;
       _tmp19_ = unity_filter_option_get_id (_tmp18_);
       _tmp20_ = _tmp19_;
       _tmp21_ = atoi (_tmp20_);
       _vala_min_year = _tmp21_;
       _g_object_unref0 (_tmp18_);
       _tmp22_ = mrf;
       _tmp23_ = unity_multi_range_filter_get_last_active (_tmp22_);
       _tmp24_ = _tmp23_;
       _tmp25_ = unity_filter_option_get_id (_tmp24_);
       _tmp26_ = _tmp25_;
       _tmp27_ = atoi (_tmp26_);
       _vala_max_year = _tmp27_ + 9;
       _g_object_unref0 (_tmp24_);
       _g_object_unref0 (mrf);
       _g_object_unref0 (filter);
       if (min_year) {
              *min_year = _vala_min_year;
       }
       if (max_year) {
              *max_year = _vala_max_year;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static GeeSet* unity_music_lens_rhythmbox_collection_get_genre_filter ( UnityMusicLensRhythmboxCollection *  self,
GList *  filters 
) [static]

Definition at line 2944 of file rhythmbox-collection.c.

                                                                                                                                {
       GeeSet* result = NULL;
       UnityFilter* filter;
       GList* _tmp0_;
       gboolean _tmp7_ = FALSE;
       UnityFilter* _tmp8_;
       gboolean _tmp12_;
       GeeHashSet* _tmp13_;
       GeeHashSet* active_genres;
       UnityFilter* _tmp14_;
       UnityCheckOptionFilterCompact* _tmp15_;
       UnityCheckOptionFilterCompact* all_genres;
       UnityCheckOptionFilterCompact* _tmp16_;
       GList* _tmp17_;
       g_return_val_if_fail (self != NULL, NULL);
       filter = NULL;
       _tmp0_ = filters;
       {
              GList* parser_collection = NULL;
              GList* parser_it = NULL;
              parser_collection = _tmp0_;
              for (parser_it = parser_collection; parser_it != NULL; parser_it = parser_it->next) {
                     UnityMusicLensFilterParser* _tmp1_;
                     UnityMusicLensFilterParser* parser = NULL;
                     _tmp1_ = _g_object_ref0 ((UnityMusicLensFilterParser*) parser_it->data);
                     parser = _tmp1_;
                     {
                            UnityMusicLensFilterParser* _tmp2_;
                            _tmp2_ = parser;
                            if (UNITY_MUSIC_LENS_IS_GENRE_FILTER_PARSER (_tmp2_)) {
                                   UnityMusicLensFilterParser* _tmp3_;
                                   UnityFilter* _tmp4_;
                                   UnityFilter* _tmp5_;
                                   UnityFilter* _tmp6_;
                                   _tmp3_ = parser;
                                   _tmp4_ = unity_music_lens_filter_parser_get_filter (_tmp3_);
                                   _tmp5_ = _tmp4_;
                                   _tmp6_ = _g_object_ref0 (_tmp5_);
                                   _g_object_unref0 (filter);
                                   filter = _tmp6_;
                            }
                            _g_object_unref0 (parser);
                     }
              }
       }
       _tmp8_ = filter;
       if (_tmp8_ == NULL) {
              _tmp7_ = TRUE;
       } else {
              UnityFilter* _tmp9_;
              gboolean _tmp10_;
              gboolean _tmp11_;
              _tmp9_ = filter;
              _tmp10_ = unity_filter_get_filtering (_tmp9_);
              _tmp11_ = _tmp10_;
              _tmp7_ = !_tmp11_;
       }
       _tmp12_ = _tmp7_;
       if (_tmp12_) {
              result = NULL;
              _g_object_unref0 (filter);
              return result;
       }
       _tmp13_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
       active_genres = _tmp13_;
       _tmp14_ = filter;
       _tmp15_ = _g_object_ref0 (UNITY_IS_CHECK_OPTION_FILTER_COMPACT (_tmp14_) ? ((UnityCheckOptionFilterCompact*) _tmp14_) : NULL);
       all_genres = _tmp15_;
       _tmp16_ = all_genres;
       _tmp17_ = ((UnityOptionsFilter*) _tmp16_)->options;
       {
              GList* option_collection = NULL;
              GList* option_it = NULL;
              option_collection = _tmp17_;
              for (option_it = option_collection; option_it != NULL; option_it = option_it->next) {
                     UnityFilterOption* _tmp18_;
                     UnityFilterOption* option = NULL;
                     _tmp18_ = _g_object_ref0 ((UnityFilterOption*) option_it->data);
                     option = _tmp18_;
                     {
                            gboolean _tmp19_ = FALSE;
                            UnityFilterOption* _tmp20_;
                            const gchar* _tmp21_;
                            const gchar* _tmp22_;
                            gboolean _tmp26_;
                            GeeHashSet* _tmp27_;
                            UnityFilterOption* _tmp28_;
                            const gchar* _tmp29_;
                            const gchar* _tmp30_;
                            _tmp20_ = option;
                            _tmp21_ = unity_filter_option_get_id (_tmp20_);
                            _tmp22_ = _tmp21_;
                            if (_tmp22_ == NULL) {
                                   _tmp19_ = TRUE;
                            } else {
                                   UnityFilterOption* _tmp23_;
                                   gboolean _tmp24_;
                                   gboolean _tmp25_;
                                   _tmp23_ = option;
                                   _tmp24_ = unity_filter_option_get_active (_tmp23_);
                                   _tmp25_ = _tmp24_;
                                   _tmp19_ = !_tmp25_;
                            }
                            _tmp26_ = _tmp19_;
                            if (_tmp26_) {
                                   _g_object_unref0 (option);
                                   continue;
                            }
                            _tmp27_ = active_genres;
                            _tmp28_ = option;
                            _tmp29_ = unity_filter_option_get_id (_tmp28_);
                            _tmp30_ = _tmp29_;
                            gee_abstract_collection_add ((GeeAbstractCollection*) _tmp27_, _tmp30_);
                            _g_object_unref0 (option);
                     }
              }
       }
       result = (GeeSet*) active_genres;
       _g_object_unref0 (all_genres);
       _g_object_unref0 (filter);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 3899 of file rhythmbox-collection.c.

                                                            {
       static volatile gsize unity_music_lens_rhythmbox_collection_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_lens_rhythmbox_collection_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensRhythmboxCollectionClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_rhythmbox_collection_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensRhythmboxCollection), 0, (GInstanceInitFunc) unity_music_lens_rhythmbox_collection_instance_init, NULL };
              GType unity_music_lens_rhythmbox_collection_type_id;
              unity_music_lens_rhythmbox_collection_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityMusicLensRhythmboxCollection", &g_define_type_info, 0);
              g_once_init_leave (&unity_music_lens_rhythmbox_collection_type_id__volatile, unity_music_lens_rhythmbox_collection_type_id);
       }
       return unity_music_lens_rhythmbox_collection_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_lens_rhythmbox_collection_initialize_index ( UnityMusicLensRhythmboxCollection *  self) [static]

Definition at line 390 of file rhythmbox-collection.c.

                                                                                                             {
       DeeModelReader _tmp0_ = {0};
       DeeModelReader reader;
       DeeSequenceModel* _tmp1_;
       DeeAnalyzer* _tmp2_;
       DeeModelReader _tmp3_;
       DeeTreeIndex* _tmp4_;
       g_return_if_fail (self != NULL);
       dee_model_reader_new (___lambda4__dee_model_reader_func, g_object_ref (self), g_object_unref, &_tmp0_);
       reader = _tmp0_;
       _tmp1_ = self->priv->all_tracks;
       _tmp2_ = self->priv->analyzer;
       _tmp3_ = reader;
       _tmp4_ = dee_tree_index_new ((DeeModel*) _tmp1_, _tmp2_, &_tmp3_);
       _g_object_unref0 (self->priv->index);
       self->priv->index = (DeeIndex*) _tmp4_;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_instance_init ( UnityMusicLensRhythmboxCollection *  self) [static]

Definition at line 3875 of file rhythmbox-collection.c.

Here is the caller graph for this function:

UnityMusicLensRhythmboxCollection* unity_music_lens_rhythmbox_collection_new ( void  )

Definition at line 3075 of file rhythmbox-collection.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_lens_rhythmbox_collection_parse_file ( UnityMusicLensRhythmboxCollection *  self,
const gchar *  path 
)

Definition at line 1615 of file rhythmbox-collection.c.

                                                                                                                   {
       DeeSequenceModel* _tmp0_;
       GHashTable* _tmp1_;
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp2_;
       UnityMusicLensRhythmboxCollectionXmlParser* parser;
       UnityMusicLensRhythmboxCollectionXmlParser* _tmp3_;
       const gchar* _tmp4_;
       GFile* _tmp5_ = NULL;
       GFile* file;
       GHashTable* _tmp16_;
       GList* _tmp17_ = NULL;
       GList* all_albums;
       GList* _tmp18_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       g_return_if_fail (path != NULL);
       _g_object_unref0 (self->priv->index);
       self->priv->index = NULL;
       _tmp0_ = self->priv->all_tracks;
       dee_model_clear ((DeeModel*) _tmp0_);
       unity_music_lens_rhythmbox_collection_initialize_index (self);
       self->priv->current_album_art_tag = 0;
       _tmp1_ = self->priv->album_to_tracks_map;
       g_hash_table_remove_all (_tmp1_);
       _tmp2_ = unity_music_lens_rhythmbox_collection_xml_parser_new ();
       parser = _tmp2_;
       _tmp3_ = parser;
       g_signal_connect_object (_tmp3_, "track-info-ready", (GCallback) ___lambda6__unity_music_lens_rhythmbox_collection_xml_parser_track_info_ready, self, 0);
       _tmp4_ = path;
       _tmp5_ = g_file_new_for_path (_tmp4_);
       file = _tmp5_;
       {
              GFile* _tmp6_;
              GFileInputStream* _tmp7_ = NULL;
              GFileInputStream* stream;
              guint8 buffer[65536] = {0};
              gsize bytes_read = 0UL;
              _tmp6_ = file;
              _tmp7_ = g_file_read (_tmp6_, NULL, &_inner_error_);
              stream = _tmp7_;
              if (_inner_error_ != NULL) {
                     goto __catch10_g_error;
              }
              while (TRUE) {
                     GFileInputStream* _tmp8_;
                     gssize _tmp9_ = 0L;
                     gssize _tmp10_;
                     gsize _tmp11_;
                     UnityMusicLensRhythmboxCollectionXmlParser* _tmp12_;
                     gsize _tmp13_;
                     _tmp8_ = stream;
                     _tmp9_ = g_input_stream_read ((GInputStream*) _tmp8_, buffer, (gsize) 65536, NULL, &_inner_error_);
                     _tmp10_ = _tmp9_;
                     if (_inner_error_ != NULL) {
                            _g_object_unref0 (stream);
                            goto __catch10_g_error;
                     }
                     bytes_read = (gsize) _tmp10_;
                     _tmp11_ = bytes_read;
                     if (!(_tmp11_ > ((gsize) 0))) {
                            break;
                     }
                     _tmp12_ = parser;
                     _tmp13_ = bytes_read;
                     unity_music_lens_rhythmbox_collection_xml_parser_parse (_tmp12_, (const gchar*) buffer, _tmp13_, &_inner_error_);
                     if (_inner_error_ != NULL) {
                            _g_object_unref0 (stream);
                            goto __catch10_g_error;
                     }
              }
              _g_object_unref0 (stream);
       }
       goto __finally10;
       __catch10_g_error:
       {
              GError* err = NULL;
              GError* _tmp14_;
              const gchar* _tmp15_;
              err = _inner_error_;
              _inner_error_ = NULL;
              _tmp14_ = err;
              _tmp15_ = _tmp14_->message;
              g_warning ("rhythmbox-collection.vala:510: Error while parsing rhythmbox DB: %s", _tmp15_);
              _g_error_free0 (err);
       }
       __finally10:
       if (_inner_error_ != NULL) {
              _g_object_unref0 (file);
              _g_object_unref0 (parser);
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return;
       }
       _tmp16_ = self->priv->album_to_tracks_map;
       _tmp17_ = g_hash_table_get_keys (_tmp16_);
       all_albums = _tmp17_;
       _tmp18_ = all_albums;
       {
              GList* s_collection = NULL;
              GList* s_it = NULL;
              s_collection = _tmp18_;
              for (s_it = s_collection; s_it != NULL; s_it = s_it->next) {
                     const gchar* s = NULL;
                     s = (const gchar*) s_it->data;
                     {
                            GHashTable* _tmp19_;
                            const gchar* _tmp20_;
                            gconstpointer _tmp21_ = NULL;
                            _tmp19_ = self->priv->album_to_tracks_map;
                            _tmp20_ = s;
                            _tmp21_ = g_hash_table_lookup (_tmp19_, _tmp20_);
                            g_ptr_array_sort_with_data ((GPtrArray*) _tmp21_, _____lambda7__gcompare_data_func, self);
                     }
              }
       }
       _g_list_free0 (all_albums);
       _g_object_unref0 (file);
       _g_object_unref0 (parser);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_lens_rhythmbox_collection_parse_metadata_file ( UnityMusicLensRhythmboxCollection *  self,
const gchar *  path 
)

Definition at line 1354 of file rhythmbox-collection.c.

                                                                                                                            {
       Block2Data* _data2_;
       const gchar* _tmp0_;
       gchar* _tmp1_;
       TDB_CONTEXT* _tmp2_;
       GFileMonitor* _tmp3_;
       int flags;
       const gchar* _tmp13_;
       int _tmp14_;
       TDB_CONTEXT* _tmp15_;
       TDB_CONTEXT* _tmp16_;
       GError * _inner_error_ = NULL;
       g_return_if_fail (self != NULL);
       g_return_if_fail (path != NULL);
       _data2_ = g_slice_new0 (Block2Data);
       _data2_->_ref_count_ = 1;
       _data2_->self = g_object_ref (self);
       _tmp0_ = path;
       _tmp1_ = g_strdup (_tmp0_);
       _data2_->path = _tmp1_;
       _tmp2_ = self->priv->album_art_tdb;
       if (_tmp2_ != NULL) {
              block2_data_unref (_data2_);
              _data2_ = NULL;
              return;
       }
       _tmp3_ = self->priv->tdb_monitor;
       if (_tmp3_ == NULL) {
              const gchar* _tmp4_;
              GFile* _tmp5_ = NULL;
              GFile* tdb_file;
              _tmp4_ = _data2_->path;
              _tmp5_ = g_file_new_for_path (_tmp4_);
              tdb_file = _tmp5_;
              {
                     GFile* _tmp6_;
                     GFileMonitor* _tmp7_ = NULL;
                     GFileMonitor* _tmp8_;
                     GFileMonitor* _tmp9_;
                     GFileMonitor* _tmp10_;
                     _tmp6_ = tdb_file;
                     _tmp7_ = g_file_monitor (_tmp6_, G_FILE_MONITOR_NONE, NULL, &_inner_error_);
                     _tmp8_ = _tmp7_;
                     if (_inner_error_ != NULL) {
                            goto __catch9_g_error;
                     }
                     _tmp9_ = _g_object_ref0 (_tmp8_);
                     _g_object_unref0 (self->priv->tdb_monitor);
                     self->priv->tdb_monitor = _tmp9_;
                     _tmp10_ = self->priv->tdb_monitor;
                     g_signal_connect_data (_tmp10_, "changed", (GCallback) _____lambda5__g_file_monitor_changed, block2_data_ref (_data2_), (GClosureNotify) block2_data_unref, 0);
              }
              goto __finally9;
              __catch9_g_error:
              {
                     GError* err = NULL;
                     GError* _tmp11_;
                     const gchar* _tmp12_;
                     err = _inner_error_;
                     _inner_error_ = NULL;
                     _tmp11_ = err;
                     _tmp12_ = _tmp11_->message;
                     g_warning ("rhythmbox-collection.vala:435: %s", _tmp12_);
                     _g_error_free0 (err);
              }
              __finally9:
              if (_inner_error_ != NULL) {
                     _g_object_unref0 (tdb_file);
                     block2_data_unref (_data2_);
                     _data2_ = NULL;
                     g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return;
              }
              _g_object_unref0 (tdb_file);
       }
       flags = (TDB_INCOMPATIBLE_HASH | TDB_SEQNUM) | TDB_NOLOCK;
       _tmp13_ = _data2_->path;
       _tmp14_ = flags;
       _tmp15_ = tdb_open (_tmp13_, 999, _tmp14_, O_RDONLY, (mode_t) 0600);
       _tdb_close0 (self->priv->album_art_tdb);
       self->priv->album_art_tdb = _tmp15_;
       _tmp16_ = self->priv->album_art_tdb;
       if (_tmp16_ == NULL) {
              g_warning ("rhythmbox-collection.vala:444: Unable to open album-art DB!");
              block2_data_unref (_data2_);
              _data2_ = NULL;
              return;
       }
       block2_data_unref (_data2_);
       _data2_ = NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_prepare_row_buffer ( UnityMusicLensRhythmboxCollection *  self,
UnityMusicLensTrack *  track 
) [static]

Definition at line 1098 of file rhythmbox-collection.c.

                                                                                                                                           {
       UnityMusicLensTrack* _tmp0_;
       UnityMusicLensTrackType _tmp1_;
       UnityMusicLensTrackType _tmp2_;
       GVariant* _tmp3_ = NULL;
       GVariant* type;
       UnityMusicLensTrack* _tmp4_;
       const gchar* _tmp5_;
       const gchar* _tmp6_;
       GVariant* _tmp7_;
       GVariant* _tmp8_;
       GVariant* uri;
       UnityMusicLensTrack* _tmp9_;
       const gchar* _tmp10_;
       const gchar* _tmp11_;
       GVariant* _tmp12_;
       GVariant* _tmp13_;
       GVariant* title;
       UnityMusicLensTrack* _tmp14_;
       const gchar* _tmp15_;
       const gchar* _tmp16_;
       GVariant* _tmp17_ = NULL;
       GVariant* artist;
       UnityMusicLensTrack* _tmp18_;
       const gchar* _tmp19_;
       const gchar* _tmp20_;
       GVariant* _tmp21_ = NULL;
       GVariant* album_artist;
       UnityMusicLensTrack* _tmp22_;
       const gchar* _tmp23_;
       const gchar* _tmp24_;
       GVariant* _tmp25_ = NULL;
       GVariant* album;
       UnityMusicLensTrack* _tmp26_;
       const gchar* _tmp27_;
       const gchar* _tmp28_;
       GVariant* _tmp29_ = NULL;
       GVariant* mime_type;
       UnityMusicLensTrack* _tmp30_;
       const gchar* _tmp31_;
       const gchar* _tmp32_;
       GVariant* _tmp33_ = NULL;
       GVariant* artwork;
       UnityMusicLensTrack* _tmp34_;
       const gchar* _tmp35_;
       const gchar* _tmp36_;
       GVariant* _tmp37_ = NULL;
       GVariant* genre;
       UnityMusicLensTrack* _tmp38_;
       gint _tmp39_;
       gint _tmp40_;
       GVariant* _tmp41_ = NULL;
       GVariant* track_number;
       UnityMusicLensTrack* _tmp42_;
       gint _tmp43_;
       gint _tmp44_;
       GVariant* _tmp45_ = NULL;
       GVariant* year;
       UnityMusicLensTrack* _tmp46_;
       gint _tmp47_;
       gint _tmp48_;
       GVariant* _tmp49_ = NULL;
       GVariant* play_count;
       GVariant* _tmp50_;
       GVariant* _tmp51_;
       GVariant* _tmp52_;
       GVariant* _tmp53_;
       GVariant* _tmp54_;
       GVariant* _tmp55_;
       GVariant* _tmp56_;
       GVariant* _tmp57_;
       GVariant* _tmp58_;
       GVariant* _tmp59_;
       GVariant* _tmp60_;
       GVariant* _tmp61_;
       GVariant* _tmp62_;
       GVariant* _tmp63_;
       GVariant* _tmp64_;
       GVariant* _tmp65_;
       GVariant* _tmp66_;
       GVariant* _tmp67_;
       GVariant* _tmp68_;
       GVariant* _tmp69_;
       GVariant* _tmp70_;
       GVariant* _tmp71_;
       GVariant* _tmp72_;
       GVariant* _tmp73_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (track != NULL);
       _tmp0_ = track;
       _tmp1_ = unity_music_lens_track_get_type_track (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = unity_music_lens_rhythmbox_collection_cached_variant_for_int (self, (gint) _tmp2_);
       type = _tmp3_;
       _tmp4_ = track;
       _tmp5_ = unity_music_lens_track_get_uri (_tmp4_);
       _tmp6_ = _tmp5_;
       _tmp7_ = g_variant_new_string (_tmp6_);
       _tmp8_ = g_variant_ref_sink (_tmp7_);
       uri = _tmp8_;
       _tmp9_ = track;
       _tmp10_ = unity_music_lens_track_get_title (_tmp9_);
       _tmp11_ = _tmp10_;
       _tmp12_ = g_variant_new_string (_tmp11_);
       _tmp13_ = g_variant_ref_sink (_tmp12_);
       title = _tmp13_;
       _tmp14_ = track;
       _tmp15_ = unity_music_lens_track_get_artist (_tmp14_);
       _tmp16_ = _tmp15_;
       _tmp17_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp16_);
       artist = _tmp17_;
       _tmp18_ = track;
       _tmp19_ = unity_music_lens_track_get_album_artist (_tmp18_);
       _tmp20_ = _tmp19_;
       _tmp21_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp20_);
       album_artist = _tmp21_;
       _tmp22_ = track;
       _tmp23_ = unity_music_lens_track_get_album (_tmp22_);
       _tmp24_ = _tmp23_;
       _tmp25_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp24_);
       album = _tmp25_;
       _tmp26_ = track;
       _tmp27_ = unity_music_lens_track_get_mime_type (_tmp26_);
       _tmp28_ = _tmp27_;
       _tmp29_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp28_);
       mime_type = _tmp29_;
       _tmp30_ = track;
       _tmp31_ = unity_music_lens_track_get_artwork_path (_tmp30_);
       _tmp32_ = _tmp31_;
       _tmp33_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp32_);
       artwork = _tmp33_;
       _tmp34_ = track;
       _tmp35_ = unity_music_lens_track_get_genre (_tmp34_);
       _tmp36_ = _tmp35_;
       _tmp37_ = unity_music_lens_rhythmbox_collection_cached_variant_for_string (self, _tmp36_);
       genre = _tmp37_;
       _tmp38_ = track;
       _tmp39_ = unity_music_lens_track_get_track_number (_tmp38_);
       _tmp40_ = _tmp39_;
       _tmp41_ = unity_music_lens_rhythmbox_collection_cached_variant_for_int (self, _tmp40_);
       track_number = _tmp41_;
       _tmp42_ = track;
       _tmp43_ = unity_music_lens_track_get_year (_tmp42_);
       _tmp44_ = _tmp43_;
       _tmp45_ = unity_music_lens_rhythmbox_collection_cached_variant_for_int (self, _tmp44_);
       year = _tmp45_;
       _tmp46_ = track;
       _tmp47_ = unity_music_lens_track_get_play_count (_tmp46_);
       _tmp48_ = _tmp47_;
       _tmp49_ = unity_music_lens_rhythmbox_collection_cached_variant_for_int (self, _tmp48_);
       play_count = _tmp49_;
       _tmp50_ = _g_variant_ref0 (type);
       _g_variant_unref0 (self->priv->row_buffer[0]);
       self->priv->row_buffer[0] = _tmp50_;
       _tmp51_ = self->priv->row_buffer[0];
       _tmp52_ = _g_variant_ref0 (uri);
       _g_variant_unref0 (self->priv->row_buffer[1]);
       self->priv->row_buffer[1] = _tmp52_;
       _tmp53_ = self->priv->row_buffer[1];
       _tmp54_ = _g_variant_ref0 (title);
       _g_variant_unref0 (self->priv->row_buffer[2]);
       self->priv->row_buffer[2] = _tmp54_;
       _tmp55_ = self->priv->row_buffer[2];
       _tmp56_ = _g_variant_ref0 (artist);
       _g_variant_unref0 (self->priv->row_buffer[3]);
       self->priv->row_buffer[3] = _tmp56_;
       _tmp57_ = self->priv->row_buffer[3];
       _tmp58_ = _g_variant_ref0 (album);
       _g_variant_unref0 (self->priv->row_buffer[4]);
       self->priv->row_buffer[4] = _tmp58_;
       _tmp59_ = self->priv->row_buffer[4];
       _tmp60_ = _g_variant_ref0 (artwork);
       _g_variant_unref0 (self->priv->row_buffer[5]);
       self->priv->row_buffer[5] = _tmp60_;
       _tmp61_ = self->priv->row_buffer[5];
       _tmp62_ = _g_variant_ref0 (mime_type);
       _g_variant_unref0 (self->priv->row_buffer[6]);
       self->priv->row_buffer[6] = _tmp62_;
       _tmp63_ = self->priv->row_buffer[6];
       _tmp64_ = _g_variant_ref0 (genre);
       _g_variant_unref0 (self->priv->row_buffer[7]);
       self->priv->row_buffer[7] = _tmp64_;
       _tmp65_ = self->priv->row_buffer[7];
       _tmp66_ = _g_variant_ref0 (album_artist);
       _g_variant_unref0 (self->priv->row_buffer[8]);
       self->priv->row_buffer[8] = _tmp66_;
       _tmp67_ = self->priv->row_buffer[8];
       _tmp68_ = _g_variant_ref0 (track_number);
       _g_variant_unref0 (self->priv->row_buffer[9]);
       self->priv->row_buffer[9] = _tmp68_;
       _tmp69_ = self->priv->row_buffer[9];
       _tmp70_ = _g_variant_ref0 (year);
       _g_variant_unref0 (self->priv->row_buffer[10]);
       self->priv->row_buffer[10] = _tmp70_;
       _tmp71_ = self->priv->row_buffer[10];
       _tmp72_ = _g_variant_ref0 (play_count);
       _g_variant_unref0 (self->priv->row_buffer[11]);
       self->priv->row_buffer[11] = _tmp72_;
       _tmp73_ = self->priv->row_buffer[11];
       _g_variant_unref0 (play_count);
       _g_variant_unref0 (year);
       _g_variant_unref0 (track_number);
       _g_variant_unref0 (genre);
       _g_variant_unref0 (artwork);
       _g_variant_unref0 (mime_type);
       _g_variant_unref0 (album);
       _g_variant_unref0 (album_artist);
       _g_variant_unref0 (artist);
       _g_variant_unref0 (title);
       _g_variant_unref0 (uri);
       _g_variant_unref0 (type);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 231 of file rhythmbox-collection.c.

      {
       UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_DUMMY_PROPERTY
};
void unity_music_lens_rhythmbox_collection_search ( UnityMusicLensRhythmboxCollection *  self,
UnityLensSearch *  search,
UnitySearchType  search_type,
GList *  filters,
gint  max_results,
gint  category_override 
)

Definition at line 2085 of file rhythmbox-collection.c.

                                                                                                                                                                                                            {
       gint num_results;
       UnityLensSearch* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       gchar* _tmp3_ = NULL;
       gchar* _tmp4_;
       gboolean _tmp5_;
       gboolean empty_search;
       gint min_year = 0;
       gint max_year = 0;
       gint category_id = 0;
       UnityMusicLensRhythmboxCollectionResultType result_type = 0;
       DeeSequenceModel* _tmp6_;
       DeeModel* _tmp7_;
       DeeModel* model;
       GList* _tmp8_;
       gint _tmp9_ = 0;
       gint _tmp10_ = 0;
       GList* _tmp11_;
       GeeSet* _tmp12_ = NULL;
       GeeSet* active_genres;
       UnityLensSearch* _tmp13_;
       DeeSerializableModel* _tmp14_;
       DeeSerializableModel* _tmp15_;
       DeeSerializableModel* _tmp16_;
       DeeSerializableModel* helper_model;
       gint _tmp17_;
       gboolean _tmp25_;
       GObject* _tmp95_ = NULL;
       GObject* _tmp96_;
       DeeTermList* term_list;
       DeeAnalyzer* _tmp97_;
       DeeICUTermFilter* _tmp98_;
       UnityLensSearch* _tmp99_;
       const gchar* _tmp100_;
       const gchar* _tmp101_;
       gchar* _tmp102_ = NULL;
       gchar* _tmp103_;
       DeeTermList* _tmp104_;
       GSequence* _tmp105_;
       GSequence* matches;
       gboolean first_pass;
       GSequence* _tmp145_;
       GSequenceIter* _tmp146_ = NULL;
       GSequenceIter* seq_iter;
       GSequence* _tmp147_;
       GSequenceIter* _tmp148_ = NULL;
       GSequenceIter* seq_end_iter;
       GeeHashSet* _tmp149_;
       GeeHashSet* albums_list;
       DeeSerializableModel* _tmp213_;
       UnityLensSearch* _tmp214_;
       DeeSerializableModel* _tmp215_;
       DeeSerializableModel* _tmp216_;
       DeeSerializableModel* _tmp217_;
       DeeModelIter* _tmp218_ = NULL;
       DeeModelIter* iter;
       DeeSerializableModel* _tmp219_;
       DeeModelIter* _tmp220_ = NULL;
       DeeModelIter* last;
       g_return_if_fail (self != NULL);
       g_return_if_fail (search != NULL);
       num_results = 0;
       _tmp0_ = search;
       _tmp1_ = unity_lens_search_get_search_string (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = string_strip (_tmp2_);
       _tmp4_ = _tmp3_;
       _tmp5_ = g_strcmp0 (_tmp4_, "") == 0;
       _g_free0 (_tmp4_);
       empty_search = _tmp5_;
       _tmp6_ = self->priv->all_tracks;
       _tmp7_ = _g_object_ref0 ((DeeModel*) _tmp6_);
       model = _tmp7_;
       _tmp8_ = filters;
       unity_music_lens_rhythmbox_collection_get_decade_filter (self, _tmp8_, &_tmp9_, &_tmp10_);
       min_year = _tmp9_;
       max_year = _tmp10_;
       _tmp11_ = filters;
       _tmp12_ = unity_music_lens_rhythmbox_collection_get_genre_filter (self, _tmp11_);
       active_genres = _tmp12_;
       _tmp13_ = search;
       _tmp14_ = unity_lens_search_get_results_model (_tmp13_);
       _tmp15_ = _tmp14_;
       _tmp16_ = _g_object_ref0 (_tmp15_);
       helper_model = _tmp16_;
       _tmp17_ = category_override;
       if (_tmp17_ >= 0) {
              DeeSequenceModel* _tmp18_;
              DeeSerializableModel* _tmp19_;
              UnityLensSearch* _tmp20_;
              DeeSerializableModel* _tmp21_;
              DeeSerializableModel* _tmp22_;
              guint _tmp23_;
              gchar** _tmp24_ = NULL;
              _tmp18_ = (DeeSequenceModel*) dee_sequence_model_new ();
              _g_object_unref0 (helper_model);
              helper_model = (DeeSerializableModel*) _tmp18_;
              _tmp19_ = helper_model;
              _tmp20_ = search;
              _tmp21_ = unity_lens_search_get_results_model (_tmp20_);
              _tmp22_ = _tmp21_;
              _tmp24_ = dee_model_get_schema ((DeeModel*) _tmp22_, &_tmp23_);
              dee_model_set_schema_full ((DeeModel*) _tmp19_, _tmp24_, (guint) _tmp23_);
       }
       _tmp25_ = empty_search;
       if (_tmp25_) {
              DeeFilterModel* _tmp26_;
              DeeModel* _tmp27_;
              DeeModel* _tmp28_;
              DeeModelIter* _tmp29_ = NULL;
              DeeModelIter* iter;
              DeeModel* _tmp30_;
              DeeModelIter* _tmp31_ = NULL;
              DeeModelIter* end_iter;
              GeeHashSet* _tmp32_;
              GeeHashSet* albums_list_nosearch;
              _tmp26_ = self->priv->tracks_by_play_count;
              _tmp27_ = _g_object_ref0 ((DeeModel*) _tmp26_);
              _g_object_unref0 (model);
              model = _tmp27_;
              _tmp28_ = model;
              _tmp29_ = dee_model_get_first_iter (_tmp28_);
              iter = _tmp29_;
              _tmp30_ = model;
              _tmp31_ = dee_model_get_last_iter (_tmp30_);
              end_iter = _tmp31_;
              _tmp32_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
              albums_list_nosearch = _tmp32_;
              while (TRUE) {
                     DeeModelIter* _tmp33_;
                     DeeModelIter* _tmp34_;
                     DeeModel* _tmp35_;
                     DeeModelIter* _tmp36_;
                     gint32 _tmp37_ = 0;
                     gint year;
                     DeeModel* _tmp38_;
                     DeeModelIter* _tmp39_;
                     const gchar* _tmp40_ = NULL;
                     const gchar* genre;
                     gboolean _tmp41_ = FALSE;
                     gint _tmp42_;
                     gint _tmp43_;
                     gboolean _tmp46_;
                     GeeSet* _tmp50_;
                     DeeModel* _tmp57_;
                     DeeModelIter* _tmp58_;
                     gint32 _tmp59_ = 0;
                     gint _tmp79_;
                     DeeSerializableModel* _tmp81_;
                     DeeModel* _tmp82_;
                     DeeModelIter* _tmp83_;
                     UnityMusicLensRhythmboxCollectionResultType _tmp84_;
                     gint _tmp85_;
                     gint _tmp86_;
                     gboolean _tmp87_ = FALSE;
                     gint _tmp88_;
                     gboolean _tmp91_;
                     DeeModel* _tmp92_;
                     DeeModelIter* _tmp93_;
                     DeeModelIter* _tmp94_ = NULL;
                     _tmp33_ = iter;
                     _tmp34_ = end_iter;
                     if (!(_tmp33_ != _tmp34_)) {
                            break;
                     }
                     _tmp35_ = model;
                     _tmp36_ = iter;
                     _tmp37_ = dee_model_get_int32 (_tmp35_, _tmp36_, (guint) UNITY_MUSIC_LENS_COLUMNS_YEAR);
                     year = (gint) _tmp37_;
                     _tmp38_ = model;
                     _tmp39_ = iter;
                     _tmp40_ = dee_model_get_string (_tmp38_, _tmp39_, (guint) UNITY_MUSIC_LENS_COLUMNS_GENRE);
                     genre = _tmp40_;
                     _tmp42_ = year;
                     _tmp43_ = min_year;
                     if (_tmp42_ < _tmp43_) {
                            _tmp41_ = TRUE;
                     } else {
                            gint _tmp44_;
                            gint _tmp45_;
                            _tmp44_ = year;
                            _tmp45_ = max_year;
                            _tmp41_ = _tmp44_ > _tmp45_;
                     }
                     _tmp46_ = _tmp41_;
                     if (_tmp46_) {
                            DeeModel* _tmp47_;
                            DeeModelIter* _tmp48_;
                            DeeModelIter* _tmp49_ = NULL;
                            _tmp47_ = model;
                            _tmp48_ = iter;
                            _tmp49_ = dee_model_next (_tmp47_, _tmp48_);
                            iter = _tmp49_;
                            continue;
                     }
                     _tmp50_ = active_genres;
                     if (_tmp50_ != NULL) {
                            GeeSet* _tmp51_;
                            const gchar* _tmp52_;
                            gboolean _tmp53_ = FALSE;
                            _tmp51_ = active_genres;
                            _tmp52_ = genre;
                            _tmp53_ = gee_collection_contains ((GeeCollection*) _tmp51_, _tmp52_);
                            if (!_tmp53_) {
                                   DeeModel* _tmp54_;
                                   DeeModelIter* _tmp55_;
                                   DeeModelIter* _tmp56_ = NULL;
                                   _tmp54_ = model;
                                   _tmp55_ = iter;
                                   _tmp56_ = dee_model_next (_tmp54_, _tmp55_);
                                   iter = _tmp56_;
                                   continue;
                            }
                     }
                     _tmp57_ = model;
                     _tmp58_ = iter;
                     _tmp59_ = dee_model_get_int32 (_tmp57_, _tmp58_, (guint) UNITY_MUSIC_LENS_COLUMNS_TYPE);
                     if (_tmp59_ == ((gint32) UNITY_MUSIC_LENS_TRACK_TYPE_SONG)) {
                            DeeModel* _tmp60_;
                            DeeModelIter* _tmp61_;
                            const gchar* _tmp62_ = NULL;
                            const gchar* album;
                            GeeHashSet* _tmp63_;
                            const gchar* _tmp64_;
                            gboolean _tmp65_ = FALSE;
                            gboolean first_track_from_album;
                            GeeHashSet* _tmp66_;
                            const gchar* _tmp67_;
                            gboolean _tmp68_;
                            category_id = (gint) UNITY_MUSIC_LENS_CATEGORY_SONGS;
                            result_type = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_SONG;
                            _tmp60_ = model;
                            _tmp61_ = iter;
                            _tmp62_ = dee_model_get_string (_tmp60_, _tmp61_, (guint) UNITY_MUSIC_LENS_COLUMNS_ALBUM);
                            album = _tmp62_;
                            _tmp63_ = albums_list_nosearch;
                            _tmp64_ = album;
                            _tmp65_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp63_, _tmp64_);
                            first_track_from_album = !_tmp65_;
                            _tmp66_ = albums_list_nosearch;
                            _tmp67_ = album;
                            gee_abstract_collection_add ((GeeAbstractCollection*) _tmp66_, _tmp67_);
                            _tmp68_ = first_track_from_album;
                            if (_tmp68_) {
                                   gint _tmp69_ = 0;
                                   gint _tmp70_;
                                   gint _tmp72_;
                                   UnityLensSearch* _tmp73_;
                                   DeeSerializableModel* _tmp74_;
                                   DeeSerializableModel* _tmp75_;
                                   DeeModel* _tmp76_;
                                   DeeModelIter* _tmp77_;
                                   gint _tmp78_;
                                   _tmp70_ = category_override;
                                   if (_tmp70_ >= 0) {
                                          gint _tmp71_;
                                          _tmp71_ = category_override;
                                          _tmp69_ = _tmp71_;
                                   } else {
                                          _tmp69_ = (gint) UNITY_MUSIC_LENS_CATEGORY_ALBUMS;
                                   }
                                   _tmp72_ = _tmp69_;
                                   category_id = _tmp72_;
                                   _tmp73_ = search;
                                   _tmp74_ = unity_lens_search_get_results_model (_tmp73_);
                                   _tmp75_ = _tmp74_;
                                   _tmp76_ = model;
                                   _tmp77_ = iter;
                                   _tmp78_ = category_id;
                                   unity_music_lens_rhythmbox_collection_add_result (self, (DeeModel*) _tmp75_, _tmp76_, _tmp77_, UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_ALBUM, (guint) _tmp78_);
                            }
                     } else {
                            category_id = (gint) UNITY_MUSIC_LENS_CATEGORY_RADIOS;
                            result_type = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_RADIO;
                     }
                     _tmp79_ = category_override;
                     if (_tmp79_ >= 0) {
                            gint _tmp80_;
                            _tmp80_ = category_override;
                            category_id = _tmp80_;
                     }
                     _tmp81_ = helper_model;
                     _tmp82_ = model;
                     _tmp83_ = iter;
                     _tmp84_ = result_type;
                     _tmp85_ = category_id;
                     unity_music_lens_rhythmbox_collection_add_result (self, (DeeModel*) _tmp81_, _tmp82_, _tmp83_, _tmp84_, (guint) _tmp85_);
                     _tmp86_ = num_results;
                     num_results = _tmp86_ + 1;
                     _tmp88_ = max_results;
                     if (_tmp88_ >= 0) {
                            gint _tmp89_;
                            gint _tmp90_;
                            _tmp89_ = num_results;
                            _tmp90_ = max_results;
                            _tmp87_ = _tmp89_ >= _tmp90_;
                     } else {
                            _tmp87_ = FALSE;
                     }
                     _tmp91_ = _tmp87_;
                     if (_tmp91_) {
                            break;
                     }
                     _tmp92_ = model;
                     _tmp93_ = iter;
                     _tmp94_ = dee_model_next (_tmp92_, _tmp93_);
                     iter = _tmp94_;
              }
              _g_object_unref0 (albums_list_nosearch);
              _g_object_unref0 (helper_model);
              _g_object_unref0 (active_genres);
              _g_object_unref0 (model);
              return;
       }
       _tmp95_ = g_object_new (dee_term_list_get_type (), NULL);
       _tmp96_ = G_IS_INITIALLY_UNOWNED (_tmp95_) ? g_object_ref_sink (_tmp95_) : _tmp95_;
       term_list = DEE_IS_TERM_LIST (_tmp96_) ? ((DeeTermList*) _tmp96_) : NULL;
       _tmp97_ = self->priv->analyzer;
       _tmp98_ = self->priv->ascii_filter;
       _tmp99_ = search;
       _tmp100_ = unity_lens_search_get_search_string (_tmp99_);
       _tmp101_ = _tmp100_;
       _tmp102_ = dee_icu_term_filter_apply (_tmp98_, _tmp101_);
       _tmp103_ = _tmp102_;
       _tmp104_ = term_list;
       dee_analyzer_tokenize (_tmp97_, _tmp103_, _tmp104_);
       _g_free0 (_tmp103_);
       _tmp105_ = g_sequence_new (NULL);
       matches = _tmp105_;
       first_pass = TRUE;
       {
              DeeTermList* _tmp106_;
              DeeTermList* _tmp107_;
              DeeTermList* _term_list;
              DeeTermList* _tmp108_;
              guint _tmp109_;
              guint _tmp110_;
              guint _term_size;
              gint _term_index;
              _tmp106_ = term_list;
              _tmp107_ = _g_object_ref0 (_tmp106_);
              _term_list = _tmp107_;
              _tmp108_ = _term_list;
              _tmp109_ = dee_term_list_num_terms (_tmp108_);
              _tmp110_ = _tmp109_;
              _term_size = _tmp110_;
              _term_index = -1;
              while (TRUE) {
                     gint _tmp111_;
                     gint _tmp112_;
                     guint _tmp113_;
                     DeeTermList* _tmp114_;
                     gint _tmp115_;
                     const gchar* _tmp116_ = NULL;
                     const gchar* term;
                     DeeIndex* _tmp117_;
                     const gchar* _tmp118_;
                     DeeResultSet* _tmp119_ = NULL;
                     DeeResultSet* result_set;
                     GCompareDataFunc cmp_func;
                     void* cmp_func_target;
                     GDestroyNotify cmp_func_target_destroy_notify;
                     GSequence* _tmp120_;
                     GSequence* remaining;
                     gboolean _tmp139_;
                     GSequence* _tmp141_;
                     GSequenceIter* _tmp142_ = NULL;
                     GSequence* _tmp143_;
                     GSequenceIter* _tmp144_ = NULL;
                     _tmp111_ = _term_index;
                     _term_index = _tmp111_ + 1;
                     _tmp112_ = _term_index;
                     _tmp113_ = _term_size;
                     if (!(((guint) _tmp112_) < _tmp113_)) {
                            break;
                     }
                     _tmp114_ = _term_list;
                     _tmp115_ = _term_index;
                     _tmp116_ = dee_term_list_get_term (_tmp114_, (guint) _tmp115_);
                     term = _tmp116_;
                     _tmp117_ = self->priv->index;
                     _tmp118_ = term;
                     _tmp119_ = dee_index_lookup (_tmp117_, _tmp118_, DEE_TERM_MATCH_PREFIX);
                     result_set = _tmp119_;
                     cmp_func = _____lambda8__gcompare_data_func;
                     cmp_func_target = g_object_ref (self);
                     cmp_func_target_destroy_notify = g_object_unref;
                     _tmp120_ = g_sequence_new (NULL);
                     remaining = _tmp120_;
                     {
                            DeeResultSet* _tmp121_;
                            DeeResultSet* _tmp122_ = NULL;
                            DeeResultSet* _item_it;
                            DeeModelIter* item = NULL;
                            _tmp121_ = result_set;
                            _tmp122_ = _vala_dee_result_set_iterator (_tmp121_);
                            _item_it = _tmp122_;
                            while (TRUE) {
                                   DeeResultSet* _tmp123_;
                                   DeeModelIter* _tmp124_ = NULL;
                                   DeeModelIter* _tmp125_;
                                   gboolean _tmp126_;
                                   _tmp123_ = _item_it;
                                   _tmp124_ = _vala_dee_result_set_next_value (_tmp123_);
                                   item = _tmp124_;
                                   _tmp125_ = item;
                                   if (!(_tmp125_ != NULL)) {
                                          break;
                                   }
                                   _tmp126_ = first_pass;
                                   if (_tmp126_) {
                                          GSequence* _tmp127_;
                                          DeeModelIter* _tmp128_;
                                          GCompareDataFunc _tmp129_;
                                          void* _tmp129__target;
                                          GSequenceIter* _tmp130_ = NULL;
                                          _tmp127_ = matches;
                                          _tmp128_ = item;
                                          _tmp129_ = cmp_func;
                                          _tmp129__target = cmp_func_target;
                                          _tmp130_ = g_sequence_insert_sorted (_tmp127_, _tmp128_, _tmp129_, _tmp129__target);
                                   } else {
                                          GSequence* _tmp131_;
                                          DeeModelIter* _tmp132_;
                                          GCompareDataFunc _tmp133_;
                                          void* _tmp133__target;
                                          GSequenceIter* _tmp134_ = NULL;
                                          _tmp131_ = matches;
                                          _tmp132_ = item;
                                          _tmp133_ = cmp_func;
                                          _tmp133__target = cmp_func_target;
                                          _tmp134_ = g_sequence_lookup (_tmp131_, _tmp132_, _tmp133_, _tmp133__target);
                                          if (_tmp134_ != NULL) {
                                                 GSequence* _tmp135_;
                                                 DeeModelIter* _tmp136_;
                                                 GCompareDataFunc _tmp137_;
                                                 void* _tmp137__target;
                                                 GSequenceIter* _tmp138_ = NULL;
                                                 _tmp135_ = remaining;
                                                 _tmp136_ = item;
                                                 _tmp137_ = cmp_func;
                                                 _tmp137__target = cmp_func_target;
                                                 _tmp138_ = g_sequence_insert_sorted (_tmp135_, _tmp136_, _tmp137_, _tmp137__target);
                                          }
                                   }
                            }
                            _g_object_unref0 (_item_it);
                     }
                     _tmp139_ = first_pass;
                     if (!_tmp139_) {
                            GSequence* _tmp140_;
                            _tmp140_ = remaining;
                            remaining = NULL;
                            _g_sequence_free0 (matches);
                            matches = _tmp140_;
                     }
                     _tmp141_ = matches;
                     _tmp142_ = g_sequence_get_begin_iter (_tmp141_);
                     _tmp143_ = matches;
                     _tmp144_ = g_sequence_get_end_iter (_tmp143_);
                     if (_tmp142_ == _tmp144_) {
                            _g_sequence_free0 (remaining);
                            (cmp_func_target_destroy_notify == NULL) ? NULL : (cmp_func_target_destroy_notify (cmp_func_target), NULL);
                            cmp_func = NULL;
                            cmp_func_target = NULL;
                            cmp_func_target_destroy_notify = NULL;
                            _g_object_unref0 (result_set);
                            break;
                     }
                     first_pass = FALSE;
                     _g_sequence_free0 (remaining);
                     (cmp_func_target_destroy_notify == NULL) ? NULL : (cmp_func_target_destroy_notify (cmp_func_target), NULL);
                     cmp_func = NULL;
                     cmp_func_target = NULL;
                     cmp_func_target_destroy_notify = NULL;
                     _g_object_unref0 (result_set);
              }
              _g_object_unref0 (_term_list);
       }
       _tmp145_ = matches;
       _tmp146_ = g_sequence_get_begin_iter (_tmp145_);
       seq_iter = _tmp146_;
       _tmp147_ = matches;
       _tmp148_ = g_sequence_get_end_iter (_tmp147_);
       seq_end_iter = _tmp148_;
       _tmp149_ = gee_hash_set_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
       albums_list = _tmp149_;
       while (TRUE) {
              GSequenceIter* _tmp150_;
              GSequenceIter* _tmp151_;
              GSequenceIter* _tmp152_;
              gconstpointer _tmp153_ = NULL;
              DeeModelIter* model_iter;
              DeeModel* _tmp154_;
              DeeModelIter* _tmp155_;
              gint32 _tmp156_ = 0;
              gint year;
              DeeModel* _tmp157_;
              DeeModelIter* _tmp158_;
              const gchar* _tmp159_ = NULL;
              gchar* _tmp160_;
              gchar* genre;
              gboolean _tmp161_ = FALSE;
              gint _tmp162_;
              gint _tmp163_;
              gboolean _tmp166_;
              GeeSet* _tmp169_;
              DeeModel* _tmp176_;
              DeeModelIter* _tmp177_;
              gint32 _tmp178_ = 0;
              gint _tmp198_;
              DeeSerializableModel* _tmp200_;
              DeeModel* _tmp201_;
              DeeModelIter* _tmp202_;
              UnityMusicLensRhythmboxCollectionResultType _tmp203_;
              gint _tmp204_;
              gint _tmp205_;
              gboolean _tmp206_ = FALSE;
              gint _tmp207_;
              gboolean _tmp210_;
              GSequenceIter* _tmp211_;
              GSequenceIter* _tmp212_ = NULL;
              _tmp150_ = seq_iter;
              _tmp151_ = seq_end_iter;
              if (!(_tmp150_ != _tmp151_)) {
                     break;
              }
              _tmp152_ = seq_iter;
              _tmp153_ = g_sequence_get (_tmp152_);
              model_iter = (DeeModelIter*) _tmp153_;
              _tmp154_ = model;
              _tmp155_ = model_iter;
              _tmp156_ = dee_model_get_int32 (_tmp154_, _tmp155_, (guint) UNITY_MUSIC_LENS_COLUMNS_YEAR);
              year = (gint) _tmp156_;
              _tmp157_ = model;
              _tmp158_ = model_iter;
              _tmp159_ = dee_model_get_string (_tmp157_, _tmp158_, (guint) UNITY_MUSIC_LENS_COLUMNS_GENRE);
              _tmp160_ = g_strdup (_tmp159_);
              genre = _tmp160_;
              _tmp162_ = year;
              _tmp163_ = min_year;
              if (_tmp162_ < _tmp163_) {
                     _tmp161_ = TRUE;
              } else {
                     gint _tmp164_;
                     gint _tmp165_;
                     _tmp164_ = year;
                     _tmp165_ = max_year;
                     _tmp161_ = _tmp164_ > _tmp165_;
              }
              _tmp166_ = _tmp161_;
              if (_tmp166_) {
                     GSequenceIter* _tmp167_;
                     GSequenceIter* _tmp168_ = NULL;
                     _tmp167_ = seq_iter;
                     _tmp168_ = g_sequence_iter_next (_tmp167_);
                     seq_iter = _tmp168_;
                     _g_free0 (genre);
                     continue;
              }
              _tmp169_ = active_genres;
              if (_tmp169_ != NULL) {
                     GeeSet* _tmp170_;
                     const gchar* _tmp171_;
                     gboolean _tmp172_ = FALSE;
                     gboolean genre_match;
                     gboolean _tmp173_;
                     _tmp170_ = active_genres;
                     _tmp171_ = genre;
                     _tmp172_ = gee_collection_contains ((GeeCollection*) _tmp170_, _tmp171_);
                     genre_match = _tmp172_;
                     _tmp173_ = genre_match;
                     if (!_tmp173_) {
                            GSequenceIter* _tmp174_;
                            GSequenceIter* _tmp175_ = NULL;
                            _tmp174_ = seq_iter;
                            _tmp175_ = g_sequence_iter_next (_tmp174_);
                            seq_iter = _tmp175_;
                            _g_free0 (genre);
                            continue;
                     }
              }
              _tmp176_ = model;
              _tmp177_ = model_iter;
              _tmp178_ = dee_model_get_int32 (_tmp176_, _tmp177_, (guint) UNITY_MUSIC_LENS_COLUMNS_TYPE);
              if (_tmp178_ == ((gint32) UNITY_MUSIC_LENS_TRACK_TYPE_SONG)) {
                     DeeModel* _tmp179_;
                     DeeModelIter* _tmp180_;
                     const gchar* _tmp181_ = NULL;
                     const gchar* album;
                     GeeHashSet* _tmp182_;
                     const gchar* _tmp183_;
                     gboolean _tmp184_ = FALSE;
                     gboolean first_track_from_album;
                     GeeHashSet* _tmp185_;
                     const gchar* _tmp186_;
                     gboolean _tmp187_;
                     category_id = (gint) UNITY_MUSIC_LENS_CATEGORY_SONGS;
                     result_type = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_SONG;
                     _tmp179_ = model;
                     _tmp180_ = model_iter;
                     _tmp181_ = dee_model_get_string (_tmp179_, _tmp180_, (guint) UNITY_MUSIC_LENS_COLUMNS_ALBUM);
                     album = _tmp181_;
                     _tmp182_ = albums_list;
                     _tmp183_ = album;
                     _tmp184_ = gee_abstract_collection_contains ((GeeAbstractCollection*) _tmp182_, _tmp183_);
                     first_track_from_album = !_tmp184_;
                     _tmp185_ = albums_list;
                     _tmp186_ = album;
                     gee_abstract_collection_add ((GeeAbstractCollection*) _tmp185_, _tmp186_);
                     _tmp187_ = first_track_from_album;
                     if (_tmp187_) {
                            gint _tmp188_ = 0;
                            gint _tmp189_;
                            gint _tmp191_;
                            UnityLensSearch* _tmp192_;
                            DeeSerializableModel* _tmp193_;
                            DeeSerializableModel* _tmp194_;
                            DeeModel* _tmp195_;
                            DeeModelIter* _tmp196_;
                            gint _tmp197_;
                            _tmp189_ = category_override;
                            if (_tmp189_ >= 0) {
                                   gint _tmp190_;
                                   _tmp190_ = category_override;
                                   _tmp188_ = _tmp190_;
                            } else {
                                   _tmp188_ = (gint) UNITY_MUSIC_LENS_CATEGORY_ALBUMS;
                            }
                            _tmp191_ = _tmp188_;
                            category_id = _tmp191_;
                            _tmp192_ = search;
                            _tmp193_ = unity_lens_search_get_results_model (_tmp192_);
                            _tmp194_ = _tmp193_;
                            _tmp195_ = model;
                            _tmp196_ = model_iter;
                            _tmp197_ = category_id;
                            unity_music_lens_rhythmbox_collection_add_result (self, (DeeModel*) _tmp194_, _tmp195_, _tmp196_, UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_ALBUM, (guint) _tmp197_);
                     }
              } else {
                     category_id = (gint) UNITY_MUSIC_LENS_CATEGORY_RADIOS;
                     result_type = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_RESULT_TYPE_RADIO;
              }
              _tmp198_ = category_override;
              if (_tmp198_ >= 0) {
                     gint _tmp199_;
                     _tmp199_ = category_override;
                     category_id = _tmp199_;
              }
              _tmp200_ = helper_model;
              _tmp201_ = model;
              _tmp202_ = model_iter;
              _tmp203_ = result_type;
              _tmp204_ = category_id;
              unity_music_lens_rhythmbox_collection_add_result (self, (DeeModel*) _tmp200_, _tmp201_, _tmp202_, _tmp203_, (guint) _tmp204_);
              _tmp205_ = num_results;
              num_results = _tmp205_ + 1;
              _tmp207_ = max_results;
              if (_tmp207_ >= 0) {
                     gint _tmp208_;
                     gint _tmp209_;
                     _tmp208_ = num_results;
                     _tmp209_ = max_results;
                     _tmp206_ = _tmp208_ >= _tmp209_;
              } else {
                     _tmp206_ = FALSE;
              }
              _tmp210_ = _tmp206_;
              if (_tmp210_) {
                     _g_free0 (genre);
                     break;
              }
              _tmp211_ = seq_iter;
              _tmp212_ = g_sequence_iter_next (_tmp211_);
              seq_iter = _tmp212_;
              _g_free0 (genre);
       }
       _tmp213_ = helper_model;
       _tmp214_ = search;
       _tmp215_ = unity_lens_search_get_results_model (_tmp214_);
       _tmp216_ = _tmp215_;
       if (_tmp213_ == _tmp216_) {
              _g_object_unref0 (albums_list);
              _g_sequence_free0 (matches);
              _g_object_unref0 (term_list);
              _g_object_unref0 (helper_model);
              _g_object_unref0 (active_genres);
              _g_object_unref0 (model);
              return;
       }
       _tmp217_ = helper_model;
       _tmp218_ = dee_model_get_first_iter ((DeeModel*) _tmp217_);
       iter = _tmp218_;
       _tmp219_ = helper_model;
       _tmp220_ = dee_model_get_last_iter ((DeeModel*) _tmp219_);
       last = _tmp220_;
       while (TRUE) {
              DeeModelIter* _tmp221_;
              DeeModelIter* _tmp222_;
              DeeSerializableModel* _tmp223_;
              DeeModelIter* _tmp224_;
              GVariant** _tmp225_;
              GVariant** _tmp226_ = NULL;
              GVariant** row;
              gint row_length1;
              gint _row_size_;
              UnityLensSearch* _tmp227_;
              DeeSerializableModel* _tmp228_;
              DeeSerializableModel* _tmp229_;
              GVariant** _tmp230_;
              gint _tmp230__length1;
              DeeSerializableModel* _tmp231_;
              DeeModelIter* _tmp232_;
              DeeModelIter* _tmp233_ = NULL;
              _tmp221_ = iter;
              _tmp222_ = last;
              if (!(_tmp221_ != _tmp222_)) {
                     break;
              }
              _tmp223_ = helper_model;
              _tmp224_ = iter;
              _tmp226_ = _tmp225_ = dee_model_get_row ((DeeModel*) _tmp223_, _tmp224_, NULL);
              row = _tmp226_;
              row_length1 = _vala_array_length (_tmp225_);
              _row_size_ = row_length1;
              _tmp227_ = search;
              _tmp228_ = unity_lens_search_get_results_model (_tmp227_);
              _tmp229_ = _tmp228_;
              _tmp230_ = row;
              _tmp230__length1 = row_length1;
              dee_model_append_row ((DeeModel*) _tmp229_, _tmp230_);
              _tmp231_ = helper_model;
              _tmp232_ = iter;
              _tmp233_ = dee_model_next ((DeeModel*) _tmp231_, _tmp232_);
              iter = _tmp233_;
              row = (_vala_array_free (row, row_length1, (GDestroyNotify) g_variant_unref), NULL);
       }
       _g_object_unref0 (albums_list);
       _g_sequence_free0 (matches);
       _g_object_unref0 (term_list);
       _g_object_unref0 (helper_model);
       _g_object_unref0 (active_genres);
       _g_object_unref0 (model);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_xml_parser_class_init ( UnityMusicLensRhythmboxCollectionXmlParserClass *  klass) [static]

Definition at line 3826 of file rhythmbox-collection.c.

                                                                                                                                  {
       unity_music_lens_rhythmbox_collection_xml_parser_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensRhythmboxCollectionXmlParserPrivate));
       G_OBJECT_CLASS (klass)->constructor = unity_music_lens_rhythmbox_collection_xml_parser_constructor;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_rhythmbox_collection_xml_parser_finalize;
       g_signal_new ("track_info_ready", UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_TYPE_XML_PARSER, G_SIGNAL_RUN_LAST, 0, NULL, NULL, g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1, UNITY_MUSIC_LENS_TYPE_TRACK);
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensRhythmboxCollectionXmlParser* unity_music_lens_rhythmbox_collection_xml_parser_construct ( GType  object_type)

Definition at line 3799 of file rhythmbox-collection.c.

                                                                                                                           {
       UnityMusicLensRhythmboxCollectionXmlParser * self = NULL;
       self = (UnityMusicLensRhythmboxCollectionXmlParser*) g_object_new (object_type, NULL);
       return self;
}

Here is the caller graph for this function:

static GObject * unity_music_lens_rhythmbox_collection_xml_parser_constructor ( GType  type,
guint  n_construct_properties,
GObjectConstructParam *  construct_properties 
) [static]

Definition at line 3811 of file rhythmbox-collection.c.

                                                                                                                                                                       {
       GObject * obj;
       GObjectClass * parent_class;
       UnityMusicLensRhythmboxCollectionXmlParser * self;
       GMarkupParseContext* _tmp0_;
       parent_class = G_OBJECT_CLASS (unity_music_lens_rhythmbox_collection_xml_parser_parent_class);
       obj = parent_class->constructor (type, n_construct_properties, construct_properties);
       self = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER (obj);
       _tmp0_ = g_markup_parse_context_new (&UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_parser, 0, self, NULL);
       _g_markup_parse_context_free0 (self->priv->context);
       self->priv->context = _tmp0_;
       return obj;
}

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_xml_parser_end_tag ( UnityMusicLensRhythmboxCollectionXmlParser *  self,
GMarkupParseContext *  content,
const gchar *  name,
GError **  error 
) [static]

Definition at line 3588 of file rhythmbox-collection.c.

                                                                                                                                                                                         {
       const gchar* _tmp0_;
       const gchar* _tmp1_;
       GQuark _tmp3_ = 0U;
       static GQuark _tmp2_label0 = 0;
       static GQuark _tmp2_label1 = 0;
       static GQuark _tmp2_label2 = 0;
       static GQuark _tmp2_label3 = 0;
       static GQuark _tmp2_label4 = 0;
       static GQuark _tmp2_label5 = 0;
       static GQuark _tmp2_label6 = 0;
       static GQuark _tmp2_label7 = 0;
       static GQuark _tmp2_label8 = 0;
       static GQuark _tmp2_label9 = 0;
       static GQuark _tmp2_label10 = 0;
       static GQuark _tmp2_label11 = 0;
       g_return_if_fail (self != NULL);
       g_return_if_fail (content != NULL);
       g_return_if_fail (name != NULL);
       _tmp0_ = name;
       _tmp1_ = _tmp0_;
       _tmp3_ = (NULL == _tmp1_) ? 0 : g_quark_from_string (_tmp1_);
       if ((((((((((_tmp3_ == ((0 != _tmp2_label0) ? _tmp2_label0 : (_tmp2_label0 = g_quark_from_static_string ("location")))) || (_tmp3_ == ((0 != _tmp2_label1) ? _tmp2_label1 : (_tmp2_label1 = g_quark_from_static_string ("title"))))) || (_tmp3_ == ((0 != _tmp2_label2) ? _tmp2_label2 : (_tmp2_label2 = g_quark_from_static_string ("artist"))))) || (_tmp3_ == ((0 != _tmp2_label3) ? _tmp2_label3 : (_tmp2_label3 = g_quark_from_static_string ("album"))))) || (_tmp3_ == ((0 != _tmp2_label4) ? _tmp2_label4 : (_tmp2_label4 = g_quark_from_static_string ("genre"))))) || (_tmp3_ == ((0 != _tmp2_label5) ? _tmp2_label5 : (_tmp2_label5 = g_quark_from_static_string ("track-number"))))) || (_tmp3_ == ((0 != _tmp2_label6) ? _tmp2_label6 : (_tmp2_label6 = g_quark_from_static_string ("play-count"))))) || (_tmp3_ == ((0 != _tmp2_label7) ? _tmp2_label7 : (_tmp2_label7 = g_quark_from_static_string ("date"))))) || (_tmp3_ == ((0 != _tmp2_label8) ? _tmp2_label8 : (_tmp2_label8 = g_quark_from_static_string ("media-type"))))) || (_tmp3_ == ((0 != _tmp2_label9) ? _tmp2_label9 : (_tmp2_label9 = g_quark_from_static_string ("album-artist"))))) {
              switch (0) {
                     default:
                     {
                            gint _tmp4_;
                            _tmp4_ = self->priv->current_data;
                            if (_tmp4_ >= 0) {
                                   self->priv->current_data = -1;
                            }
                            break;
                     }
              }
       } else if (_tmp3_ == ((0 != _tmp2_label10) ? _tmp2_label10 : (_tmp2_label10 = g_quark_from_static_string ("hidden")))) {
              switch (0) {
                     default:
                     {
                            gboolean _tmp5_;
                            _tmp5_ = self->priv->processing_track;
                            if (_tmp5_) {
                                   self->priv->processing_track = FALSE;
                            }
                            break;
                     }
              }
       } else if (_tmp3_ == ((0 != _tmp2_label11) ? _tmp2_label11 : (_tmp2_label11 = g_quark_from_static_string ("entry")))) {
              switch (0) {
                     default:
                     {
                            gboolean _tmp6_ = FALSE;
                            gboolean _tmp7_;
                            gboolean _tmp9_;
                            _tmp7_ = self->priv->processing_track;
                            if (_tmp7_) {
                                   UnityMusicLensTrack* _tmp8_;
                                   _tmp8_ = self->priv->current_track;
                                   _tmp6_ = _tmp8_ != NULL;
                            } else {
                                   _tmp6_ = FALSE;
                            }
                            _tmp9_ = _tmp6_;
                            if (_tmp9_) {
                                   UnityMusicLensTrack* _tmp10_;
                                   _tmp10_ = self->priv->current_track;
                                   g_signal_emit_by_name (self, "track-info-ready", _tmp10_);
                            }
                            self->priv->processing_track = FALSE;
                            break;
                     }
              }
       }
}

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_xml_parser_finalize ( GObject *  obj) [static]

Definition at line 3845 of file rhythmbox-collection.c.

                                                                                     {
       UnityMusicLensRhythmboxCollectionXmlParser * self;
       self = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER (obj);
       _g_object_unref0 (self->priv->genre);
       _g_markup_parse_context_free0 (self->priv->context);
       _g_object_unref0 (self->priv->current_track);
       G_OBJECT_CLASS (unity_music_lens_rhythmbox_collection_xml_parser_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

Definition at line 3855 of file rhythmbox-collection.c.

                                                                       {
       static volatile gsize unity_music_lens_rhythmbox_collection_xml_parser_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_lens_rhythmbox_collection_xml_parser_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensRhythmboxCollectionXmlParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_rhythmbox_collection_xml_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensRhythmboxCollectionXmlParser), 0, (GInstanceInitFunc) unity_music_lens_rhythmbox_collection_xml_parser_instance_init, NULL };
              GType unity_music_lens_rhythmbox_collection_xml_parser_type_id;
              unity_music_lens_rhythmbox_collection_xml_parser_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityMusicLensRhythmboxCollectionXmlParser", &g_define_type_info, 0);
              g_once_init_leave (&unity_music_lens_rhythmbox_collection_xml_parser_type_id__volatile, unity_music_lens_rhythmbox_collection_xml_parser_type_id);
       }
       return unity_music_lens_rhythmbox_collection_xml_parser_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_lens_rhythmbox_collection_xml_parser_instance_init ( UnityMusicLensRhythmboxCollectionXmlParser *  self) [static]

Definition at line 3835 of file rhythmbox-collection.c.

                                                                                                                               {
       UnityMusicLensGenre* _tmp0_;
       self->priv = UNITY_MUSIC_LENS_RHYTHMBOX_COLLECTION_XML_PARSER_GET_PRIVATE (self);
       _tmp0_ = unity_music_lens_genre_new ();
       self->priv->genre = _tmp0_;
       self->priv->is_rhythmdb_xml = FALSE;
       self->priv->current_data = -1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensRhythmboxCollectionXmlParser* unity_music_lens_rhythmbox_collection_xml_parser_new ( void  )

Definition at line 3806 of file rhythmbox-collection.c.

Here is the call graph for this function:

Here is the caller graph for this function:

gboolean unity_music_lens_rhythmbox_collection_xml_parser_parse ( UnityMusicLensRhythmboxCollectionXmlParser *  self,
const gchar *  content,
gsize  len,
GError **  error 
)

Definition at line 3307 of file rhythmbox-collection.c.

                                                                                                                                                                    {
       gboolean result = FALSE;
       GMarkupParseContext* _tmp0_;
       const gchar* _tmp1_;
       gsize _tmp2_;
       gboolean _tmp3_ = FALSE;
       gboolean _tmp4_;
       GError * _inner_error_ = NULL;
       g_return_val_if_fail (self != NULL, FALSE);
       g_return_val_if_fail (content != NULL, FALSE);
       _tmp0_ = self->priv->context;
       _tmp1_ = content;
       _tmp2_ = len;
       _tmp3_ = g_markup_parse_context_parse (_tmp0_, _tmp1_, (gssize) _tmp2_, &_inner_error_);
       _tmp4_ = _tmp3_;
       if (_inner_error_ != NULL) {
              if (_inner_error_->domain == G_MARKUP_ERROR) {
                     g_propagate_error (error, _inner_error_);
                     return FALSE;
              } else {
                     g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return FALSE;
              }
       }
       result = _tmp4_;
       return result;
}

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_xml_parser_process_text ( UnityMusicLensRhythmboxCollectionXmlParser *  self,
GMarkupParseContext *  context,
const gchar *  text,
gsize  text_len,
GError **  error 
) [static]

Definition at line 3663 of file rhythmbox-collection.c.

                                                                                                                                                                                                              {
       gboolean _tmp0_ = FALSE;
       gboolean _tmp1_;
       gboolean _tmp3_;
       gint _tmp4_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (context != NULL);
       g_return_if_fail (text != NULL);
       _tmp1_ = self->priv->processing_track;
       if (!_tmp1_) {
              _tmp0_ = TRUE;
       } else {
              gint _tmp2_;
              _tmp2_ = self->priv->current_data;
              _tmp0_ = _tmp2_ < 0;
       }
       _tmp3_ = _tmp0_;
       if (_tmp3_) {
              return;
       }
       _tmp4_ = self->priv->current_data;
       switch (_tmp4_) {
              case UNITY_MUSIC_LENS_COLUMNS_URI:
              {
                     UnityMusicLensTrack* _tmp5_;
                     const gchar* _tmp6_;
                     _tmp5_ = self->priv->current_track;
                     _tmp6_ = text;
                     unity_music_lens_track_set_uri (_tmp5_, _tmp6_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_TITLE:
              {
                     UnityMusicLensTrack* _tmp7_;
                     const gchar* _tmp8_;
                     _tmp7_ = self->priv->current_track;
                     _tmp8_ = text;
                     unity_music_lens_track_set_title (_tmp7_, _tmp8_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_ARTIST:
              {
                     UnityMusicLensTrack* _tmp9_;
                     const gchar* _tmp10_;
                     _tmp9_ = self->priv->current_track;
                     _tmp10_ = text;
                     unity_music_lens_track_set_artist (_tmp9_, _tmp10_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_ALBUM:
              {
                     UnityMusicLensTrack* _tmp11_;
                     const gchar* _tmp12_;
                     _tmp11_ = self->priv->current_track;
                     _tmp12_ = text;
                     unity_music_lens_track_set_album (_tmp11_, _tmp12_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_ALBUM_ARTIST:
              {
                     UnityMusicLensTrack* _tmp13_;
                     const gchar* _tmp14_;
                     _tmp13_ = self->priv->current_track;
                     _tmp14_ = text;
                     unity_music_lens_track_set_album_artist (_tmp13_, _tmp14_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_GENRE:
              {
                     UnityMusicLensTrack* _tmp15_;
                     UnityMusicLensGenre* _tmp16_;
                     const gchar* _tmp17_;
                     gchar* _tmp18_ = NULL;
                     gchar* _tmp19_;
                     gchar* _tmp20_ = NULL;
                     gchar* _tmp21_;
                     _tmp15_ = self->priv->current_track;
                     _tmp16_ = self->priv->genre;
                     _tmp17_ = text;
                     _tmp18_ = g_utf8_strdown (_tmp17_, (gssize) (-1));
                     _tmp19_ = _tmp18_;
                     _tmp20_ = unity_music_lens_genre_get_id_for_genre (_tmp16_, _tmp19_);
                     _tmp21_ = _tmp20_;
                     unity_music_lens_track_set_genre (_tmp15_, _tmp21_);
                     _g_free0 (_tmp21_);
                     _g_free0 (_tmp19_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_MIMETYPE:
              {
                     UnityMusicLensTrack* _tmp22_;
                     const gchar* _tmp23_;
                     _tmp22_ = self->priv->current_track;
                     _tmp23_ = text;
                     unity_music_lens_track_set_mime_type (_tmp22_, _tmp23_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_YEAR:
              {
                     UnityMusicLensTrack* _tmp24_;
                     const gchar* _tmp25_;
                     gint _tmp26_ = 0;
                     _tmp24_ = self->priv->current_track;
                     _tmp25_ = text;
                     _tmp26_ = atoi (_tmp25_);
                     unity_music_lens_track_set_year (_tmp24_, _tmp26_ / 365);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_PLAY_COUNT:
              {
                     UnityMusicLensTrack* _tmp27_;
                     const gchar* _tmp28_;
                     gint _tmp29_ = 0;
                     _tmp27_ = self->priv->current_track;
                     _tmp28_ = text;
                     _tmp29_ = atoi (_tmp28_);
                     unity_music_lens_track_set_play_count (_tmp27_, _tmp29_);
                     break;
              }
              case UNITY_MUSIC_LENS_COLUMNS_TRACK_NUMBER:
              {
                     UnityMusicLensTrack* _tmp30_;
                     const gchar* _tmp31_;
                     gint _tmp32_ = 0;
                     _tmp30_ = self->priv->current_track;
                     _tmp31_ = text;
                     _tmp32_ = atoi (_tmp31_);
                     unity_music_lens_track_set_track_number (_tmp30_, _tmp32_);
                     break;
              }
              default:
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_collection_xml_parser_start_tag ( UnityMusicLensRhythmboxCollectionXmlParser *  self,
GMarkupParseContext *  context,
const gchar *  name,
gchar **  attr_names,
gchar **  attr_values,
GError **  error 
) [static]

Definition at line 3337 of file rhythmbox-collection.c.

                                                                                                                                                                                                                                    {
       gboolean _tmp0_;
       g_return_if_fail (self != NULL);
       g_return_if_fail (context != NULL);
       g_return_if_fail (name != NULL);
       _tmp0_ = self->priv->processing_track;
       if (!_tmp0_) {
              const gchar* _tmp1_;
              const gchar* _tmp2_;
              GQuark _tmp4_ = 0U;
              static GQuark _tmp3_label0 = 0;
              static GQuark _tmp3_label1 = 0;
              _tmp1_ = name;
              _tmp2_ = _tmp1_;
              _tmp4_ = (NULL == _tmp2_) ? 0 : g_quark_from_string (_tmp2_);
              if (_tmp4_ == ((0 != _tmp3_label0) ? _tmp3_label0 : (_tmp3_label0 = g_quark_from_static_string ("rhythmdb")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->is_rhythmdb_xml = TRUE;
                                   break;
                            }
                     }
              } else if (_tmp4_ == ((0 != _tmp3_label1) ? _tmp3_label1 : (_tmp3_label1 = g_quark_from_static_string ("entry")))) {
                     switch (0) {
                            default:
                            {
                                   gchar* accepted_element_name;
                                   const gchar* _tmp28_;
                                   UnityMusicLensTrack* _tmp29_;
                                   UnityMusicLensTrackType _tmp30_ = 0;
                                   const gchar* _tmp31_;
                                   UnityMusicLensTrack* _tmp32_;
                                   UnityMusicLensTrackType _tmp33_;
                                   accepted_element_name = NULL;
                                   {
                                          gint i;
                                          i = 0;
                                          {
                                                 gboolean _tmp5_;
                                                 _tmp5_ = TRUE;
                                                 while (TRUE) {
                                                        gboolean _tmp6_;
                                                        gchar** _tmp8_;
                                                        gint _tmp8__length1;
                                                        gint _tmp9_;
                                                        const gchar* _tmp10_;
                                                        gboolean _tmp11_ = FALSE;
                                                        gchar** _tmp12_;
                                                        gint _tmp12__length1;
                                                        gint _tmp13_;
                                                        const gchar* _tmp14_;
                                                        gboolean _tmp23_;
                                                        _tmp6_ = _tmp5_;
                                                        if (!_tmp6_) {
                                                               gint _tmp7_;
                                                               _tmp7_ = i;
                                                               i = _tmp7_ + 1;
                                                        }
                                                        _tmp5_ = FALSE;
                                                        _tmp8_ = attr_names;
                                                        _tmp8__length1 = _vala_array_length (attr_names);
                                                        _tmp9_ = i;
                                                        _tmp10_ = _tmp8_[_tmp9_];
                                                        if (!(_tmp10_ != NULL)) {
                                                               break;
                                                        }
                                                        _tmp12_ = attr_names;
                                                        _tmp12__length1 = _vala_array_length (attr_names);
                                                        _tmp13_ = i;
                                                        _tmp14_ = _tmp12_[_tmp13_];
                                                        if (g_strcmp0 (_tmp14_, "type") == 0) {
                                                               gboolean _tmp15_ = FALSE;
                                                               gchar** _tmp16_;
                                                               gint _tmp16__length1;
                                                               gint _tmp17_;
                                                               const gchar* _tmp18_;
                                                               gboolean _tmp22_;
                                                               _tmp16_ = attr_values;
                                                               _tmp16__length1 = _vala_array_length (attr_values);
                                                               _tmp17_ = i;
                                                               _tmp18_ = _tmp16_[_tmp17_];
                                                               if (g_strcmp0 (_tmp18_, "song") == 0) {
                                                                      _tmp15_ = TRUE;
                                                               } else {
                                                                      gchar** _tmp19_;
                                                                      gint _tmp19__length1;
                                                                      gint _tmp20_;
                                                                      const gchar* _tmp21_;
                                                                      _tmp19_ = attr_values;
                                                                      _tmp19__length1 = _vala_array_length (attr_values);
                                                                      _tmp20_ = i;
                                                                      _tmp21_ = _tmp19_[_tmp20_];
                                                                      _tmp15_ = g_strcmp0 (_tmp21_, "iradio") == 0;
                                                               }
                                                               _tmp22_ = _tmp15_;
                                                               _tmp11_ = _tmp22_;
                                                        } else {
                                                               _tmp11_ = FALSE;
                                                        }
                                                        _tmp23_ = _tmp11_;
                                                        if (_tmp23_) {
                                                               gchar** _tmp24_;
                                                               gint _tmp24__length1;
                                                               gint _tmp25_;
                                                               const gchar* _tmp26_;
                                                               gchar* _tmp27_;
                                                               _tmp24_ = attr_values;
                                                               _tmp24__length1 = _vala_array_length (attr_values);
                                                               _tmp25_ = i;
                                                               _tmp26_ = _tmp24_[_tmp25_];
                                                               _tmp27_ = g_strdup (_tmp26_);
                                                               _g_free0 (accepted_element_name);
                                                               accepted_element_name = _tmp27_;
                                                        }
                                                 }
                                          }
                                   }
                                   _tmp28_ = accepted_element_name;
                                   if (_tmp28_ == NULL) {
                                          _g_free0 (accepted_element_name);
                                          return;
                                   }
                                   self->priv->processing_track = TRUE;
                                   _tmp29_ = unity_music_lens_track_new ();
                                   _g_object_unref0 (self->priv->current_track);
                                   self->priv->current_track = _tmp29_;
                                   _tmp31_ = accepted_element_name;
                                   if (g_strcmp0 (_tmp31_, "song") == 0) {
                                          _tmp30_ = UNITY_MUSIC_LENS_TRACK_TYPE_SONG;
                                   } else {
                                          _tmp30_ = UNITY_MUSIC_LENS_TRACK_TYPE_RADIO;
                                   }
                                   _tmp32_ = self->priv->current_track;
                                   _tmp33_ = _tmp30_;
                                   unity_music_lens_track_set_type_track (_tmp32_, _tmp33_);
                                   _g_free0 (accepted_element_name);
                                   break;
                            }
                     }
              }
       } else {
              const gchar* _tmp34_;
              const gchar* _tmp35_;
              GQuark _tmp37_ = 0U;
              static GQuark _tmp36_label0 = 0;
              static GQuark _tmp36_label1 = 0;
              static GQuark _tmp36_label2 = 0;
              static GQuark _tmp36_label3 = 0;
              static GQuark _tmp36_label4 = 0;
              static GQuark _tmp36_label5 = 0;
              static GQuark _tmp36_label6 = 0;
              static GQuark _tmp36_label7 = 0;
              static GQuark _tmp36_label8 = 0;
              static GQuark _tmp36_label9 = 0;
              _tmp34_ = name;
              _tmp35_ = _tmp34_;
              _tmp37_ = (NULL == _tmp35_) ? 0 : g_quark_from_string (_tmp35_);
              if (_tmp37_ == ((0 != _tmp36_label0) ? _tmp36_label0 : (_tmp36_label0 = g_quark_from_static_string ("location")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_URI;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label1) ? _tmp36_label1 : (_tmp36_label1 = g_quark_from_static_string ("title")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_TITLE;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label2) ? _tmp36_label2 : (_tmp36_label2 = g_quark_from_static_string ("artist")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_ARTIST;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label3) ? _tmp36_label3 : (_tmp36_label3 = g_quark_from_static_string ("album")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_ALBUM;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label4) ? _tmp36_label4 : (_tmp36_label4 = g_quark_from_static_string ("genre")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_GENRE;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label5) ? _tmp36_label5 : (_tmp36_label5 = g_quark_from_static_string ("track-number")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_TRACK_NUMBER;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label6) ? _tmp36_label6 : (_tmp36_label6 = g_quark_from_static_string ("play-count")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_PLAY_COUNT;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label7) ? _tmp36_label7 : (_tmp36_label7 = g_quark_from_static_string ("date")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_YEAR;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label8) ? _tmp36_label8 : (_tmp36_label8 = g_quark_from_static_string ("media-type")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_MIMETYPE;
                                   break;
                            }
                     }
              } else if (_tmp37_ == ((0 != _tmp36_label9) ? _tmp36_label9 : (_tmp36_label9 = g_quark_from_static_string ("album-artist")))) {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = (gint) UNITY_MUSIC_LENS_COLUMNS_ALBUM_ARTIST;
                                   break;
                            }
                     }
              } else {
                     switch (0) {
                            default:
                            {
                                   self->priv->current_data = -1;
                                   break;
                            }
                     }
              }
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensTrack * unity_music_lens_track_construct ( GType  object_type)

Definition at line 136 of file track.c.

                                                                          {
       UnityMusicLensTrack * self = NULL;
       self = (UnityMusicLensTrack*) g_object_new (object_type, NULL);
       return self;
}

Here is the caller graph for this function:

UnityMusicLensTrack * unity_music_lens_track_new ( void  )

Definition at line 143 of file track.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_lens_track_set_album ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 287 of file track.c.

                                                                                      {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_album);
       self->priv->_album = _tmp1_;
       g_object_notify ((GObject *) self, "album");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_album_artist ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 309 of file track.c.

                                                                                             {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_album_artist);
       self->priv->_album_artist = _tmp1_;
       g_object_notify ((GObject *) self, "album-artist");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_artist ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 221 of file track.c.

                                                                                       {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_artist);
       self->priv->_artist = _tmp1_;
       g_object_notify ((GObject *) self, "artist");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_genre ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 331 of file track.c.

                                                                                      {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_genre);
       self->priv->_genre = _tmp1_;
       g_object_notify ((GObject *) self, "genre");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_mime_type ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 243 of file track.c.

                                                                                          {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_mime_type);
       self->priv->_mime_type = _tmp1_;
       g_object_notify ((GObject *) self, "mime-type");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_play_count ( UnityMusicLensTrack *  self,
gint  value 
)

Definition at line 391 of file track.c.

                                                                                   {
       gint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_play_count = _tmp0_;
       g_object_notify ((GObject *) self, "play-count");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_title ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 177 of file track.c.

                                                                                      {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_title);
       self->priv->_title = _tmp1_;
       g_object_notify ((GObject *) self, "title");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_track_number ( UnityMusicLensTrack *  self,
gint  value 
)

Definition at line 353 of file track.c.

                                                                                     {
       gint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_track_number = _tmp0_;
       g_object_notify ((GObject *) self, "track-number");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_type_track ( UnityMusicLensTrack *  self,
UnityMusicLensTrackType  value 
)

Definition at line 158 of file track.c.

                                                                                                      {
       UnityMusicLensTrackType _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_type_track = _tmp0_;
       g_object_notify ((GObject *) self, "type-track");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_uri ( UnityMusicLensTrack *  self,
const gchar *  value 
)

Definition at line 199 of file track.c.

                                                                                    {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_uri);
       self->priv->_uri = _tmp1_;
       g_object_notify ((GObject *) self, "uri");
}

Here is the caller graph for this function:

void unity_music_lens_track_set_year ( UnityMusicLensTrack *  self,
gint  value 
)

Definition at line 372 of file track.c.

                                                                             {
       gint _tmp0_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       self->priv->_year = _tmp0_;
       g_object_notify ((GObject *) self, "year");
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 222 of file rhythmbox-collection.c.

Definition at line 223 of file rhythmbox-collection.c.

Definition at line 326 of file rhythmbox-collection.c.