Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Functions | Variables
banshee-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  _UnityMusicLensBansheeFilterParserIface
struct  _UnityMusicLensBansheeGenreFilterParser
struct  _UnityMusicLensBansheeGenreFilterParserClass

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_BANSHEE_FILTER_PARSER   (unity_music_lens_banshee_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_BANSHEE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER, UnityMusicLensBansheeFilterParser))
#define UNITY_MUSIC_LENS_IS_BANSHEE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_BANSHEE_FILTER_PARSER_GET_INTERFACE(obj)   (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER, UnityMusicLensBansheeFilterParserIface))
#define UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER   (unity_music_lens_banshee_genre_filter_parser_get_type ())
#define UNITY_MUSIC_LENS_BANSHEE_GENRE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER, UnityMusicLensBansheeGenreFilterParser))
#define UNITY_MUSIC_LENS_BANSHEE_GENRE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER, UnityMusicLensBansheeGenreFilterParserClass))
#define UNITY_MUSIC_LENS_IS_BANSHEE_GENRE_FILTER_PARSER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_IS_BANSHEE_GENRE_FILTER_PARSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER))
#define UNITY_MUSIC_LENS_BANSHEE_GENRE_FILTER_PARSER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER, UnityMusicLensBansheeGenreFilterParserClass))
#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 _UnityMusicLensBansheeFilterParser
typedef struct _UnityMusicLensBansheeFilterParserIface
typedef struct _UnityMusicLensBansheeGenreFilterParser
typedef struct _UnityMusicLensBansheeGenreFilterParserClass
typedef struct _UnityMusicLensBansheeGenreFilterParserPrivate
typedef struct _UnityMusicLensGenre
typedef struct _UnityMusicLensGenreClass

Functions

GType unity_music_lens_filter_parser_get_type (void)
UnityMusicLensBansheeGenreFilterParser * unity_music_lens_banshee_genre_filter_parser_new (UnityMusicLensGenreFilterParser *parser)
UnityMusicLensBansheeGenreFilterParser * unity_music_lens_banshee_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_banshee_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_banshee_genre_filter_parser_class_init (UnityMusicLensBansheeGenreFilterParserClass *klass)
static void unity_music_lens_banshee_genre_filter_parser_unity_music_lens_banshee_filter_parser_interface_init (UnityMusicLensBansheeFilterParserIface *iface)
static void unity_music_lens_banshee_genre_filter_parser_instance_init (UnityMusicLensBansheeGenreFilterParser *self)
GType unity_music_lens_banshee_genre_filter_parser_get_type (void)

Variables

static gpointer unity_music_lens_banshee_genre_filter_parser_parent_class = NULL
static
UnityMusicLensBansheeFilterParserIface * 
unity_music_lens_banshee_genre_filter_parser_unity_music_lens_banshee_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 _UnityMusicLensBansheeFilterParserIface

Definition at line 155 of file banshee-collection.c.

Class Members
GTypeInterface parent_iface
struct _UnityMusicLensBansheeGenreFilterParser

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

Class Members
UnityMusicLensGenreFilterParser parent_instance
UnityMusicLensBansheeGenreFilterParserPrivate * priv
struct _UnityMusicLensBansheeGenreFilterParserClass

Definition at line 115 of file banshee-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 banshee-filter-parser-genre.c.

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

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

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

Definition at line 72 of file banshee-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 banshee-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_BANSHEE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER, UnityMusicLensBansheeFilterParser))

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

#define UNITY_MUSIC_LENS_BANSHEE_FILTER_PARSER_GET_INTERFACE (   obj)    (G_TYPE_INSTANCE_GET_INTERFACE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER, UnityMusicLensBansheeFilterParserIface))

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

#define UNITY_MUSIC_LENS_BANSHEE_GENRE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER, UnityMusicLensBansheeGenreFilterParser))

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

#define UNITY_MUSIC_LENS_BANSHEE_GENRE_FILTER_PARSER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER, UnityMusicLensBansheeGenreFilterParserClass))

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

#define UNITY_MUSIC_LENS_BANSHEE_GENRE_FILTER_PARSER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER, UnityMusicLensBansheeGenreFilterParserClass))

Definition at line 66 of file banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-filter-parser-genre.c.

#define UNITY_MUSIC_LENS_IS_BANSHEE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER))

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

