Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Functions | Variables
musicstore-filter-parser-genre.c File Reference
#include <glib.h>
#include <glib-object.h>
#include <stdlib.h>
#include <string.h>
#include <unity.h>
#include <gee.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensFilterParser
struct  _UnityMusicLensFilterParserClass
struct  _UnityMusicLensGenreFilterParser
struct  _UnityMusicLensGenreFilterParserClass
struct  _UnityMusicLensMusicStoreFilterParserIface
struct  _UnityMusicLensMusicStoreGenreFilterParser
struct  _UnityMusicLensMusicStoreGenreFilterParserClass

Defines

#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_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_MUSIC_STORE_FILTER_PARSER   (unity_music_lens_music_store_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_MUSIC_STORE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER, UnityMusicLensMusicStoreFilterParser))
#define UNITY_MUSIC_LENS_IS_MUSIC_STORE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_MUSIC_STORE_FILTER_PARSER_GET_INTERFACE(obj)   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER, UnityMusicLensMusicStoreFilterParserIface))
#define UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER   (unity_music_lens_music_store_genre_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER, UnityMusicLensMusicStoreGenreFilterParser))
#define UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER, UnityMusicLensMusicStoreGenreFilterParserClass))
#define UNITY_MUSIC_LENS_IS_MUSIC_STORE_GENRE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_IS_MUSIC_STORE_GENRE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER, UnityMusicLensMusicStoreGenreFilterParserClass))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define UNITY_MUSIC_LENS_TYPE_GENRE   (unity_music_lens_genre_get_type ())
#define UNITY_MUSIC_LENS_GENRE(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenre))
#define UNITY_MUSIC_LENS_GENRE_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
#define UNITY_MUSIC_LENS_IS_GENRE(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE))
#define UNITY_MUSIC_LENS_IS_GENRE_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE))
#define UNITY_MUSIC_LENS_GENRE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
#define __g_list_free__g_object_unref0_0(var)   ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define _g_string_free0(var)   ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))

Typedefs

typedef struct _UnityMusicLensFilterParser
typedef struct _UnityMusicLensFilterParserClass
typedef struct _UnityMusicLensFilterParserPrivate
typedef struct _UnityMusicLensGenreFilterParser
typedef struct _UnityMusicLensGenreFilterParserClass
typedef struct _UnityMusicLensGenreFilterParserPrivate
typedef struct _UnityMusicLensMusicStoreFilterParser
typedef struct _UnityMusicLensMusicStoreFilterParserIface
typedef struct _UnityMusicLensMusicStoreGenreFilterParser
typedef struct _UnityMusicLensMusicStoreGenreFilterParserClass
typedef struct _UnityMusicLensMusicStoreGenreFilterParserPrivate
typedef struct _UnityMusicLensGenre
typedef struct _UnityMusicLensGenreClass

Functions

GType unity_music_lens_filter_parser_get_type (void)
UnityMusicLensMusicStoreGenreFilterParser * unity_music_lens_music_store_genre_filter_parser_new (UnityMusicLensGenreFilterParser *parser)
UnityMusicLensMusicStoreGenreFilterParser * unity_music_lens_music_store_genre_filter_parser_construct (GType object_type, UnityMusicLensGenreFilterParser *parser)
UnityFilter * unity_music_lens_filter_parser_get_filter (UnityMusicLensFilterParser *self)
UnityMusicLensGenreFilterParser * unity_music_lens_genre_filter_parser_new (UnityCheckOptionFilterCompact *filter)
UnityMusicLensGenreFilterParser * unity_music_lens_genre_filter_parser_construct (GType object_type, UnityCheckOptionFilterCompact *filter)
static gchar * unity_music_lens_music_store_genre_filter_parser_real_parse (UnityMusicLensFilterParser *base)
GList * unity_music_lens_genre_filter_parser_get_all_selected_genres (UnityMusicLensGenreFilterParser *self)
GType unity_music_lens_genre_get_type (void)
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_music_store_genre_filter_parser_class_init (UnityMusicLensMusicStoreGenreFilterParserClass *klass)
static void unity_music_lens_music_store_genre_filter_parser_unity_music_lens_music_store_filter_parser_interface_init (UnityMusicLensMusicStoreFilterParserIface *iface)
static void unity_music_lens_music_store_genre_filter_parser_instance_init (UnityMusicLensMusicStoreGenreFilterParser *self)
GType unity_music_lens_music_store_genre_filter_parser_get_type (void)

