Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Enumerations | Functions | Variables
rhythmbox-scope.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <gio/gio.h>
#include <unity.h>
#include <stdlib.h>
#include <string.h>
#include <glib/gi18n-lib.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensSimpleScope
struct  _UnityMusicLensSimpleScopeClass
struct  _UnityMusicLensRhythmboxScope
struct  _UnityMusicLensRhythmboxScopeClass
struct  _UnityMusicLensRhythmboxScopePrivate
struct  _Block1Data
struct  _UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData
struct  _UnityMusicLensRhythmboxScopePerformSearchData

Defines

#define UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE   (unity_music_lens_simple_scope_get_type ())
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScope))
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))
#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))
#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))
#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_RHYTHMBOX_SCOPE   (unity_music_lens_rhythmbox_scope_get_type ())
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScope))
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))
#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))
#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))
#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 _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_slist_free0(var)   ((var == NULL) ? NULL : (var = (g_slist_free (var), NULL)))
#define __g_list_free__g_object_unref0_0(var)   ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define UNITY_MUSIC_LENS_TYPE_CATEGORY   (unity_music_lens_category_get_type ())
#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopePrivate))

Typedefs

typedef struct _UnityMusicLensSimpleScope
typedef struct _UnityMusicLensSimpleScopeClass
typedef struct _UnityMusicLensSimpleScopePrivate
typedef struct _UnityMusicLensFilterParser
typedef struct _UnityMusicLensFilterParserClass
typedef struct _UnityMusicLensRhythmboxScope
typedef struct _UnityMusicLensRhythmboxScopeClass
typedef struct _UnityMusicLensRhythmboxScopePrivate
typedef struct _UnityMusicLensRhythmboxCollection
typedef struct _UnityMusicLensRhythmboxCollectionClass
typedef struct _Block1Data
typedef struct _UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData
typedef struct _UnityMusicLensRhythmboxScopePerformSearchData

Enumerations

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_simple_scope_get_type (void)
UnityMusicLensRhythmboxScope * unity_music_lens_rhythmbox_scope_new (void)
UnityMusicLensRhythmboxScope * unity_music_lens_rhythmbox_scope_construct (GType object_type)
UnityMusicLensSimpleScope * unity_music_lens_simple_scope_construct (GType object_type)
void unity_music_lens_simple_scope_set_scope (UnityMusicLensSimpleScope *self, UnityScope *value)
UnityScope * unity_music_lens_simple_scope_get_scope (UnityMusicLensSimpleScope *self)
UnityActivationResponse * unity_music_lens_rhythmbox_scope_activate (UnityMusicLensRhythmboxScope *self, const gchar *uri)
static UnityActivationResponse * _unity_music_lens_rhythmbox_scope_activate_unity_scope_activate_uri (UnityScope *_sender, const gchar *uri, gpointer self)
void unity_music_lens_simple_scope_initialize (UnityMusicLensSimpleScope *self)
UnityMusicLensRhythmboxCollection * unity_music_lens_rhythmbox_collection_new (void)
UnityMusicLensRhythmboxCollection * unity_music_lens_rhythmbox_collection_construct (GType object_type)
static void unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_data_free (gpointer _data)
static gchar ** _vala_array_dup1 (gchar **self, int length)
static void unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue (UnityMusicLensRhythmboxScope *self, gchar **main_exec, int main_exec_length1, GAsyncReadyCallback _callback_, gpointer _user_data_)
static void unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_finish (UnityMusicLensRhythmboxScope *self, GAsyncResult *_res_)
static gboolean unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_co (UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData *_data_)
static gchar ** _vala_array_dup2 (gchar **self, int length)
static Block1Data * block1_data_ref (Block1Data *_data1_)
static void block1_data_unref (Block1Data *_data1_)
static void __lambda11_ (Block1Data *_data1_)
static gboolean _unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_co_gsource_func (gpointer self)
static gpointer ___lambda11__gthread_func (gpointer self)
static void _vala_array_add4 (gchar ***array, int *length, int *size, gchar *value)
 Tells rhythmbox to play the selected uri(s)
GSList * unity_music_lens_rhythmbox_collection_get_album_tracks (UnityMusicLensRhythmboxCollection *self, const gchar *album_key)
static void _vala_array_add5 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add6 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add7 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add8 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add9 (gchar ***array, int *length, int *size, gchar *value)
static void _g_object_unref0_ (gpointer var)
static void _g_list_free__g_object_unref0_ (GList *self)
static void unity_music_lens_rhythmbox_scope_real_perform_search_data_free (gpointer _data)
static void unity_music_lens_rhythmbox_scope_real_perform_search (UnityMusicLensSimpleScope *base, UnityLensSearch *search, UnitySearchType search_type, GList *filters, gint max_results, GCancellable *cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_)
static gboolean unity_music_lens_rhythmbox_scope_real_perform_search_co (UnityMusicLensRhythmboxScopePerformSearchData *_data_)
GType unity_music_lens_category_get_type (void)
static gpointer _g_object_ref0 (gpointer self)
static glong string_strnlen (gchar *str, glong maxlen)
static gchar * string_substring (const gchar *self, glong offset, glong len)
static void unity_music_lens_rhythmbox_scope_real_perform_search_finish (UnityMusicLensSimpleScope *base, GAsyncResult *_res_)
static void _____lambda12_ (UnityMusicLensRhythmboxScope *self)
static void ______lambda12__g_file_monitor_changed (GFileMonitor *_sender, GFile *file, GFile *other_file, GFileMonitorEvent event_type, gpointer self)
static gint unity_music_lens_rhythmbox_scope_real_get_num_results_without_search (UnityMusicLensSimpleScope *base)
static gint unity_music_lens_rhythmbox_scope_real_get_num_results_global_search (UnityMusicLensSimpleScope *base)
static gint unity_music_lens_rhythmbox_scope_real_get_num_results_lens_search (UnityMusicLensSimpleScope *base)
static void unity_music_lens_rhythmbox_scope_class_init (UnityMusicLensRhythmboxScopeClass *klass)
static void unity_music_lens_rhythmbox_scope_instance_init (UnityMusicLensRhythmboxScope *self)
static void unity_music_lens_rhythmbox_scope_finalize (GObject *obj)
GType unity_music_lens_rhythmbox_scope_get_type (void)
static void _vala_unity_music_lens_rhythmbox_scope_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
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)

