Back to index

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

Go to the source code of this file.

Classes

struct  _UnityMusicLensFilterParser
struct  _UnityMusicLensFilterParserClass
struct  _UnityMusicLensFilterParserPrivate

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 _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define UNITY_MUSIC_LENS_FILTER_PARSER_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParserPrivate))

Typedefs

typedef struct _UnityMusicLensFilterParser
typedef struct _UnityMusicLensFilterParserClass
typedef struct _UnityMusicLensFilterParserPrivate

Functions

GType unity_music_lens_filter_parser_get_type (void)
UnityMusicLensFilterParser * unity_music_lens_filter_parser_construct (GType object_type, UnityFilter *filter)
void unity_music_lens_filter_parser_set_filter (UnityMusicLensFilterParser *self, UnityFilter *value)
gchar * unity_music_lens_filter_parser_parse (UnityMusicLensFilterParser *self)
static gchar * unity_music_lens_filter_parser_real_parse (UnityMusicLensFilterParser *self)
UnityFilter * unity_music_lens_filter_parser_get_filter (UnityMusicLensFilterParser *self)
const gchar * unity_music_lens_filter_parser_get_id (UnityMusicLensFilterParser *self)
static void unity_music_lens_filter_parser_finalize (GObject *obj)
static void _vala_unity_music_lens_filter_parser_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_music_lens_filter_parser_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
static gpointer _g_object_ref0 (gpointer self)
static void unity_music_lens_filter_parser_class_init (UnityMusicLensFilterParserClass *klass)
static void unity_music_lens_filter_parser_instance_init (UnityMusicLensFilterParser *self)

Variables

static gpointer unity_music_lens_filter_parser_parent_class = NULL

Class Documentation

struct _UnityMusicLensFilterParser

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

Class Members
GObject parent_instance
UnityMusicLensFilterParserPrivate * priv
struct _UnityMusicLensFilterParserPrivate

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

Class Members
UnityFilter * _filter

Define Documentation

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

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

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

Definition at line 31 of file filter-parser.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 32 of file filter-parser.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 35 of file filter-parser.c.

#define UNITY_MUSIC_LENS_FILTER_PARSER_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER, UnityMusicLensFilterParserPrivate))
#define UNITY_MUSIC_LENS_IS_FILTER_PARSER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_FILTER_PARSER))

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

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


Typedef Documentation

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

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

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


Function Documentation

static gpointer _g_object_ref0 ( gpointer  self) [static]

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

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

Here is the caller graph for this function:

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

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

                                                                                                                                        {
       UnityMusicLensFilterParser * self;
       self = UNITY_MUSIC_LENS_FILTER_PARSER (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_FILTER_PARSER_FILTER:
              g_value_set_object (value, unity_music_lens_filter_parser_get_filter (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_filter_parser_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

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

                                                                                                                                              {
       UnityMusicLensFilterParser * self;
       self = UNITY_MUSIC_LENS_FILTER_PARSER (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_FILTER_PARSER_FILTER:
              unity_music_lens_filter_parser_set_filter (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 void unity_music_lens_filter_parser_class_init ( UnityMusicLensFilterParserClass *  klass) [static]

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

                                                                                                {
       unity_music_lens_filter_parser_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensFilterParserPrivate));
       UNITY_MUSIC_LENS_FILTER_PARSER_CLASS (klass)->parse = unity_music_lens_filter_parser_real_parse;
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_music_lens_filter_parser_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_music_lens_filter_parser_set_property;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_filter_parser_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_FILTER_PARSER_FILTER, g_param_spec_object ("filter", "filter", "filter", UNITY_TYPE_FILTER, 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_FILTER_PARSER_ID, g_param_spec_string ("id", "id", "id", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE));
}

Here is the call graph for this function:

UnityMusicLensFilterParser* unity_music_lens_filter_parser_construct ( GType  object_type,
UnityFilter *  filter 
)

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

                                                                                                              {
       UnityMusicLensFilterParser * self = NULL;
       UnityFilter* _tmp0_;
       g_return_val_if_fail (filter != NULL, NULL);
       self = (UnityMusicLensFilterParser*) g_object_new (object_type, NULL);
       _tmp0_ = filter;
       unity_music_lens_filter_parser_set_filter (self, _tmp0_);
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_filter_parser_finalize ( GObject *  obj) [static]

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

                                                                   {
       UnityMusicLensFilterParser * self;
       self = UNITY_MUSIC_LENS_FILTER_PARSER (obj);
       _g_object_unref0 (self->priv->_filter);
       G_OBJECT_CLASS (unity_music_lens_filter_parser_parent_class)->finalize (obj);
}

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

Here is the caller graph for this function:

const gchar* unity_music_lens_filter_parser_get_id ( UnityMusicLensFilterParser *  self)

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

                                                                                      {
       g_return_val_if_fail (self != NULL, NULL);
       return UNITY_MUSIC_LENS_FILTER_PARSER_GET_CLASS (self)->get_id (self);
}

Here is the caller graph for this function:

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

      {
       UNITY_MUSIC_LENS_FILTER_PARSER_DUMMY_PROPERTY,
       UNITY_MUSIC_LENS_FILTER_PARSER_FILTER,
       UNITY_MUSIC_LENS_FILTER_PARSER_ID
};
static void unity_music_lens_filter_parser_instance_init ( UnityMusicLensFilterParser *  self) [static]

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

gchar * unity_music_lens_filter_parser_parse ( UnityMusicLensFilterParser *  self)

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

                                                                               {
       g_return_val_if_fail (self != NULL, NULL);
       return UNITY_MUSIC_LENS_FILTER_PARSER_GET_CLASS (self)->parse (self);
}

Here is the caller graph for this function:

static gchar * unity_music_lens_filter_parser_real_parse ( UnityMusicLensFilterParser *  self) [static]

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

                                                                                           {
       g_critical ("Type `%s' does not implement abstract method `unity_music_lens_filter_parser_parse'", g_type_name (G_TYPE_FROM_INSTANCE (self)));
       return NULL;
}

Here is the caller graph for this function:

void unity_music_lens_filter_parser_set_filter ( UnityMusicLensFilterParser *  self,
UnityFilter *  value 
)

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

                                                                                                      {
       UnityFilter* _tmp0_;
       UnityFilter* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = _g_object_ref0 (_tmp0_);
       _g_object_unref0 (self->priv->_filter);
       self->priv->_filter = _tmp1_;
       g_object_notify ((GObject *) self, "filter");
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

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