Variables

static gpointer unity_music_lens_music_store_genre_filter_parser_parent_class = NULL
static
UnityMusicLensMusicStoreFilterParserIface * 
unity_music_lens_music_store_genre_filter_parser_unity_music_lens_music_store_filter_parser_parent_iface = NULL

Class Documentation

struct _UnityMusicLensFilterParser

Definition at line 72 of file banshee-filter-parser-decade.c.

Class Members
GObject parent_instance
UnityMusicLensFilterParserPrivate * priv
struct _UnityMusicLensGenreFilterParser

Definition at line 97 of file banshee-filter-parser-genre.c.

Class Members
UnityMusicLensFilterParser parent_instance
UnityMusicLensGenreFilterParserPrivate * priv
struct _UnityMusicLensGenreFilterParserClass

Definition at line 102 of file banshee-filter-parser-genre.c.

Class Members
UnityMusicLensFilterParserClass parent_class
struct _UnityMusicLensMusicStoreFilterParserIface

Definition at line 299 of file musicstore-collection.c.

Class Members
GTypeInterface parent_iface
struct _UnityMusicLensMusicStoreGenreFilterParser

Definition at line 110 of file musicstore-filter-parser-genre.c.

Class Members
UnityMusicLensGenreFilterParser parent_instance
UnityMusicLensMusicStoreGenreFilterParserPrivate * priv
struct _UnityMusicLensMusicStoreGenreFilterParserClass

Definition at line 115 of file musicstore-filter-parser-genre.c.

Class Members
UnityMusicLensGenreFilterParserClass parent_class

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 83 of file musicstore-filter-parser-genre.c.

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

Definition at line 71 of file musicstore-filter-parser-genre.c.

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

Definition at line 72 of file musicstore-filter-parser-genre.c.

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

Definition at line 84 of file musicstore-filter-parser-genre.c.

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

Definition at line 32 of file musicstore-filter-parser-genre.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 33 of file musicstore-filter-parser-genre.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 36 of file musicstore-filter-parser-genre.c.

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

Definition at line 75 of file musicstore-filter-parser-genre.c.

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

Definition at line 76 of file musicstore-filter-parser-genre.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 43 of file musicstore-filter-parser-genre.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 44 of file musicstore-filter-parser-genre.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 47 of file musicstore-filter-parser-genre.c.

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

Definition at line 79 of file musicstore-filter-parser-genre.c.

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

Definition at line 34 of file musicstore-filter-parser-genre.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 35 of file musicstore-filter-parser-genre.c.

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

Definition at line 77 of file musicstore-filter-parser-genre.c.

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

Definition at line 78 of file musicstore-filter-parser-genre.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 45 of file musicstore-filter-parser-genre.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 46 of file musicstore-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_IS_MUSIC_STORE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER))

Definition at line 55 of file musicstore-filter-parser-genre.c.

Definition at line 64 of file musicstore-filter-parser-genre.c.

Definition at line 65 of file musicstore-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_MUSIC_STORE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER, UnityMusicLensMusicStoreFilterParser))

Definition at line 54 of file musicstore-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_MUSIC_STORE_FILTER_PARSER_GET_INTERFACE (   obj)    (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER, UnityMusicLensMusicStoreFilterParserIface))

Definition at line 56 of file musicstore-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER, UnityMusicLensMusicStoreGenreFilterParser))

Definition at line 62 of file musicstore-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER, UnityMusicLensMusicStoreGenreFilterParserClass))

Definition at line 63 of file musicstore-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_GENRE_FILTER_PARSER, UnityMusicLensMusicStoreGenreFilterParserClass))

Definition at line 66 of file musicstore-filter-parser-genre.c.

Definition at line 31 of file musicstore-filter-parser-genre.c.

Definition at line 74 of file musicstore-filter-parser-genre.c.