Variables

static gpointer unity_music_lens_rhythmbox_scope_parent_class = NULL

Class Documentation

struct _UnityMusicLensSimpleScope

Definition at line 91 of file banshee-scope.c.

Class Members
GObject parent_instance
UnityMusicLensSimpleScopePrivate * priv
struct _UnityMusicLensRhythmboxScope

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

Class Members
UnityMusicLensSimpleScope parent_instance
UnityMusicLensRhythmboxScopePrivate * priv
struct _UnityMusicLensRhythmboxScopeClass

Definition at line 103 of file rhythmbox-scope.c.

Class Members
UnityMusicLensSimpleScopeClass parent_class
struct _UnityMusicLensRhythmboxScopePrivate

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

Class Members
UnityMusicLensRhythmboxCollection * collection
gboolean db_ready
GFileMonitor * rb_xml_monitor
struct _Block1Data

Definition at line 113 of file rhythmbox-scope.c.

Class Members
gpointer _async_data_
int _ref_count_
gchar ** main_exec
gint main_exec_length1
UnityMusicLensRhythmboxScope * self
struct _UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData

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

Class Members
GSimpleAsyncResult * _async_result
Block1Data * _data1_
GError * _inner_error_
GAsyncResult * _res_
GObject * _source_object_
int _state_
gchar ** _tmp0_
gint _tmp0__length1
gchar ** _tmp1_
gint _tmp1__length1
gchar ** main_exec
gint main_exec_length1
UnityMusicLensRhythmboxScope * self
struct _UnityMusicLensRhythmboxScopePerformSearchData

Definition at line 145 of file rhythmbox-scope.c.

Class Members
GSimpleAsyncResult * _async_result
GError * _inner_error_
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnitySearchType _tmp0_
UnityMusicLensRhythmboxCollection * _tmp10_
const gchar * _tmp11_
GFileMonitor * _tmp12_
const gchar * _tmp13_
GFile * _tmp14_
GFile * _tmp15_
GFileMonitor * _tmp16_
GFileMonitor * _tmp17_
GFileMonitor * _tmp18_
GFileMonitor * _tmp19_
UnityLensSearch * _tmp1_
GError * _tmp20_
const gchar * _tmp21_
UnityMusicLensRhythmboxCollection * _tmp22_
UnityLensSearch * _tmp23_
UnitySearchType _tmp24_
GList * _tmp25_
gint _tmp26_
gint _tmp27_
gboolean _tmp2_
gboolean _tmp3_
const gchar * _tmp4_
gchar * _tmp5_
UnityMusicLensRhythmboxCollection * _tmp6_
const gchar * _tmp7_
const gchar * _tmp8_
gchar * _tmp9_
GCancellable * cancellable
gint category_override
GError * err
GList * filters
gint max_results
UnityLensSearch * search
UnitySearchType search_type
UnityMusicLensRhythmboxScope * self
gchar * tdb_path
GFile * xml_file
gchar * xml_path

Define Documentation

#define __g_list_free__g_object_unref0_0 (   var)    ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))

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

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

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

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

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

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

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

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

Definition at line 78 of file rhythmbox-scope.c.

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

Definition at line 44 of file rhythmbox-scope.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 45 of file rhythmbox-scope.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 48 of file rhythmbox-scope.c.

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

Definition at line 46 of file rhythmbox-scope.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 47 of file rhythmbox-scope.c.

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

Definition at line 67 of file rhythmbox-scope.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 68 of file rhythmbox-scope.c.

#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))

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

#define UNITY_MUSIC_LENS_IS_RHYTHMBOX_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE))

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

#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))

Definition at line 35 of file rhythmbox-scope.c.

#define UNITY_MUSIC_LENS_IS_SIMPLE_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE))

Definition at line 36 of file rhythmbox-scope.c.

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

Definition at line 65 of file rhythmbox-scope.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 66 of file rhythmbox-scope.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 69 of file rhythmbox-scope.c.

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScope))

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

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))

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

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopeClass))

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

#define UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_RHYTHMBOX_SCOPE, UnityMusicLensRhythmboxScopePrivate))
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScope))

Definition at line 33 of file rhythmbox-scope.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))

Definition at line 34 of file rhythmbox-scope.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopeClass))

Definition at line 37 of file rhythmbox-scope.c.

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

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

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

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

Definition at line 32 of file rhythmbox-scope.c.


Typedef Documentation

typedef struct _Block1Data

Definition at line 74 of file rhythmbox-scope.c.

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

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

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

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

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

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

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

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

Definition at line 62 of file rhythmbox-scope.c.

Definition at line 39 of file rhythmbox-scope.c.

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

Definition at line 41 of file rhythmbox-scope.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 137 of file rhythmbox-scope.c.


Function Documentation

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

