Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Functions | Variables
simple-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 <dee.h>
#include <glib/gi18n-lib.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensSimpleScope
struct  _UnityMusicLensSimpleScopeClass
struct  _UnityMusicLensSimpleScopePrivate
struct  _UnityMusicLensSimpleScopeUpdateSearchAsyncData
struct  _UnityMusicLensSimpleScopePrepareSearchData

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 _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_free0(var)   (var = (g_free (var), NULL))
#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_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 __g_list_free__g_object_unref0_0(var)   ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopePrivate))

Typedefs

typedef struct _UnityMusicLensSimpleScope
typedef struct _UnityMusicLensSimpleScopeClass
typedef struct _UnityMusicLensSimpleScopePrivate
typedef struct _UnityMusicLensFilterParser
typedef struct _UnityMusicLensFilterParserClass
typedef struct _UnityMusicLensSimpleScopeUpdateSearchAsyncData
typedef struct _UnityMusicLensGenreFilterParser
typedef struct _UnityMusicLensGenreFilterParserClass
typedef struct _UnityMusicLensDecadeFilterParser
typedef struct _UnityMusicLensDecadeFilterParserClass
typedef struct _UnityMusicLensSimpleScopePrepareSearchData

Functions

GType unity_music_lens_simple_scope_get_type (void)
void unity_music_lens_simple_scope_perform_search (UnityMusicLensSimpleScope *self, UnityLensSearch *search, UnitySearchType search_type, GList *filters, gint max_results, GCancellable *cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_)
void unity_music_lens_simple_scope_perform_search_finish (UnityMusicLensSimpleScope *self, GAsyncResult *_res_)
UnityMusicLensSimpleScope * unity_music_lens_simple_scope_construct (GType object_type)
void unity_music_lens_simple_scope_initialize (UnityMusicLensSimpleScope *self)
UnityScope * unity_music_lens_simple_scope_get_scope (UnityMusicLensSimpleScope *self)
static void __lambda0_ (UnityMusicLensSimpleScope *self)
static void ___lambda0__unity_scope_filters_changed (UnityScope *_sender, gpointer self)
static void __lambda1_ (UnityMusicLensSimpleScope *self)
static void ___lambda1__unity_scope_active_sources_changed (UnityScope *_sender, gchar **active_ids, int active_ids_length1, gpointer self)
static gchar * __lambda2_ (UnityMusicLensSimpleScope *self, UnityLensSearch *lens_search)
static gchar * ___lambda2__unity_scope_generate_search_key (UnityScope *_sender, UnityLensSearch *search, gpointer self)
static void __lambda3_ (UnityMusicLensSimpleScope *self, UnityLensSearch *search, UnitySearchType search_type, GCancellable *cancellable)
static void unity_music_lens_simple_scope_update_search_async (UnityMusicLensSimpleScope *self, UnityLensSearch *search, UnitySearchType search_type, GCancellable *cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_)
static void unity_music_lens_simple_scope_update_search_finish (UnityMusicLensSimpleScope *self, GAsyncResult *_res_)
static void ___lambda3__unity_scope_search_changed (UnityScope *_sender, UnityLensSearch *search, UnitySearchType search_type, GCancellable *cancellable, gpointer self)
static void unity_music_lens_simple_scope_update_search_async_data_free (gpointer _data)
static gboolean unity_music_lens_simple_scope_update_search_async_co (UnityMusicLensSimpleScopeUpdateSearchAsyncData *_data_)
gint unity_music_lens_simple_scope_get_num_results_global_search (UnityMusicLensSimpleScope *self)
gboolean unity_music_lens_simple_scope_is_search_empty (UnityMusicLensSimpleScope *self, UnityLensSearch *search)
gint unity_music_lens_simple_scope_get_num_results_without_search (UnityMusicLensSimpleScope *self)
gint unity_music_lens_simple_scope_get_num_results_lens_search (UnityMusicLensSimpleScope *self)
static void unity_music_lens_simple_scope_prepare_search (UnityMusicLensSimpleScope *self, UnityLensSearch *search, UnitySearchType search_type, gint max_results, GCancellable *cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_)
static void unity_music_lens_simple_scope_prepare_search_finish (UnityMusicLensSimpleScope *self, GAsyncResult *_res_)
static void unity_music_lens_simple_scope_update_search_async_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static void unity_music_lens_simple_scope_prepare_search_data_free (gpointer _data)
static gboolean unity_music_lens_simple_scope_prepare_search_co (UnityMusicLensSimpleScopePrepareSearchData *_data_)
UnityMusicLensGenreFilterParser * unity_music_lens_genre_filter_parser_new (UnityCheckOptionFilterCompact *filter)
UnityMusicLensGenreFilterParser * unity_music_lens_genre_filter_parser_construct (GType object_type, UnityCheckOptionFilterCompact *filter)
GType unity_music_lens_genre_filter_parser_get_type (void)
static gchar * string_strip (const gchar *self)
static gpointer _g_object_ref0 (gpointer self)
static void _g_object_unref0_ (gpointer var)
static void _g_list_free__g_object_unref0_ (GList *self)
static void unity_music_lens_simple_scope_prepare_search_ready (GObject *source_object, GAsyncResult *_res_, gpointer _user_data_)
static GVariant * _variant_new1 (const gchar *value)
void unity_music_lens_simple_scope_set_scope (UnityMusicLensSimpleScope *self, UnityScope *value)
static void unity_music_lens_simple_scope_class_init (UnityMusicLensSimpleScopeClass *klass)
static void unity_music_lens_simple_scope_instance_init (UnityMusicLensSimpleScope *self)
static void unity_music_lens_simple_scope_finalize (GObject *obj)
static void _vala_unity_music_lens_simple_scope_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_music_lens_simple_scope_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)