#define UNITY_MUSIC_LENS_IS_BANSHEE_GENRE_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_GENRE_FILTER_PARSER))

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

Definition at line 65 of file banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-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 banshee-filter-parser-genre.c.

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

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

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

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

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


Typedef Documentation

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

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

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

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

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

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

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

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

typedef struct _UnityMusicLensGenre

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

typedef struct _UnityMusicLensGenreClass

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

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

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

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


Function Documentation

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

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

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

Here is the caller graph for this function:

static void unity_music_lens_banshee_genre_filter_parser_class_init ( UnityMusicLensBansheeGenreFilterParserClass *  klass) [static]

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

Here is the call graph for this function:

Here is the caller graph for this function:

UnityMusicLensBansheeGenreFilterParser* unity_music_lens_banshee_genre_filter_parser_construct ( GType  object_type,
UnityMusicLensGenreFilterParser *  parser 
)

Here is the caller graph for this function:

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

                                                                   {
       static volatile gsize unity_music_lens_banshee_genre_filter_parser_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_lens_banshee_genre_filter_parser_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensBansheeGenreFilterParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_banshee_genre_filter_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensBansheeGenreFilterParser), 0, (GInstanceInitFunc) unity_music_lens_banshee_genre_filter_parser_instance_init, NULL };
              static const GInterfaceInfo unity_music_lens_banshee_filter_parser_info = { (GInterfaceInitFunc) unity_music_lens_banshee_genre_filter_parser_unity_music_lens_banshee_filter_parser_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
              GType unity_music_lens_banshee_genre_filter_parser_type_id;
              unity_music_lens_banshee_genre_filter_parser_type_id = g_type_register_static (UNITY_MUSIC_LENS_TYPE_GENRE_FILTER_PARSER, "UnityMusicLensBansheeGenreFilterParser", &g_define_type_info, 0);
              g_type_add_interface_static (unity_music_lens_banshee_genre_filter_parser_type_id, UNITY_MUSIC_LENS_TYPE_BANSHEE_FILTER_PARSER, &unity_music_lens_banshee_filter_parser_info);
              g_once_init_leave (&unity_music_lens_banshee_genre_filter_parser_type_id__volatile, unity_music_lens_banshee_genre_filter_parser_type_id);
       }
       return unity_music_lens_banshee_genre_filter_parser_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_lens_banshee_genre_filter_parser_instance_init ( UnityMusicLensBansheeGenreFilterParser *  self) [static]

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

                                                                                                                       {
}

Here is the caller graph for this function:

UnityMusicLensBansheeGenreFilterParser * unity_music_lens_banshee_genre_filter_parser_new ( UnityMusicLensGenreFilterParser *  parser)