Definition at line 903 of file rhythmbox-scope.c.

                                                                                                                                                        {
       _____lambda12_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _____lambda12_ ( UnityMusicLensRhythmboxScope *  self) [static]

Definition at line 898 of file rhythmbox-scope.c.

                                                                {
       self->priv->db_ready = FALSE;
}

Here is the caller graph for this function:

static gpointer ___lambda11__gthread_func ( gpointer  self) [static]

Definition at line 454 of file rhythmbox-scope.c.

                                                          {
       __lambda11_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda11_ ( Block1Data *  _data1_) [static]

Definition at line 401 of file rhythmbox-scope.c.

                                              {
       UnityMusicLensRhythmboxScope * self;
       GError * _inner_error_ = NULL;
       self = _data1_->self;
       {
              gchar** _tmp0_;
              gint _tmp0__length1;
              g_spawn_command_line_sync ("rhythmbox-client --pause", NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch5_g_error;
              }
              g_spawn_command_line_sync ("rhythmbox-client --clear-queue", NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch5_g_error;
              }
              _tmp0_ = _data1_->main_exec;
              _tmp0__length1 = _data1_->main_exec_length1;
              g_spawn_sync (NULL, _tmp0_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch5_g_error;
              }
              g_spawn_command_line_sync ("rhythmbox-client --next", NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch5_g_error;
              }
              g_spawn_command_line_sync ("rhythmbox-client --play", NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     goto __catch5_g_error;
              }
       }
       goto __finally5;
       __catch5_g_error:
       {
              GError* err = NULL;
              GError* _tmp1_;
              const gchar* _tmp2_;
              err = _inner_error_;
              _inner_error_ = NULL;
              _tmp1_ = err;
              _tmp2_ = _tmp1_->message;
              g_warning ("rhythmbox-scope.vala:64: %s", _tmp2_);
              _g_error_free0 (err);
       }
       __finally5:
       if (_inner_error_ != 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_idle_add_full (G_PRIORITY_DEFAULT_IDLE, _unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_co_gsource_func, _data1_->_async_data_, NULL);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

Definition at line 841 of file rhythmbox-scope.c.

                                                         {
       g_list_foreach (self, (GFunc) _g_object_unref0_, NULL);
       g_list_free (self);
}

Here is the call graph for this function:

static gpointer _g_object_ref0 ( gpointer  self) [static]

Definition at line 320 of file rhythmbox-scope.c.

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

Here is the caller graph for this function:

static void _g_object_unref0_ ( gpointer  var) [static]

Definition at line 836 of file rhythmbox-scope.c.

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

Here is the caller graph for this function:

static UnityActivationResponse* _unity_music_lens_rhythmbox_scope_activate_unity_scope_activate_uri ( UnityScope *  _sender,
const gchar *  uri,
gpointer  self 
) [static]

Here is the caller graph for this function:

Definition at line 394 of file rhythmbox-scope.c.

                                                                                                               {
       gboolean result;
       result = unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_co (self);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void _vala_array_add4 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Tells rhythmbox to play the selected uri(s)

Definition at line 506 of file rhythmbox-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add5 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 620 of file rhythmbox-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add6 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 630 of file rhythmbox-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add7 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 640 of file rhythmbox-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add8 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 650 of file rhythmbox-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add9 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 660 of file rhythmbox-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

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

Definition at line 1105 of file rhythmbox-scope.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 gchar ** _vala_array_dup1 ( gchar **  self,
int  length 
) [static]

Definition at line 325 of file rhythmbox-scope.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

Here is the caller graph for this function:

static gchar ** _vala_array_dup2 ( gchar **  self,
int  length 
) [static]

Definition at line 366 of file rhythmbox-scope.c.

                                                           {
       gchar** result;
       int i;
       result = g_new0 (gchar*, length + 1);
       for (i = 0; i < length; i++) {
              gchar* _tmp0_;
              _tmp0_ = g_strdup (self[i]);
              result[i] = _tmp0_;
       }
       return result;
}

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 1117 of file rhythmbox-scope.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 void _vala_unity_music_lens_rhythmbox_scope_get_property ( GObject *  object,
guint  property_id,
GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 1085 of file rhythmbox-scope.c.

                                                                                                                                          {
       UnityMusicLensRhythmboxScope * self;
       self = UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_WITHOUT_SEARCH:
              g_value_set_int (value, unity_music_lens_simple_scope_get_num_results_without_search ((UnityMusicLensSimpleScope*) self));
              break;
              case UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_GLOBAL_SEARCH:
              g_value_set_int (value, unity_music_lens_simple_scope_get_num_results_global_search ((UnityMusicLensSimpleScope*) self));
              break;
              case UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_LENS_SEARCH:
              g_value_set_int (value, unity_music_lens_simple_scope_get_num_results_lens_search ((UnityMusicLensSimpleScope*) self));
              break;
              default:
              G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
              break;
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static Block1Data * block1_data_ref ( Block1Data *  _data1_) [static]

Definition at line 379 of file rhythmbox-scope.c.

                                                         {
       g_atomic_int_inc (&_data1_->_ref_count_);
       return _data1_;
}
static void block1_data_unref ( Block1Data *  _data1_) [static]

Definition at line 385 of file rhythmbox-scope.c.

                                                    {
       if (g_atomic_int_dec_and_test (&_data1_->_ref_count_)) {
              _g_object_unref0 (_data1_->self);
              _data1_->main_exec = (_vala_array_free (_data1_->main_exec, _data1_->main_exec_length1, (GDestroyNotify) g_free), NULL);
              g_slice_free (Block1Data, _data1_);
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:

static glong string_strnlen ( gchar *  str,
glong  maxlen 
) [static]

Definition at line 516 of file rhythmbox-scope.c.

                                                       {
       glong result = 0L;
       gchar* _tmp0_;
       glong _tmp1_;
       gchar* _tmp2_ = NULL;
       gchar* end;
       gchar* _tmp3_;
       _tmp0_ = str;
       _tmp1_ = maxlen;
       _tmp2_ = memchr (_tmp0_, 0, (gsize) _tmp1_);
       end = _tmp2_;
       _tmp3_ = end;
       if (_tmp3_ == NULL) {
              glong _tmp4_;
              _tmp4_ = maxlen;
              result = _tmp4_;
              return result;
       } else {
              gchar* _tmp5_;
              gchar* _tmp6_;
              _tmp5_ = end;
              _tmp6_ = str;
              result = (glong) (_tmp5_ - _tmp6_);
              return result;
       }
}

Here is the caller graph for this function:

static gchar* string_substring ( const gchar *  self,
glong  offset,
glong  len 
) [static]

Definition at line 544 of file rhythmbox-scope.c.

                                                                            {
       gchar* result = NULL;
       glong string_length = 0L;
       gboolean _tmp0_ = FALSE;
       glong _tmp1_;
       gboolean _tmp3_;
       glong _tmp9_;
       glong _tmp15_;
       glong _tmp18_;
       glong _tmp19_;
       glong _tmp20_;
       glong _tmp21_;
       glong _tmp22_;
       gchar* _tmp23_ = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp1_ = offset;
       if (_tmp1_ >= ((glong) 0)) {
              glong _tmp2_;
              _tmp2_ = len;
              _tmp0_ = _tmp2_ >= ((glong) 0);
       } else {
              _tmp0_ = FALSE;
       }
       _tmp3_ = _tmp0_;
       if (_tmp3_) {
              glong _tmp4_;
              glong _tmp5_;
              glong _tmp6_ = 0L;
              _tmp4_ = offset;
              _tmp5_ = len;
              _tmp6_ = string_strnlen ((gchar*) self, _tmp4_ + _tmp5_);
              string_length = _tmp6_;
       } else {
              gint _tmp7_;
              gint _tmp8_;
              _tmp7_ = strlen (self);
              _tmp8_ = _tmp7_;
              string_length = (glong) _tmp8_;
       }
       _tmp9_ = offset;
       if (_tmp9_ < ((glong) 0)) {
              glong _tmp10_;
              glong _tmp11_;
              glong _tmp12_;
              _tmp10_ = string_length;
              _tmp11_ = offset;
              offset = _tmp10_ + _tmp11_;
              _tmp12_ = offset;
              g_return_val_if_fail (_tmp12_ >= ((glong) 0), NULL);
       } else {
              glong _tmp13_;
              glong _tmp14_;
              _tmp13_ = offset;
              _tmp14_ = string_length;
              g_return_val_if_fail (_tmp13_ <= _tmp14_, NULL);
       }
       _tmp15_ = len;
       if (_tmp15_ < ((glong) 0)) {
              glong _tmp16_;
              glong _tmp17_;
              _tmp16_ = string_length;
              _tmp17_ = offset;
              len = _tmp16_ - _tmp17_;
       }
       _tmp18_ = offset;
       _tmp19_ = len;
       _tmp20_ = string_length;
       g_return_val_if_fail ((_tmp18_ + _tmp19_) <= _tmp20_, NULL);
       _tmp21_ = offset;
       _tmp22_ = len;
       _tmp23_ = g_strndup (((gchar*) self) + _tmp21_, (gsize) _tmp22_);
       result = _tmp23_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 239 of file rhythmbox-scope.c.

                                                                                                                                                           {
       UnityActivationResponse* result;
       result = unity_music_lens_rhythmbox_scope_activate (self, uri);
       return result;
}

Here is the call 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:

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:

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:

UnityActivationResponse * unity_music_lens_rhythmbox_scope_activate ( UnityMusicLensRhythmboxScope *  self,
const gchar *  uri 
)

Definition at line 670 of file rhythmbox-scope.c.

                                                                                                                          {
       UnityActivationResponse* result = NULL;
       gchar* _tmp0_;
       gchar** _tmp1_ = NULL;
       gchar** exec;
       gint exec_length1;
       gint _exec_size_;
       GError * _inner_error_ = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (uri != NULL, NULL);
       _tmp0_ = g_strdup ("rhythmbox-client");
       _tmp1_ = g_new0 (gchar*, 1 + 1);
       _tmp1_[0] = _tmp0_;
       exec = _tmp1_;
       exec_length1 = 1;
       _exec_size_ = exec_length1;
       {
              const gchar* _tmp2_;
              gchar* _tmp3_ = NULL;
              gchar* _tmp4_;
              gboolean _tmp5_;
              gchar** _tmp25_;
              gint _tmp25__length1;
              gchar** _tmp26_;
              gint _tmp26__length1;
              gchar* _tmp27_ = NULL;
              gchar* _tmp28_;
              gchar** _tmp29_;
              gint _tmp29__length1;
              UnityActivationResponse* _tmp30_;
              UnityActivationResponse* _tmp31_;
              _tmp2_ = uri;
              _tmp3_ = g_uri_parse_scheme (_tmp2_);
              _tmp4_ = _tmp3_;
              _tmp5_ = g_strcmp0 (_tmp4_, "album") == 0;
              _g_free0 (_tmp4_);
              if (_tmp5_) {
                     gchar** _tmp6_;
                     gint _tmp6__length1;
                     gchar* _tmp7_;
                     const gchar* _tmp8_;
                     gchar* _tmp9_ = NULL;
                     gchar* album_key;
                     UnityMusicLensRhythmboxCollection* _tmp10_;
                     const gchar* _tmp11_;
                     GSList* _tmp12_ = NULL;
                     gchar** _tmp16_;
                     gint _tmp16__length1;
                     gchar** _tmp17_;
                     gint _tmp17__length1;
                     UnityActivationResponse* _tmp18_;
                     UnityActivationResponse* _tmp19_;
                     _tmp6_ = exec;
                     _tmp6__length1 = exec_length1;
                     _tmp7_ = g_strdup ("--enqueue");
                     _vala_array_add4 (&exec, &exec_length1, &_exec_size_, _tmp7_);
                     _tmp8_ = uri;
                     _tmp9_ = string_substring (_tmp8_, (glong) 8, (glong) (-1));
                     album_key = _tmp9_;
                     _tmp10_ = self->priv->collection;
                     _tmp11_ = album_key;
                     _tmp12_ = unity_music_lens_rhythmbox_collection_get_album_tracks (_tmp10_, _tmp11_);
                     {
                            GSList* track_uri_collection = NULL;
                            GSList* track_uri_it = NULL;
                            track_uri_collection = _tmp12_;
                            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;
                                   {
                                          gchar** _tmp13_;
                                          gint _tmp13__length1;
                                          const gchar* _tmp14_;
                                          gchar* _tmp15_;
                                          _tmp13_ = exec;
                                          _tmp13__length1 = exec_length1;
                                          _tmp14_ = track_uri;
                                          _tmp15_ = g_strdup (_tmp14_);
                                          _vala_array_add5 (&exec, &exec_length1, &_exec_size_, _tmp15_);
                                   }
                            }
                            _g_slist_free0 (track_uri_collection);
                     }
                     _tmp16_ = exec;
                     _tmp16__length1 = exec_length1;
                     _vala_array_add6 (&exec, &exec_length1, &_exec_size_, NULL);
                     _tmp17_ = exec;
                     _tmp17__length1 = exec_length1;
                     unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue (self, _tmp17_, _tmp17__length1, NULL, NULL);
                     _tmp18_ = unity_activation_response_new (UNITY_HANDLED_TYPE_HIDE_DASH, "");
                     _tmp19_ = g_object_ref_sink (_tmp18_);
                     result = _tmp19_;
                     _g_free0 (album_key);
                     exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
                     return result;
              } else {
                     gchar** _tmp20_;
                     gint _tmp20__length1;
                     gchar* _tmp21_;
                     gchar** _tmp22_;
                     gint _tmp22__length1;
                     const gchar* _tmp23_;
                     gchar* _tmp24_;
                     _tmp20_ = exec;
                     _tmp20__length1 = exec_length1;
                     _tmp21_ = g_strdup ("--play-uri");
                     _vala_array_add7 (&exec, &exec_length1, &_exec_size_, _tmp21_);
                     _tmp22_ = exec;
                     _tmp22__length1 = exec_length1;
                     _tmp23_ = uri;
                     _tmp24_ = g_strdup (_tmp23_);
                     _vala_array_add8 (&exec, &exec_length1, &_exec_size_, _tmp24_);
              }
              _tmp25_ = exec;
              _tmp25__length1 = exec_length1;
              _vala_array_add9 (&exec, &exec_length1, &_exec_size_, NULL);
              _tmp26_ = exec;
              _tmp26__length1 = exec_length1;
              _tmp27_ = g_strjoinv (" ", _tmp26_);
              _tmp28_ = _tmp27_;
              g_debug ("rhythmbox-scope.vala:100: Spawning rb '%s'", _tmp28_);
              _g_free0 (_tmp28_);
              _tmp29_ = exec;
              _tmp29__length1 = exec_length1;
              g_spawn_async (NULL, _tmp29_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_SPAWN_ERROR) {
                            goto __catch6_g_spawn_error;
                     }
                     exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
                     g_critical ("file %s: line %d: unexpected 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;
              }
              _tmp30_ = unity_activation_response_new (UNITY_HANDLED_TYPE_HIDE_DASH, "");
              _tmp31_ = g_object_ref_sink (_tmp30_);
              result = _tmp31_;
              exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
              return result;
       }
       goto __finally6;
       __catch6_g_spawn_error:
       {
              GError* _error_ = NULL;
              const gchar* _tmp32_;
              UnityActivationResponse* _tmp33_;
              UnityActivationResponse* _tmp34_;
              _error_ = _inner_error_;
              _inner_error_ = NULL;
              _tmp32_ = uri;
              g_warning ("rhythmbox-scope.vala:110: Failed to launch URI %s", _tmp32_);
              _tmp33_ = unity_activation_response_new (UNITY_HANDLED_TYPE_NOT_HANDLED, "");
              _tmp34_ = g_object_ref_sink (_tmp33_);
              result = _tmp34_;
              _g_error_free0 (_error_);
              exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
              return result;
       }
       __finally6:
       exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), 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 NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_class_init ( UnityMusicLensRhythmboxScopeClass *  klass) [static]

Definition at line 1043 of file rhythmbox-scope.c.

                                                                                                    {
       unity_music_lens_rhythmbox_scope_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensRhythmboxScopePrivate));
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->perform_search = unity_music_lens_rhythmbox_scope_real_perform_search;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->perform_search_finish = unity_music_lens_rhythmbox_scope_real_perform_search_finish;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->get_num_results_without_search = unity_music_lens_rhythmbox_scope_real_get_num_results_without_search;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->get_num_results_global_search = unity_music_lens_rhythmbox_scope_real_get_num_results_global_search;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->get_num_results_lens_search = unity_music_lens_rhythmbox_scope_real_get_num_results_lens_search;
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_music_lens_rhythmbox_scope_get_property;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_rhythmbox_scope_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_WITHOUT_SEARCH, g_param_spec_int ("num-results-without-search", "num-results-without-search", "num-results-without-search", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_GLOBAL_SEARCH, g_param_spec_int ("num-results-global-search", "num-results-global-search", "num-results-global-search", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_LENS_SEARCH, g_param_spec_int ("num-results-lens-search", "num-results-lens-search", "num-results-lens-search", G_MININT, G_MAXINT, 0, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensRhythmboxScope* unity_music_lens_rhythmbox_scope_construct ( GType  object_type)

Definition at line 262 of file rhythmbox-scope.c.

                                                                                             {
       UnityMusicLensRhythmboxScope * self = NULL;
       UnityScope* _tmp0_;
       UnityScope* _tmp1_;
       UnityScope* _tmp2_;
       UnityScope* _tmp3_;
       UnityScope* _tmp4_;
       UnityScope* _tmp5_;
       UnityScope* _tmp6_;
       UnityScope* _tmp7_;
       UnityOptionsFilter* _tmp8_;
       UnityOptionsFilter* _tmp9_;
       const gchar* _tmp10_ = NULL;
       UnityFilterOption* _tmp11_ = NULL;
       UnityFilterOption* _tmp12_;
       UnityMusicLensRhythmboxCollection* _tmp13_;
       self = (UnityMusicLensRhythmboxScope*) unity_music_lens_simple_scope_construct (object_type);
       _tmp0_ = unity_scope_new ("/com/canonical/unity/scope/rhythmbox");
       _tmp1_ = _tmp0_;
       unity_music_lens_simple_scope_set_scope ((UnityMusicLensSimpleScope*) self, _tmp1_);
       _g_object_unref0 (_tmp1_);
       _tmp2_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp3_ = _tmp2_;
       unity_scope_set_search_in_global (_tmp3_, TRUE);
       _tmp4_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp5_ = _tmp4_;
       g_signal_connect_object (_tmp5_, "activate-uri", (GCallback) _unity_music_lens_rhythmbox_scope_activate_unity_scope_activate_uri, self, 0);
       _tmp6_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp7_ = _tmp6_;
       _tmp8_ = unity_scope_get_sources (_tmp7_);
       _tmp9_ = _tmp8_;
       _tmp10_ = _ ("Rhythmbox");
       _tmp11_ = unity_options_filter_add_option (_tmp9_, "rhythmbox", _tmp10_, NULL);
       _tmp12_ = _tmp11_;
       _g_object_unref0 (_tmp12_);
       unity_music_lens_simple_scope_initialize (UNITY_MUSIC_LENS_SIMPLE_SCOPE (self));
       _tmp13_ = unity_music_lens_rhythmbox_collection_new ();
       _g_object_unref0 (self->priv->collection);
       self->priv->collection = _tmp13_;
       self->priv->db_ready = FALSE;
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_finalize ( GObject *  obj) [static]

Definition at line 1064 of file rhythmbox-scope.c.

                                                                     {
       UnityMusicLensRhythmboxScope * self;
       self = UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE (obj);
       _g_object_unref0 (self->priv->collection);
       _g_object_unref0 (self->priv->rb_xml_monitor);
       G_OBJECT_CLASS (unity_music_lens_rhythmbox_scope_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

Definition at line 1073 of file rhythmbox-scope.c.

                                                       {
       static volatile gsize unity_music_lens_rhythmbox_scope_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_lens_rhythmbox_scope_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensRhythmboxScopeClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_rhythmbox_scope_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensRhythmboxScope), 0, (GInstanceInitFunc) unity_music_lens_rhythmbox_scope_instance_init, NULL };
              GType unity_music_lens_rhythmbox_scope_type_id;
              unity_music_lens_rhythmbox_scope_type_id = g_type_register_static (UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, "UnityMusicLensRhythmboxScope", &g_define_type_info, 0);
              g_once_init_leave (&unity_music_lens_rhythmbox_scope_type_id__volatile, unity_music_lens_rhythmbox_scope_type_id);
       }
       return unity_music_lens_rhythmbox_scope_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_lens_rhythmbox_scope_instance_init ( UnityMusicLensRhythmboxScope *  self) [static]

Definition at line 1059 of file rhythmbox-scope.c.

Here is the caller graph for this function:

UnityMusicLensRhythmboxScope* unity_music_lens_rhythmbox_scope_new ( void  )

Definition at line 306 of file rhythmbox-scope.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue ( UnityMusicLensRhythmboxScope *  self,
gchar **  main_exec,
int  main_exec_length1,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
) [static]

Definition at line 338 of file rhythmbox-scope.c.

                                                                                                                                                                                                               {
       UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData* _data_;
       UnityMusicLensRhythmboxScope* _tmp0_;
       gchar** _tmp1_;
       gint _tmp1__length1;
       gchar** _tmp2_;
       gint _tmp2__length1;
       _data_ = g_slice_new0 (UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = main_exec;
       _tmp1__length1 = main_exec_length1;
       _tmp2_ = (_tmp1_ != NULL) ? _vala_array_dup1 (_tmp1_, _tmp1__length1) : ((gpointer) _tmp1_);
       _tmp2__length1 = _tmp1__length1;
       _data_->main_exec = _tmp2_;
       _data_->main_exec_length1 = _tmp2__length1;
       unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_co ( UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData *  _data_) [static]

Definition at line 459 of file rhythmbox-scope.c.

                                                                                                                                                     {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_data1_ = g_slice_new0 (Block1Data);
       _data_->_data1_->_ref_count_ = 1;
       _data_->_data1_->self = g_object_ref (_data_->self);
       _data_->_tmp0_ = _data_->main_exec;
       _data_->_tmp0__length1 = _data_->main_exec_length1;
       _data_->_tmp1_ = (_data_->_tmp0_ != NULL) ? _vala_array_dup2 (_data_->_tmp0_, _data_->_tmp0__length1) : ((gpointer) _data_->_tmp0_);
       _data_->_tmp1__length1 = _data_->_tmp0__length1;
       _data_->_data1_->main_exec = _data_->_tmp1_;
       _data_->_data1_->main_exec_length1 = _data_->_tmp1__length1;
       _data_->_data1_->_async_data_ = _data_;
       g_thread_create (___lambda11__gthread_func, _data_->_data1_, FALSE, &_data_->_inner_error_);
       if (_data_->_inner_error_ != NULL) {
              block1_data_unref (_data_->_data1_);
              _data_->_data1_ = NULL;
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
              g_clear_error (&_data_->_inner_error_);
              return FALSE;
       }
       _data_->_state_ = 1;
       return FALSE;
       _state_1:
       ;
       block1_data_unref (_data_->_data1_);
       _data_->_data1_ = NULL;
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 311 of file rhythmbox-scope.c.

                                                                                                     {
       UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData* _data_;
       _data_ = _data;
       _data_->main_exec = (_vala_array_free (_data_->main_exec, _data_->main_exec_length1, (GDestroyNotify) g_free), NULL);
       _g_object_unref0 (_data_->self);
       g_slice_free (UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData, _data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_prepare_rhythmbox_play_queue_finish ( UnityMusicLensRhythmboxScope *  self,
GAsyncResult *  _res_ 
) [static]

Definition at line 360 of file rhythmbox-scope.c.

                                                                                                                                           {
       UnityMusicLensRhythmboxScopePrepareRhythmboxPlayQueueData* _data_;
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}
static gint unity_music_lens_rhythmbox_scope_real_get_num_results_global_search ( UnityMusicLensSimpleScope *  base) [static]

Definition at line 1025 of file rhythmbox-scope.c.

                                                                                                                  {
       gint result;
       UnityMusicLensRhythmboxScope* self;
       self = (UnityMusicLensRhythmboxScope*) base;
       result = 20;
       return result;
}

Here is the caller graph for this function:

static gint unity_music_lens_rhythmbox_scope_real_get_num_results_lens_search ( UnityMusicLensSimpleScope *  base) [static]

Definition at line 1034 of file rhythmbox-scope.c.

                                                                                                                {
       gint result;
       UnityMusicLensRhythmboxScope* self;
       self = (UnityMusicLensRhythmboxScope*) base;
       result = 50;
       return result;
}

Here is the caller graph for this function:

static gint unity_music_lens_rhythmbox_scope_real_get_num_results_without_search ( UnityMusicLensSimpleScope *  base) [static]

Definition at line 1016 of file rhythmbox-scope.c.

                                                                                                                   {
       gint result;
       UnityMusicLensRhythmboxScope* self;
       self = (UnityMusicLensRhythmboxScope*) base;
       result = 100;
       return result;
}

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_real_perform_search ( UnityMusicLensSimpleScope *  base,
UnityLensSearch *  search,
UnitySearchType  search_type,
GList *  filters,
gint  max_results,
GCancellable *  cancellable,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
) [static]

Definition at line 858 of file rhythmbox-scope.c.

                                                                                                                                                                                                                                                                            {
       UnityMusicLensRhythmboxScope * self;
       UnityMusicLensRhythmboxScopePerformSearchData* _data_;
       UnityMusicLensRhythmboxScope* _tmp0_;
       UnityLensSearch* _tmp1_;
       UnityLensSearch* _tmp2_;
       UnitySearchType _tmp3_;
       GList* _tmp4_;
       gint _tmp5_;
       GCancellable* _tmp6_;
       GCancellable* _tmp7_;
       self = (UnityMusicLensRhythmboxScope*) base;
       _data_ = g_slice_new0 (UnityMusicLensRhythmboxScopePerformSearchData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_music_lens_rhythmbox_scope_real_perform_search);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_music_lens_rhythmbox_scope_real_perform_search_data_free);
       _tmp0_ = _g_object_ref0 (self);
       _data_->self = _tmp0_;
       _tmp1_ = search;
       _tmp2_ = _g_object_ref0 (_tmp1_);
       _data_->search = _tmp2_;
       _tmp3_ = search_type;
       _data_->search_type = _tmp3_;
       _tmp4_ = filters;
       __g_list_free__g_object_unref0_0 (_data_->filters);
       _data_->filters = _tmp4_;
       _tmp5_ = max_results;
       _data_->max_results = _tmp5_;
       _tmp6_ = cancellable;
       _tmp7_ = _g_object_ref0 (_tmp6_);
       _data_->cancellable = _tmp7_;
       unity_music_lens_rhythmbox_scope_real_perform_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_music_lens_rhythmbox_scope_real_perform_search_co ( UnityMusicLensRhythmboxScopePerformSearchData *  _data_) [static]

Definition at line 908 of file rhythmbox-scope.c.

                                                                                                                                {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->category_override = -1;
       _data_->_tmp0_ = _data_->search_type;
       if (_data_->_tmp0_ == UNITY_SEARCH_TYPE_GLOBAL) {
              _data_->category_override = (gint) UNITY_MUSIC_LENS_CATEGORY_MUSIC;
              _data_->_tmp1_ = _data_->search;
              _data_->_tmp2_ = FALSE;
              _data_->_tmp2_ = unity_music_lens_simple_scope_is_search_empty ((UnityMusicLensSimpleScope*) _data_->self, _data_->_tmp1_);
              if (_data_->_tmp2_) {
                     __g_list_free__g_object_unref0_0 (_data_->filters);
                     if (_data_->_state_ == 0) {
                            g_simple_async_result_complete_in_idle (_data_->_async_result);
                     } else {
                            g_simple_async_result_complete (_data_->_async_result);
                     }
                     g_object_unref (_data_->_async_result);
                     return FALSE;
              }
       }
       _data_->_tmp3_ = _data_->self->priv->db_ready;
       if (!_data_->_tmp3_) {
              _data_->_tmp4_ = NULL;
              _data_->_tmp4_ = g_get_user_cache_dir ();
              _data_->_tmp5_ = NULL;
              _data_->_tmp5_ = g_build_filename (_data_->_tmp4_, "rhythmbox", "album-art", "store.tdb", NULL);
              _data_->tdb_path = _data_->_tmp5_;
              _data_->_tmp6_ = _data_->self->priv->collection;
              _data_->_tmp7_ = _data_->tdb_path;
              unity_music_lens_rhythmbox_collection_parse_metadata_file (_data_->_tmp6_, _data_->_tmp7_);
              _data_->_tmp8_ = NULL;
              _data_->_tmp8_ = g_get_user_data_dir ();
              _data_->_tmp9_ = NULL;
              _data_->_tmp9_ = g_build_filename (_data_->_tmp8_, "rhythmbox", "rhythmdb.xml", NULL);
              _data_->xml_path = _data_->_tmp9_;
              _data_->_tmp10_ = _data_->self->priv->collection;
              _data_->_tmp11_ = _data_->xml_path;
              unity_music_lens_rhythmbox_collection_parse_file (_data_->_tmp10_, _data_->_tmp11_);
              _data_->_tmp12_ = _data_->self->priv->rb_xml_monitor;
              if (_data_->_tmp12_ == NULL) {
                     _data_->_tmp13_ = _data_->xml_path;
                     _data_->_tmp14_ = NULL;
                     _data_->_tmp14_ = g_file_new_for_path (_data_->_tmp13_);
                     _data_->xml_file = _data_->_tmp14_;
                     {
                            _data_->_tmp15_ = _data_->xml_file;
                            _data_->_tmp16_ = NULL;
                            _data_->_tmp16_ = g_file_monitor (_data_->_tmp15_, G_FILE_MONITOR_NONE, NULL, &_data_->_inner_error_);
                            _data_->_tmp17_ = _data_->_tmp16_;
                            if (_data_->_inner_error_ != NULL) {
                                   goto __catch7_g_error;
                            }
                            _data_->_tmp18_ = _g_object_ref0 (_data_->_tmp17_);
                            _g_object_unref0 (_data_->self->priv->rb_xml_monitor);
                            _data_->self->priv->rb_xml_monitor = _data_->_tmp18_;
                            _data_->_tmp19_ = _data_->self->priv->rb_xml_monitor;
                            g_signal_connect_object (_data_->_tmp19_, "changed", (GCallback) ______lambda12__g_file_monitor_changed, _data_->self, 0);
                     }
                     goto __finally7;
                     __catch7_g_error:
                     {
                            _data_->err = _data_->_inner_error_;
                            _data_->_inner_error_ = NULL;
                            _data_->_tmp20_ = _data_->err;
                            _data_->_tmp21_ = _data_->_tmp20_->message;
                            g_warning ("rhythmbox-scope.vala:151: %s", _data_->_tmp21_);
                            _g_error_free0 (_data_->err);
                     }
                     __finally7:
                     if (_data_->_inner_error_ != NULL) {
                            _g_object_unref0 (_data_->xml_file);
                            _g_free0 (_data_->xml_path);
                            _g_free0 (_data_->tdb_path);
                            __g_list_free__g_object_unref0_0 (_data_->filters);
                            g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _data_->_inner_error_->message, g_quark_to_string (_data_->_inner_error_->domain), _data_->_inner_error_->code);
                            g_clear_error (&_data_->_inner_error_);
                            return FALSE;
                     }
                     _g_object_unref0 (_data_->xml_file);
              }
              _data_->self->priv->db_ready = TRUE;
              _g_free0 (_data_->xml_path);
              _g_free0 (_data_->tdb_path);
       }
       _data_->_tmp22_ = _data_->self->priv->collection;
       _data_->_tmp23_ = _data_->search;
       _data_->_tmp24_ = _data_->search_type;
       _data_->_tmp25_ = _data_->filters;
       _data_->_tmp26_ = _data_->max_results;
       _data_->_tmp27_ = _data_->category_override;
       unity_music_lens_rhythmbox_collection_search (_data_->_tmp22_, _data_->_tmp23_, _data_->_tmp24_, _data_->_tmp25_, _data_->_tmp26_, _data_->_tmp27_);
       __g_list_free__g_object_unref0_0 (_data_->filters);
       if (_data_->_state_ == 0) {
              g_simple_async_result_complete_in_idle (_data_->_async_result);
       } else {
              g_simple_async_result_complete (_data_->_async_result);
       }
       g_object_unref (_data_->_async_result);
       return FALSE;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_real_perform_search_data_free ( gpointer  _data) [static]

Definition at line 847 of file rhythmbox-scope.c.

                                                                                            {
       UnityMusicLensRhythmboxScopePerformSearchData* _data_;
       _data_ = _data;
       _g_object_unref0 (_data_->search);
       __g_list_free__g_object_unref0_0 (_data_->filters);
       _g_object_unref0 (_data_->cancellable);
       _g_object_unref0 (_data_->self);
       g_slice_free (UnityMusicLensRhythmboxScopePerformSearchData, _data_);
}

Here is the caller graph for this function:

static void unity_music_lens_rhythmbox_scope_real_perform_search_finish ( UnityMusicLensSimpleScope *  base,
GAsyncResult *  _res_ 
) [static]

Definition at line 892 of file rhythmbox-scope.c.

                                                                                                                               {
       UnityMusicLensRhythmboxScopePerformSearchData* _data_;
       _data_ = g_simple_async_result_get_op_res_gpointer (G_SIMPLE_ASYNC_RESULT (_res_));
}

Here is the caller graph for this function:

UnityMusicLensSimpleScope* unity_music_lens_simple_scope_construct ( GType  object_type)

Definition at line 259 of file simple-scope.c.

                                                                                       {
       UnityMusicLensSimpleScope * self = NULL;
       self = (UnityMusicLensSimpleScope*) g_object_new (object_type, NULL);
       return self;
}
UnityScope* unity_music_lens_simple_scope_get_scope ( UnityMusicLensSimpleScope *  self)

Definition at line 701 of file simple-scope.c.

                                                                                      {
       UnityScope* result;
       UnityScope* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_scope;
       result = _tmp0_;
       return result;
}

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

      {
       UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_DUMMY_PROPERTY,
       UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_WITHOUT_SEARCH,
       UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_GLOBAL_SEARCH,
       UNITY_MUSIC_LENS_RHYTHMBOX_SCOPE_NUM_RESULTS_LENS_SEARCH
};
void unity_music_lens_simple_scope_initialize ( UnityMusicLensSimpleScope *  self)

Definition at line 346 of file simple-scope.c.

                                                                                {
       UnityScope* _tmp0_;
       UnityScope* _tmp1_;
       UnityScope* _tmp2_;
       UnityScope* _tmp3_;
       g_return_if_fail (self != NULL);
       _tmp0_ = self->priv->_scope;
       g_signal_connect_object (_tmp0_, "filters-changed", (GCallback) ___lambda0__unity_scope_filters_changed, self, 0);
       _tmp1_ = self->priv->_scope;
       g_signal_connect_object (_tmp1_, "active-sources-changed", (GCallback) ___lambda1__unity_scope_active_sources_changed, self, 0);
       _tmp2_ = self->priv->_scope;
       g_signal_connect_object (_tmp2_, "generate-search-key", (GCallback) ___lambda2__unity_scope_generate_search_key, self, 0);
       _tmp3_ = self->priv->_scope;
       g_signal_connect_object (_tmp3_, "search-changed", (GCallback) ___lambda3__unity_scope_search_changed, self, 0);
}

Here is the call graph for this function:

void unity_music_lens_simple_scope_set_scope ( UnityMusicLensSimpleScope *  self,
UnityScope *  value 
)

Definition at line 711 of file simple-scope.c.

                                                                                                  {
       UnityScope* _tmp0_;
       UnityScope* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_scope);
       self->priv->_scope = _tmp1_;
       g_object_notify ((GObject *) self, "scope");
}

Here is the call graph for this function:


Variable Documentation

Definition at line 193 of file rhythmbox-scope.c.