Definition at line 42 of file musicstore-filter-parser-genre.c.

Definition at line 53 of file musicstore-filter-parser-genre.c.

Definition at line 61 of file musicstore-filter-parser-genre.c.


Typedef Documentation

Definition at line 38 of file musicstore-filter-parser-genre.c.

Definition at line 39 of file musicstore-filter-parser-genre.c.

Definition at line 40 of file musicstore-filter-parser-genre.c.

typedef struct _UnityMusicLensGenre

Definition at line 81 of file musicstore-filter-parser-genre.c.

typedef struct _UnityMusicLensGenreClass

Definition at line 82 of file musicstore-filter-parser-genre.c.

Definition at line 49 of file musicstore-filter-parser-genre.c.

Definition at line 50 of file musicstore-filter-parser-genre.c.

Definition at line 51 of file musicstore-filter-parser-genre.c.

Definition at line 58 of file musicstore-filter-parser-genre.c.

Definition at line 59 of file musicstore-filter-parser-genre.c.

Definition at line 68 of file musicstore-filter-parser-genre.c.

Definition at line 69 of file musicstore-filter-parser-genre.c.

Definition at line 70 of file musicstore-filter-parser-genre.c.


Function Documentation

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

Definition at line 173 of file musicstore-filter-parser-genre.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 163 of file musicstore-filter-parser-genre.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 168 of file musicstore-filter-parser-genre.c.

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

Here is the caller graph for this function:

UnityFilter* unity_music_lens_filter_parser_get_filter ( UnityMusicLensFilterParser *  self)

Definition at line 101 of file filter-parser.c.

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

Definition at line 123 of file musicstore-filter-parser-genre.c.

      {
       UNITY_MUSIC_LENS_MUSIC_STORE_GENRE_FILTER_PARSER_DUMMY_PROPERTY
};
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;
}
GList* unity_music_lens_genre_filter_parser_get_all_selected_genres ( UnityMusicLensGenreFilterParser *  self)

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

                                                                                                            {
       GList* result = NULL;
       UnityFilter* _tmp0_;
       UnityFilter* _tmp1_;
       GList* _tmp2_;
       GList* options;
       GList* active;
       GList* _tmp3_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = unity_music_lens_filter_parser_get_filter ((UnityMusicLensFilterParser*) self);
       _tmp1_ = _tmp0_;
       _tmp2_ = ((UnityOptionsFilter*) (UNITY_IS_CHECK_OPTION_FILTER_COMPACT (_tmp1_) ? ((UnityCheckOptionFilterCompact*) _tmp1_) : NULL))->options;
       options = _tmp2_;
       active = NULL;
       _tmp3_ = options;
       {
              GList* option_collection = NULL;
              GList* option_it = NULL;
              option_collection = _tmp3_;
              for (option_it = option_collection; option_it != NULL; option_it = option_it->next) {
                     UnityFilterOption* _tmp4_;
                     UnityFilterOption* option = NULL;
                     _tmp4_ = _g_object_ref0 ((UnityFilterOption*) option_it->data);
                     option = _tmp4_;
                     {
                            UnityFilterOption* _tmp5_;
                            gboolean _tmp6_;
                            gboolean _tmp7_;
                            _tmp5_ = option;
                            _tmp6_ = unity_filter_option_get_active (_tmp5_);
                            _tmp7_ = _tmp6_;
                            if (_tmp7_) {
                                   UnityFilterOption* _tmp8_;
                                   UnityFilterOption* _tmp9_;
                                   _tmp8_ = option;
                                   _tmp9_ = _g_object_ref0 (_tmp8_);
                                   active = g_list_append (active, _tmp9_);
                            }
                            _g_object_unref0 (option);
                     }
              }
       }
       result = active;
       return result;
}

Here is the call graph for this function:

UnityMusicLensGenreFilterParser* unity_music_lens_genre_filter_parser_new ( UnityCheckOptionFilterCompact *  filter)