Definition at line 158 of file banshee-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_banshee_genre_filter_parser_real_parse ( UnityMusicLensFilterParser *  base) [static]

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

                                                                                                         {
       UnityMusicLensBansheeGenreFilterParser * self;
       gchar* result = NULL;
       GString* _tmp0_;
       GString* builder;
       GList* _tmp1_ = NULL;
       GList* genres;
       GList* _tmp2_;
       GString* _tmp26_;
       GString* _tmp27_;
       gssize _tmp28_;
       gint _tmp29_;
       gint _tmp30_;
       GString* _tmp31_;
       GString* _tmp32_;
       GString* _tmp33_;
       const gchar* _tmp34_;
       gchar* _tmp35_;
       self = (UnityMusicLensBansheeGenreFilterParser*) base;
       _tmp0_ = g_string_new ("");
       builder = _tmp0_;
       _tmp1_ = unity_music_lens_genre_filter_parser_get_all_selected_genres ((UnityMusicLensGenreFilterParser*) self);
       genres = _tmp1_;
       _tmp2_ = genres;
       {
              GList* genre_collection = NULL;
              GList* genre_it = NULL;
              genre_collection = _tmp2_;
              for (genre_it = genre_collection; genre_it != NULL; genre_it = genre_it->next) {
                     UnityFilterOption* _tmp3_;
                     UnityFilterOption* genre = NULL;
                     _tmp3_ = _g_object_ref0 ((UnityFilterOption*) genre_it->data);
                     genre = _tmp3_;
                     {
                            UnityFilterOption* _tmp4_;
                            const gchar* _tmp5_;
                            const gchar* _tmp6_;
                            gchar* _tmp7_;
                            gchar* id;
                            UnityFilterOption* _tmp8_;
                            const gchar* _tmp9_;
                            const gchar* _tmp10_;
                            _tmp4_ = genre;
                            _tmp5_ = unity_filter_option_get_id (_tmp4_);
                            _tmp6_ = _tmp5_;
                            _tmp7_ = g_strdup (_tmp6_);
                            id = _tmp7_;
                            _tmp8_ = genre;
                            _tmp9_ = unity_filter_option_get_id (_tmp8_);
                            _tmp10_ = _tmp9_;
                            if (_tmp10_ == NULL) {
                                   _g_free0 (id);
                                   _g_object_unref0 (genre);
                                   continue;
                            }
                            {
                                   UnityMusicLensGenre* _tmp11_;
                                   UnityMusicLensGenre* _tmp12_;
                                   const gchar* _tmp13_;
                                   GeeCollection* _tmp14_ = NULL;
                                   GeeCollection* _tmp15_;
                                   GeeIterator* _tmp16_ = NULL;
                                   GeeIterator* _tmp17_;
                                   GeeIterator* _alt_it;
                                   _tmp11_ = unity_music_lens_genre_filter_parser_get_map ((UnityMusicLensGenreFilterParser*) self);
                                   _tmp12_ = _tmp11_;
                                   _tmp13_ = id;
                                   _tmp14_ = unity_music_lens_genre_get_genre_synonyms (_tmp12_, _tmp13_);
                                   _tmp15_ = _tmp14_;
                                   _tmp16_ = gee_iterable_iterator ((GeeIterable*) _tmp15_);
                                   _tmp17_ = _tmp16_;
                                   _g_object_unref0 (_tmp15_);
                                   _alt_it = _tmp17_;
                                   while (TRUE) {
                                          GeeIterator* _tmp18_;
                                          gboolean _tmp19_ = FALSE;
                                          GeeIterator* _tmp20_;
                                          gpointer _tmp21_ = NULL;
                                          gchar* alt;
                                          GString* _tmp22_;
                                          GString* _tmp23_;
                                          const gchar* _tmp24_;
                                          GString* _tmp25_;
                                          _tmp18_ = _alt_it;
                                          _tmp19_ = gee_iterator_next (_tmp18_);
                                          if (!_tmp19_) {
                                                 break;
                                          }
                                          _tmp20_ = _alt_it;
                                          _tmp21_ = gee_iterator_get (_tmp20_);
                                          alt = (gchar*) _tmp21_;
                                          _tmp22_ = builder;
                                          g_string_append (_tmp22_, "(CoreTracks.Genre LIKE '%");
                                          _tmp23_ = builder;
                                          _tmp24_ = alt;
                                          g_string_append (_tmp23_, _tmp24_);
                                          _tmp25_ = builder;
                                          g_string_append (_tmp25_, "%' ESCAPE '\\' AND CoreTracks.Genre IS NOT NULL) OR ");
                                          _g_free0 (alt);
                                   }
                                   _g_object_unref0 (_alt_it);
                            }
                            _g_free0 (id);
                            _g_object_unref0 (genre);
                     }
              }
       }
       _tmp26_ = builder;
       _tmp27_ = builder;
       _tmp28_ = _tmp27_->len;
       _tmp29_ = strlen (" OR ");
       _tmp30_ = _tmp29_;
       g_string_truncate (_tmp26_, (gsize) (_tmp28_ - _tmp30_));
       _tmp31_ = builder;
       g_string_prepend (_tmp31_, "(");
       _tmp32_ = builder;
       g_string_append (_tmp32_, ")");
       _tmp33_ = builder;
       _tmp34_ = _tmp33_->str;
       _tmp35_ = g_strdup (_tmp34_);
       result = _tmp35_;
       __g_list_free__g_object_unref0_0 (genres);
       _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_banshee_genre_filter_parser_unity_music_lens_banshee_filter_parser_interface_init ( UnityMusicLensBansheeFilterParserIface *  iface) [static]

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

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 banshee-filter-parser-genre.c.

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

Here is the caller graph for this function:

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 caller graph for this function:

UnityMusicLensGenreFilterParser * unity_music_lens_genre_filter_parser_new ( UnityCheckOptionFilterCompact *  filter)

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

Here is the caller graph for this function:

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

                                                                                                                                                            {
       UnityMusicLensBansheeGenreFilterParser * 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 = (UnityMusicLensBansheeGenreFilterParser*) 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:


Variable Documentation

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

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