Variables

static gpointer unity_music_lens_simple_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 _UnityMusicLensSimpleScopePrivate

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

Class Members
UnityScope * _scope
struct _UnityMusicLensSimpleScopeUpdateSearchAsyncData

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

Class Members
GSimpleAsyncResult * _async_result
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnitySearchType _tmp0_
UnitySearchType _tmp10_
gint _tmp11_
GCancellable * _tmp12_
gint _tmp1_
gint _tmp2_
UnityLensSearch * _tmp3_
gboolean _tmp4_
gint _tmp5_
gint _tmp6_
gint _tmp7_
gint _tmp8_
UnityLensSearch * _tmp9_
GCancellable * cancellable
gint max_results
UnityLensSearch * search
UnitySearchType search_type
UnityMusicLensSimpleScope * self
struct _UnityMusicLensSimpleScopePrepareSearchData

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

Class Members
GSimpleAsyncResult * _async_result
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnityLensSearch * _tmp0_
UnityFilter * _tmp10_
UnityMusicLensGenreFilterParser * _tmp11_
UnityScope * _tmp12_
UnityFilter * _tmp13_
UnityFilter * _tmp14_
gboolean _tmp15_
gboolean _tmp16_
UnityFilter * _tmp17_
UnityMusicLensDecadeFilterParser * _tmp18_
DeeSerializableModel * _tmp19_
DeeSerializableModel * _tmp1_
gboolean _tmp20_
UnityScope * _tmp21_
UnityOptionsFilter * _tmp22_
UnityOptionsFilter * _tmp23_
GList * _tmp24_
guint _tmp25_
UnityScope * _tmp26_
UnityOptionsFilter * _tmp27_
UnityOptionsFilter * _tmp28_
gboolean _tmp29_
DeeSerializableModel * _tmp2_
gboolean _tmp30_
gboolean _tmp31_
UnityScope * _tmp32_
UnityOptionsFilter * _tmp33_
UnityOptionsFilter * _tmp34_
GList * _tmp35_
UnityFilterOption * _tmp36_
UnityFilterOption * _tmp37_
gboolean _tmp38_
gboolean _tmp39_
DeeSerializableModel * _tmp3_
gboolean _tmp40_
UnityLensSearch * _tmp41_
UnityLensSearch * _tmp42_
UnitySearchType _tmp43_
GList * _tmp44_
gint _tmp45_
GCancellable * _tmp46_
DeeSerializableModel * _tmp47_
guint _tmp48_
UnityLensSearch * _tmp49_
UnitySearchType _tmp4_
const gchar * _tmp50_
GVariant * _tmp51_
UnityLensSearch * _tmp52_
UnityScope * _tmp5_
UnityFilter * _tmp6_
UnityFilter * _tmp7_
gboolean _tmp8_
gboolean _tmp9_
gboolean any_active
GCancellable * cancellable
UnityFilter * filter
GList * filters
gint max_results
DeeSerializableModel * results_model
UnityLensSearch * search
UnitySearchType search_type
UnityMusicLensSimpleScope * self
UnityFilterOption * source
GList * source_collection
GList * source_it

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 76 of file simple-scope.c.

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

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

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