Definition at line 137 of file musicstore-filter-parser-genre.c.

                                                                                                                                                                   {
       UnityMusicLensMusicStoreGenreFilterParser * self = NULL;
       UnityMusicLensGenreFilterParser* _tmp0_;
       UnityFilter* _tmp1_;
       UnityFilter* _tmp2_;
       g_return_val_if_fail (parser != NULL, NULL);
       _tmp0_ = parser;
       _tmp1_ = unity_music_lens_filter_parser_get_filter ((UnityMusicLensFilterParser*) _tmp0_);
       _tmp2_ = _tmp1_;
       self = (UnityMusicLensMusicStoreGenreFilterParser*) unity_music_lens_genre_filter_parser_construct (object_type, UNITY_IS_CHECK_OPTION_FILTER_COMPACT (_tmp2_) ? ((UnityCheckOptionFilterCompact*) _tmp2_) : NULL);
       return self;
}

Here is the call graph for this function:

static void unity_music_lens_music_store_genre_filter_parser_class_init ( UnityMusicLensMusicStoreGenreFilterParserClass *  klass) [static]

Definition at line 286 of file musicstore-filter-parser-genre.c.

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensMusicStoreGenreFilterParser* unity_music_lens_music_store_genre_filter_parser_construct ( GType  object_type,
UnityMusicLensGenreFilterParser *  parser 
)

Here is the caller graph for this function:

Definition at line 301 of file musicstore-filter-parser-genre.c.

                                                                       {
       static volatile gsize unity_music_lens_music_store_genre_filter_parser_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_lens_music_store_genre_filter_parser_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensMusicStoreGenreFilterParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_music_store_genre_filter_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensMusicStoreGenreFilterParser), 0, (GInstanceInitFunc) unity_music_lens_music_store_genre_filter_parser_instance_init, NULL };
              static const GInterfaceInfo unity_music_lens_music_store_filter_parser_info = { (GInterfaceInitFunc) unity_music_lens_music_store_genre_filter_parser_unity_music_lens_music_store_filter_parser_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
              GType unity_music_lens_music_store_genre_filter_parser_type_id;
              unity_music_lens_music_store_genre_filter_parser_type_id = g_type_register_static (UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, "UnityMusicLensMusicStoreGenreFilterParser", &g_define_type_info, 0);
              g_type_add_interface_static (unity_music_lens_music_store_genre_filter_parser_type_id, UNITY_MUSIC_LENS_TYPE_MUSIC_STORE_FILTER_PARSER, &unity_music_lens_music_store_filter_parser_info);
              g_once_init_leave (&unity_music_lens_music_store_genre_filter_parser_type_id__volatile, unity_music_lens_music_store_genre_filter_parser_type_id);
       }
       return unity_music_lens_music_store_genre_filter_parser_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_lens_music_store_genre_filter_parser_instance_init ( UnityMusicLensMusicStoreGenreFilterParser *  self) [static]

Definition at line 297 of file musicstore-filter-parser-genre.c.

                                                                                                                              {
}

Here is the caller graph for this function:

UnityMusicLensMusicStoreGenreFilterParser * unity_music_lens_music_store_genre_filter_parser_new ( UnityMusicLensGenreFilterParser *  parser)

Definition at line 158 of file musicstore-filter-parser-genre.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static gchar * unity_music_lens_music_store_genre_filter_parser_real_parse ( UnityMusicLensFilterParser *  base) [static]