Definition at line 53 of file simple-scope.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 68 of file simple-scope.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 69 of file simple-scope.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 72 of file simple-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 45 of file simple-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 46 of file simple-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 49 of file simple-scope.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 58 of file simple-scope.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 59 of file simple-scope.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 62 of file simple-scope.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 70 of file simple-scope.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 71 of file simple-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 47 of file simple-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 48 of file simple-scope.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 60 of file simple-scope.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 61 of file simple-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 36 of file simple-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 37 of file simple-scope.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScope))

Definition at line 34 of file simple-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 35 of file simple-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 38 of file simple-scope.c.

#define UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, UnityMusicLensSimpleScopePrivate))

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

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

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

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


Typedef Documentation

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

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

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

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

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

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

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

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

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

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

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


Function Documentation

static void ___lambda0__unity_scope_filters_changed ( UnityScope *  _sender,
gpointer  self 
) [static]

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

                                                                                         {
       __lambda0_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda1__unity_scope_active_sources_changed ( UnityScope *  _sender,
gchar **  active_ids,
int  active_ids_length1,
gpointer  self 
) [static]

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

                                                                                                                                            {
       __lambda1_ (self);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gchar * ___lambda2__unity_scope_generate_search_key ( UnityScope *  _sender,
UnityLensSearch *  search,
gpointer  self 
) [static]

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

                                                                                                                        {
       gchar* result;
       result = __lambda2_ (self, search);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void ___lambda3__unity_scope_search_changed ( UnityScope *  _sender,
UnityLensSearch *  search,
UnitySearchType  search_type,
GCancellable *  cancellable,
gpointer  self 
) [static]

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

                                                                                                                                                                         {
       __lambda3_ (self, search, search_type, cancellable);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda0_ ( UnityMusicLensSimpleScope *  self) [static]

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

                                                         {
       UnityScope* _tmp0_;
       _tmp0_ = self->priv->_scope;
       unity_scope_queue_search_changed (_tmp0_, UNITY_SEARCH_TYPE_DEFAULT);
}

Here is the caller graph for this function:

static void __lambda1_ ( UnityMusicLensSimpleScope *  self) [static]

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

                                                         {
       UnityScope* _tmp0_;
       _tmp0_ = self->priv->_scope;
       unity_scope_queue_search_changed (_tmp0_, UNITY_SEARCH_TYPE_DEFAULT);
}

Here is the caller graph for this function:

static gchar * __lambda2_ ( UnityMusicLensSimpleScope *  self,
UnityLensSearch *  lens_search 
) [static]

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

                                                                                         {
       gchar* result = NULL;
       UnityLensSearch* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       gchar* _tmp3_ = NULL;
       g_return_val_if_fail (lens_search != NULL, NULL);
       _tmp0_ = lens_search;
       _tmp1_ = unity_lens_search_get_search_string (_tmp0_);
       _tmp2_ = _tmp1_;
       _tmp3_ = string_strip (_tmp2_);
       result = _tmp3_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void __lambda3_ ( UnityMusicLensSimpleScope *  self,
UnityLensSearch *  search,
UnitySearchType  search_type,
GCancellable *  cancellable 
) [static]

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

                                                                                                                                          {
       UnityLensSearch* _tmp0_;
       UnitySearchType _tmp1_;
       GCancellable* _tmp2_;
       g_return_if_fail (search != NULL);
       g_return_if_fail (cancellable != NULL);
       _tmp0_ = search;
       _tmp1_ = search_type;
       _tmp2_ = cancellable;
       unity_music_lens_simple_scope_update_search_async (self, _tmp0_, _tmp1_, _tmp2_, NULL, 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 515 of file simple-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 373 of file simple-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 510 of file simple-scope.c.

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

Here is the caller graph for this function:

static void _vala_unity_music_lens_simple_scope_get_property ( GObject *  object,
guint  property_id,
GValue *  value,
GParamSpec *  pspec 
) [static]

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

                                                                                                                                       {
       UnityMusicLensSimpleScope * self;
       self = UNITY_MUSIC_LENS_SIMPLE_SCOPE (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_SIMPLE_SCOPE_SCOPE:
              g_value_set_object (value, unity_music_lens_simple_scope_get_scope (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 void _vala_unity_music_lens_simple_scope_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

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

                                                                                                                                             {
       UnityMusicLensSimpleScope * self;
       self = UNITY_MUSIC_LENS_SIMPLE_SCOPE (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_SIMPLE_SCOPE_SCOPE:
              unity_music_lens_simple_scope_set_scope (self, g_value_get_object (value));
              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 GVariant* _variant_new1 ( const gchar *  value) [static]

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

                                                    {
       return g_variant_ref_sink (g_variant_new_string (value));
}

Here is the caller graph for this function:

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

Definition at line 290 of file simple-scope.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:

UnityMusicLensGenreFilterParser* unity_music_lens_genre_filter_parser_construct ( GType  object_type,
UnityCheckOptionFilterCompact *  filter 
)

Definition at line 118 of file filter-parser-genre.c.

                                                                                                                                           {
       UnityMusicLensGenreFilterParser * self = NULL;
       UnityCheckOptionFilterCompact* _tmp0_;
       UnityMusicLensGenre* _tmp1_;
       UnityMusicLensGenre* _tmp2_;
       g_return_val_if_fail (filter != NULL, NULL);
       _tmp0_ = filter;
       self = (UnityMusicLensGenreFilterParser*) unity_music_lens_filter_parser_construct (object_type, (UnityFilter*) _tmp0_);
       _tmp1_ = unity_music_lens_genre_new ();
       _tmp2_ = _tmp1_;
       unity_music_lens_genre_filter_parser_set_map (self, _tmp2_);
       _g_object_unref0 (_tmp2_);
       return self;
}

Here is the call graph for this function:

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

                                                                                                                                                                                                                                                             {
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (self)->perform_search (self, search, search_type, filters, max_results, cancellable, _callback_, _user_data_);
}
UnityMusicLensGenreFilterParser* unity_music_lens_genre_filter_parser_new ( UnityCheckOptionFilterCompact *  filter)

Definition at line 134 of file filter-parser-genre.c.

Here is the call graph for this function:

static void unity_music_lens_simple_scope_class_init ( UnityMusicLensSimpleScopeClass *  klass) [static]

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

                                                                                              {
       unity_music_lens_simple_scope_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensSimpleScopePrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_music_lens_simple_scope_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_music_lens_simple_scope_set_property;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_simple_scope_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_SIMPLE_SCOPE_SCOPE, g_param_spec_object ("scope", "scope", "scope", UNITY_TYPE_SCOPE, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_SIMPLE_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_SIMPLE_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_SIMPLE_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:

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;
}

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_finalize ( GObject *  obj) [static]

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

                                                                  {
       UnityMusicLensSimpleScope * self;
       self = UNITY_MUSIC_LENS_SIMPLE_SCOPE (obj);
       _g_object_unref0 (self->priv->_scope);
       G_OBJECT_CLASS (unity_music_lens_simple_scope_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

gint unity_music_lens_simple_scope_get_num_results_global_search ( UnityMusicLensSimpleScope *  self)

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

                                                                                                   {
       g_return_val_if_fail (self != NULL, 0);
       return UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (self)->get_num_results_global_search (self);
}

Here is the caller graph for this function:

gint unity_music_lens_simple_scope_get_num_results_lens_search ( UnityMusicLensSimpleScope *  self)

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

                                                                                                 {
       g_return_val_if_fail (self != NULL, 0);
       return UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (self)->get_num_results_lens_search (self);
}

Here is the caller graph for this function:

gint unity_music_lens_simple_scope_get_num_results_without_search ( UnityMusicLensSimpleScope *  self)

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

                                                                                                    {
       g_return_val_if_fail (self != NULL, 0);
       return UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (self)->get_num_results_without_search (self);
}

Here is the caller graph for this function:

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;
}

Here is the caller graph for this function:

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

      {
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_DUMMY_PROPERTY,
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_SCOPE,
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_NUM_RESULTS_WITHOUT_SEARCH,
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_NUM_RESULTS_GLOBAL_SEARCH,
       UNITY_MUSIC_LENS_SIMPLE_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:

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_instance_init ( UnityMusicLensSimpleScope *  self) [static]

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

gboolean unity_music_lens_simple_scope_is_search_empty ( UnityMusicLensSimpleScope *  self,
UnityLensSearch *  search 
)

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

                                                                                                                  {
       gboolean result = FALSE;
       UnityLensSearch* _tmp0_;
       const gchar* _tmp1_;
       const gchar* _tmp2_;
       UnityLensSearch* _tmp3_;
       const gchar* _tmp4_;
       const gchar* _tmp5_;
       gchar* _tmp6_ = NULL;
       gchar* _tmp7_;
       gboolean _tmp8_;
       g_return_val_if_fail (self != NULL, FALSE);
       g_return_val_if_fail (search != NULL, FALSE);
       _tmp0_ = search;
       _tmp1_ = unity_lens_search_get_search_string (_tmp0_);
       _tmp2_ = _tmp1_;
       g_return_val_if_fail (_tmp2_ != NULL, FALSE);
       _tmp3_ = search;
       _tmp4_ = unity_lens_search_get_search_string (_tmp3_);
       _tmp5_ = _tmp4_;
       _tmp6_ = string_strip (_tmp5_);
       _tmp7_ = _tmp6_;
       _tmp8_ = g_strcmp0 (_tmp7_, "") == 0;
       _g_free0 (_tmp7_);
       result = _tmp8_;
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_lens_simple_scope_perform_search ( UnityMusicLensSimpleScope *  self,
UnityLensSearch *  search,
UnitySearchType  search_type,
GList *  filters,
gint  max_results,
GCancellable *  cancellable,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
)

Here is the caller graph for this function:

void unity_music_lens_simple_scope_perform_search_finish ( UnityMusicLensSimpleScope *  self,
GAsyncResult *  _res_ 
)

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

                                                                                                                {
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_GET_CLASS (self)->perform_search_finish (self, _res_);
}

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_prepare_search ( UnityMusicLensSimpleScope *  self,
UnityLensSearch *  search,
UnitySearchType  search_type,
gint  max_results,
GCancellable *  cancellable,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
) [static]

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

                                                                                                                                                                                                                                                    {
       UnityMusicLensSimpleScopePrepareSearchData* _data_;
       UnityMusicLensSimpleScope* _tmp0_;
       UnityLensSearch* _tmp1_;
       UnityLensSearch* _tmp2_;
       UnitySearchType _tmp3_;
       gint _tmp4_;
       GCancellable* _tmp5_;
       GCancellable* _tmp6_;
       _data_ = g_slice_new0 (UnityMusicLensSimpleScopePrepareSearchData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_music_lens_simple_scope_prepare_search);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_music_lens_simple_scope_prepare_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_ = max_results;
       _data_->max_results = _tmp4_;
       _tmp5_ = cancellable;
       _tmp6_ = _g_object_ref0 (_tmp5_);
       _data_->cancellable = _tmp6_;
       unity_music_lens_simple_scope_prepare_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_music_lens_simple_scope_prepare_search_co ( UnityMusicLensSimpleScopePrepareSearchData *  _data_) [static]

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

                                                                                                                     {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_tmp0_ = _data_->search;
       _data_->_tmp1_ = unity_lens_search_get_results_model (_data_->_tmp0_);
       _data_->_tmp2_ = _data_->_tmp1_;
       _data_->_tmp3_ = _g_object_ref0 (_data_->_tmp2_);
       _data_->results_model = _data_->_tmp3_;
       _data_->filters = NULL;
       _data_->_tmp4_ = _data_->search_type;
       if (_data_->_tmp4_ != UNITY_SEARCH_TYPE_GLOBAL) {
              _data_->_tmp5_ = _data_->self->priv->_scope;
              _data_->_tmp6_ = NULL;
              _data_->_tmp6_ = unity_scope_get_filter (_data_->_tmp5_, "genre");
              _data_->filter = _data_->_tmp6_;
              _data_->_tmp7_ = _data_->filter;
              _data_->_tmp8_ = unity_filter_get_filtering (_data_->_tmp7_);
              _data_->_tmp9_ = _data_->_tmp8_;
              if (_data_->_tmp9_) {
                     _data_->_tmp10_ = _data_->filter;
                     _data_->_tmp11_ = unity_music_lens_genre_filter_parser_new (UNITY_IS_CHECK_OPTION_FILTER_COMPACT (_data_->_tmp10_) ? ((UnityCheckOptionFilterCompact*) _data_->_tmp10_) : NULL);
                     _data_->filters = g_list_append (_data_->filters, (UnityMusicLensFilterParser*) _data_->_tmp11_);
              }
              _data_->_tmp12_ = _data_->self->priv->_scope;
              _data_->_tmp13_ = NULL;
              _data_->_tmp13_ = unity_scope_get_filter (_data_->_tmp12_, "decade");
              _g_object_unref0 (_data_->filter);
              _data_->filter = _data_->_tmp13_;
              _data_->_tmp14_ = _data_->filter;
              _data_->_tmp15_ = unity_filter_get_filtering (_data_->_tmp14_);
              _data_->_tmp16_ = _data_->_tmp15_;
              if (_data_->_tmp16_) {
                     _data_->_tmp17_ = _data_->filter;
                     _data_->_tmp18_ = unity_music_lens_decade_filter_parser_new (UNITY_IS_MULTI_RANGE_FILTER (_data_->_tmp17_) ? ((UnityMultiRangeFilter*) _data_->_tmp17_) : NULL);
                     _data_->filters = g_list_append (_data_->filters, (UnityMusicLensFilterParser*) _data_->_tmp18_);
              }
              _g_object_unref0 (_data_->filter);
       }
       _data_->_tmp19_ = _data_->results_model;
       dee_model_clear ((DeeModel*) _data_->_tmp19_);
       _data_->_tmp21_ = _data_->self->priv->_scope;
       _data_->_tmp22_ = unity_scope_get_sources (_data_->_tmp21_);
       _data_->_tmp23_ = _data_->_tmp22_;
       _data_->_tmp24_ = _data_->_tmp23_->options;
       _data_->_tmp25_ = 0U;
       _data_->_tmp25_ = g_list_length (_data_->_tmp24_);
       if (_data_->_tmp25_ > ((guint) 0)) {
              _data_->_tmp26_ = _data_->self->priv->_scope;
              _data_->_tmp27_ = unity_scope_get_sources (_data_->_tmp26_);
              _data_->_tmp28_ = _data_->_tmp27_;
              _data_->_tmp29_ = unity_filter_get_filtering ((UnityFilter*) _data_->_tmp28_);
              _data_->_tmp30_ = _data_->_tmp29_;
              _data_->_tmp20_ = _data_->_tmp30_;
       } else {
              _data_->_tmp20_ = FALSE;
       }
       _data_->_tmp31_ = _data_->_tmp20_;
       if (_data_->_tmp31_) {
              _data_->any_active = FALSE;
              _data_->_tmp32_ = _data_->self->priv->_scope;
              _data_->_tmp33_ = unity_scope_get_sources (_data_->_tmp32_);
              _data_->_tmp34_ = _data_->_tmp33_;
              _data_->_tmp35_ = _data_->_tmp34_->options;
              {
                     _data_->source_collection = _data_->_tmp35_;
                     _data_->source_it = NULL;
                     for (_data_->source_it = _data_->source_collection; _data_->source_it != NULL; _data_->source_it = _data_->source_it->next) {
                            _data_->_tmp36_ = _g_object_ref0 ((UnityFilterOption*) _data_->source_it->data);
                            _data_->source = _data_->_tmp36_;
                            {
                                   _data_->_tmp37_ = _data_->source;
                                   _data_->_tmp38_ = unity_filter_option_get_active (_data_->_tmp37_);
                                   _data_->_tmp39_ = _data_->_tmp38_;
                                   if (_data_->_tmp39_) {
                                          _data_->any_active = TRUE;
                                   }
                                   _g_object_unref0 (_data_->source);
                            }
                     }
              }
              _data_->_tmp40_ = _data_->any_active;
              if (!_data_->_tmp40_) {
                     _data_->_tmp41_ = _data_->search;
                     g_signal_emit_by_name (_data_->_tmp41_, "finished");
                     __g_list_free__g_object_unref0_0 (_data_->filters);
                     _g_object_unref0 (_data_->results_model);
                     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_->_tmp42_ = _data_->search;
       _data_->_tmp43_ = _data_->search_type;
       _data_->_tmp44_ = _data_->filters;
       _data_->filters = NULL;
       _data_->_tmp45_ = _data_->max_results;
       _data_->_tmp46_ = _data_->cancellable;
       _data_->_state_ = 1;
       unity_music_lens_simple_scope_perform_search (_data_->self, _data_->_tmp42_, _data_->_tmp43_, _data_->_tmp44_, _data_->_tmp45_, _data_->_tmp46_, unity_music_lens_simple_scope_prepare_search_ready, _data_);
       return FALSE;
       _state_1:
       unity_music_lens_simple_scope_perform_search_finish (_data_->self, _data_->_res_);
       _data_->_tmp47_ = _data_->results_model;
       _data_->_tmp48_ = 0U;
       _data_->_tmp48_ = dee_model_get_n_rows ((DeeModel*) _data_->_tmp47_);
       if (_data_->_tmp48_ == ((guint) 0)) {
              _data_->_tmp49_ = _data_->search;
              _data_->_tmp50_ = NULL;
              _data_->_tmp50_ = _ ("Sorry, there is no music that matches your search.");
              _data_->_tmp51_ = _variant_new1 (_data_->_tmp50_);
              unity_lens_search_set_reply_hint (_data_->_tmp49_, "no-results-hint", _data_->_tmp51_);
       }
       _data_->_tmp52_ = _data_->search;
       g_signal_emit_by_name (_data_->_tmp52_, "finished");
       __g_list_free__g_object_unref0_0 (_data_->filters);
       _g_object_unref0 (_data_->results_model);
       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_simple_scope_prepare_search_data_free ( gpointer  _data) [static]

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

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

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_prepare_search_finish ( UnityMusicLensSimpleScope *  self,
GAsyncResult *  _res_ 
) [static]

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

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

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_prepare_search_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

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

                                                                                                                                   {
       UnityMusicLensSimpleScopePrepareSearchData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_music_lens_simple_scope_prepare_search_co (_data_);
}

Here is the call graph for this function:

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

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_update_search_async ( UnityMusicLensSimpleScope *  self,
UnityLensSearch *  search,
UnitySearchType  search_type,
GCancellable *  cancellable,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
) [static]

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

                                                                                                                                                                                                                                       {
       UnityMusicLensSimpleScopeUpdateSearchAsyncData* _data_;
       UnityMusicLensSimpleScope* _tmp0_;
       UnityLensSearch* _tmp1_;
       UnityLensSearch* _tmp2_;
       UnitySearchType _tmp3_;
       GCancellable* _tmp4_;
       GCancellable* _tmp5_;
       _data_ = g_slice_new0 (UnityMusicLensSimpleScopeUpdateSearchAsyncData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_music_lens_simple_scope_update_search_async);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_music_lens_simple_scope_update_search_async_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_ = cancellable;
       _tmp5_ = _g_object_ref0 (_tmp4_);
       _data_->cancellable = _tmp5_;
       unity_music_lens_simple_scope_update_search_async_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_music_lens_simple_scope_update_search_async_co ( UnityMusicLensSimpleScopeUpdateSearchAsyncData *  _data_) [static]

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

                                                                                                                              {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              case 1:
              goto _state_1;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->_tmp0_ = _data_->search_type;
       if (_data_->_tmp0_ == UNITY_SEARCH_TYPE_GLOBAL) {
              _data_->_tmp1_ = unity_music_lens_simple_scope_get_num_results_global_search (_data_->self);
              _data_->_tmp2_ = _data_->_tmp1_;
              _data_->max_results = _data_->_tmp2_;
       } else {
              _data_->_tmp3_ = _data_->search;
              _data_->_tmp4_ = FALSE;
              _data_->_tmp4_ = unity_music_lens_simple_scope_is_search_empty (_data_->self, _data_->_tmp3_);
              if (_data_->_tmp4_) {
                     _data_->_tmp5_ = unity_music_lens_simple_scope_get_num_results_without_search (_data_->self);
                     _data_->_tmp6_ = _data_->_tmp5_;
                     _data_->max_results = _data_->_tmp6_;
              } else {
                     _data_->_tmp7_ = unity_music_lens_simple_scope_get_num_results_lens_search (_data_->self);
                     _data_->_tmp8_ = _data_->_tmp7_;
                     _data_->max_results = _data_->_tmp8_;
              }
       }
       _data_->_tmp9_ = _data_->search;
       _data_->_tmp10_ = _data_->search_type;
       _data_->_tmp11_ = _data_->max_results;
       _data_->_tmp12_ = _data_->cancellable;
       _data_->_state_ = 1;
       unity_music_lens_simple_scope_prepare_search (_data_->self, _data_->_tmp9_, _data_->_tmp10_, _data_->_tmp11_, _data_->_tmp12_, unity_music_lens_simple_scope_update_search_async_ready, _data_);
       return FALSE;
       _state_1:
       unity_music_lens_simple_scope_prepare_search_finish (_data_->self, _data_->_res_);
       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_simple_scope_update_search_async_data_free ( gpointer  _data) [static]

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

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

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_update_search_async_ready ( GObject *  source_object,
GAsyncResult *  _res_,
gpointer  _user_data_ 
) [static]

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

                                                                                                                                        {
       UnityMusicLensSimpleScopeUpdateSearchAsyncData* _data_;
       _data_ = _user_data_;
       _data_->_source_object_ = source_object;
       _data_->_res_ = _res_;
       unity_music_lens_simple_scope_update_search_async_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_simple_scope_update_search_finish ( UnityMusicLensSimpleScope *  self,
GAsyncResult *  _res_ 
) [static]

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

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

Variable Documentation

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