Definition at line 179 of file musicstore-filter-parser-genre.c.

                                                                                                             {
       UnityMusicLensMusicStoreGenreFilterParser * self;
       gchar* result = NULL;
       GString* _tmp0_;
       GString* builder;
       GList* _tmp1_ = NULL;
       GString* _tmp23_;
       GString* _tmp24_;
       gssize _tmp25_;
       GString* _tmp26_;
       const gchar* _tmp27_;
       gchar* _tmp28_;
       self = (UnityMusicLensMusicStoreGenreFilterParser*) base;
       _tmp0_ = g_string_new ("&genres=");
       builder = _tmp0_;
       _tmp1_ = unity_music_lens_genre_filter_parser_get_all_selected_genres ((UnityMusicLensGenreFilterParser*) self);
       {
              GList* genre_collection = NULL;
              GList* genre_it = NULL;
              genre_collection = _tmp1_;
              for (genre_it = genre_collection; genre_it != NULL; genre_it = genre_it->next) {
                     UnityFilterOption* _tmp2_;
                     UnityFilterOption* genre = NULL;
                     _tmp2_ = _g_object_ref0 ((UnityFilterOption*) genre_it->data);
                     genre = _tmp2_;
                     {
                            UnityFilterOption* _tmp3_;
                            const gchar* _tmp4_;
                            const gchar* _tmp5_;
                            gchar* _tmp6_;
                            gchar* id;
                            UnityFilterOption* _tmp7_;
                            const gchar* _tmp8_;
                            const gchar* _tmp9_;
                            _tmp3_ = genre;
                            _tmp4_ = unity_filter_option_get_id (_tmp3_);
                            _tmp5_ = _tmp4_;
                            _tmp6_ = g_strdup (_tmp5_);
                            id = _tmp6_;
                            _tmp7_ = genre;
                            _tmp8_ = unity_filter_option_get_id (_tmp7_);
                            _tmp9_ = _tmp8_;
                            if (_tmp9_ == NULL) {
                                   _g_free0 (id);
                                   _g_object_unref0 (genre);
                                   continue;
                            }
                            {
                                   UnityMusicLensGenre* _tmp10_;
                                   UnityMusicLensGenre* _tmp11_;
                                   const gchar* _tmp12_;
                                   GeeCollection* _tmp13_ = NULL;
                                   GeeCollection* _tmp14_;
                                   GeeIterator* _tmp15_ = NULL;
                                   GeeIterator* _tmp16_;
                                   GeeIterator* _alt_it;
                                   _tmp10_ = unity_music_lens_genre_filter_parser_get_map ((UnityMusicLensGenreFilterParser*) self);
                                   _tmp11_ = _tmp10_;
                                   _tmp12_ = id;
                                   _tmp13_ = unity_music_lens_genre_get_genre_synonyms (_tmp11_, _tmp12_);
                                   _tmp14_ = _tmp13_;
                                   _tmp15_ = gee_iterable_iterator ((GeeIterable*) _tmp14_);
                                   _tmp16_ = _tmp15_;
                                   _g_object_unref0 (_tmp14_);
                                   _alt_it = _tmp16_;
                                   while (TRUE) {
                                          GeeIterator* _tmp17_;
                                          gboolean _tmp18_ = FALSE;
                                          GeeIterator* _tmp19_;
                                          gpointer _tmp20_ = NULL;
                                          gchar* alt;
                                          GString* _tmp21_;
                                          const gchar* _tmp22_;
                                          _tmp17_ = _alt_it;
                                          _tmp18_ = gee_iterator_next (_tmp17_);
                                          if (!_tmp18_) {
                                                 break;
                                          }
                                          _tmp19_ = _alt_it;
                                          _tmp20_ = gee_iterator_get (_tmp19_);
                                          alt = (gchar*) _tmp20_;
                                          _tmp21_ = builder;
                                          _tmp22_ = alt;
                                          g_string_append_printf (_tmp21_, "%s,", _tmp22_);
                                          _g_free0 (alt);
                                   }
                                   _g_object_unref0 (_alt_it);
                            }
                            _g_free0 (id);
                            _g_object_unref0 (genre);
                     }
              }
              __g_list_free__g_object_unref0_0 (genre_collection);
       }
       _tmp23_ = builder;
       _tmp24_ = builder;
       _tmp25_ = _tmp24_->len;
       g_string_truncate (_tmp23_, (gsize) (_tmp25_ - 1));
       _tmp26_ = builder;
       _tmp27_ = _tmp26_->str;
       _tmp28_ = g_strdup (_tmp27_);
       result = _tmp28_;
       _g_string_free0 (builder);
       return result;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_music_store_genre_filter_parser_unity_music_lens_music_store_filter_parser_interface_init ( UnityMusicLensMusicStoreFilterParserIface *  iface) [static]

Definition at line 292 of file musicstore-filter-parser-genre.c.

Here is the caller graph for this function:


Variable Documentation

Definition at line 120 of file musicstore-filter-parser-genre.c.

Definition at line 121 of file musicstore-filter-parser-genre.c.