Back to index

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

Go to the source code of this file.

Classes

struct  _UnityMusicLensAlbum
struct  _UnityMusicLensAlbumClass
struct  _UnityMusicLensAlbumPrivate

Defines

#define UNITY_MUSIC_LENS_TYPE_ALBUM   (unity_music_lens_album_get_type ())
#define UNITY_MUSIC_LENS_ALBUM(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbum))
#define UNITY_MUSIC_LENS_ALBUM_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbumClass))
#define UNITY_MUSIC_LENS_IS_ALBUM(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM))
#define UNITY_MUSIC_LENS_IS_ALBUM_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_ALBUM))
#define UNITY_MUSIC_LENS_ALBUM_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbumClass))
#define _g_free0(var)   (var = (g_free (var), NULL))
#define UNITY_MUSIC_LENS_ALBUM_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbumPrivate))

Typedefs

typedef struct _UnityMusicLensAlbum
typedef struct _UnityMusicLensAlbumClass
typedef struct _UnityMusicLensAlbumPrivate

Functions

GType unity_music_lens_album_get_type (void)
UnityMusicLensAlbum * unity_music_lens_album_new (void)
UnityMusicLensAlbum * unity_music_lens_album_construct (GType object_type)
const gchar * unity_music_lens_album_get_title (UnityMusicLensAlbum *self)
void unity_music_lens_album_set_title (UnityMusicLensAlbum *self, const gchar *value)
const gchar * unity_music_lens_album_get_artist (UnityMusicLensAlbum *self)
void unity_music_lens_album_set_artist (UnityMusicLensAlbum *self, const gchar *value)
const gchar * unity_music_lens_album_get_uri (UnityMusicLensAlbum *self)
void unity_music_lens_album_set_uri (UnityMusicLensAlbum *self, const gchar *value)
const gchar * unity_music_lens_album_get_artwork_path (UnityMusicLensAlbum *self)
void unity_music_lens_album_set_artwork_path (UnityMusicLensAlbum *self, const gchar *value)
static void unity_music_lens_album_finalize (GObject *obj)
static void _vala_unity_music_lens_album_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_unity_music_lens_album_set_property (GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
static void unity_music_lens_album_class_init (UnityMusicLensAlbumClass *klass)
static void unity_music_lens_album_instance_init (UnityMusicLensAlbum *self)

Variables

static gpointer unity_music_lens_album_parent_class = NULL

Class Documentation

struct _UnityMusicLensAlbum

Definition at line 41 of file album.c.

Class Members
GObject parent_instance
UnityMusicLensAlbumPrivate * priv
struct _UnityMusicLensAlbumClass

Definition at line 46 of file album.c.

Class Members
GObjectClass parent_class
struct _UnityMusicLensAlbumPrivate

Definition at line 50 of file album.c.

Class Members
gchar * _artist
gchar * _artwork_path
gchar * _title
gchar * _uri

Define Documentation

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

Definition at line 39 of file album.c.

#define UNITY_MUSIC_LENS_ALBUM (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbum))

Definition at line 30 of file album.c.

#define UNITY_MUSIC_LENS_ALBUM_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbumClass))

Definition at line 31 of file album.c.

#define UNITY_MUSIC_LENS_ALBUM_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbumClass))

Definition at line 34 of file album.c.

#define UNITY_MUSIC_LENS_ALBUM_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_ALBUM, UnityMusicLensAlbumPrivate))
#define UNITY_MUSIC_LENS_IS_ALBUM (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM))

Definition at line 32 of file album.c.

#define UNITY_MUSIC_LENS_IS_ALBUM_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_ALBUM))

Definition at line 33 of file album.c.

Definition at line 29 of file album.c.


Typedef Documentation

typedef struct _UnityMusicLensAlbum

Definition at line 36 of file album.c.

typedef struct _UnityMusicLensAlbumClass

Definition at line 37 of file album.c.

Definition at line 38 of file album.c.


Function Documentation

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

Definition at line 225 of file album.c.

                                                                                                                                {
       UnityMusicLensAlbum * self;
       self = UNITY_MUSIC_LENS_ALBUM (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_ALBUM_TITLE:
              g_value_set_string (value, unity_music_lens_album_get_title (self));
              break;
              case UNITY_MUSIC_LENS_ALBUM_ARTIST:
              g_value_set_string (value, unity_music_lens_album_get_artist (self));
              break;
              case UNITY_MUSIC_LENS_ALBUM_URI:
              g_value_set_string (value, unity_music_lens_album_get_uri (self));
              break;
              case UNITY_MUSIC_LENS_ALBUM_ARTWORK_PATH:
              g_value_set_string (value, unity_music_lens_album_get_artwork_path (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_album_set_property ( GObject *  object,
guint  property_id,
const GValue *  value,
GParamSpec *  pspec 
) [static]

Definition at line 248 of file album.c.

                                                                                                                                      {
       UnityMusicLensAlbum * self;
       self = UNITY_MUSIC_LENS_ALBUM (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_ALBUM_TITLE:
              unity_music_lens_album_set_title (self, g_value_get_string (value));
              break;
              case UNITY_MUSIC_LENS_ALBUM_ARTIST:
              unity_music_lens_album_set_artist (self, g_value_get_string (value));
              break;
              case UNITY_MUSIC_LENS_ALBUM_URI:
              unity_music_lens_album_set_uri (self, g_value_get_string (value));
              break;
              case UNITY_MUSIC_LENS_ALBUM_ARTWORK_PATH:
              unity_music_lens_album_set_artwork_path (self, g_value_get_string (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_album_class_init ( UnityMusicLensAlbumClass *  klass) [static]

Definition at line 184 of file album.c.

                                                                                 {
       unity_music_lens_album_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensAlbumPrivate));
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_music_lens_album_get_property;
       G_OBJECT_CLASS (klass)->set_property = _vala_unity_music_lens_album_set_property;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_album_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_ALBUM_TITLE, g_param_spec_string ("title", "title", "title", NULL, 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_ALBUM_ARTIST, g_param_spec_string ("artist", "artist", "artist", NULL, 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_ALBUM_URI, g_param_spec_string ("uri", "uri", "uri", NULL, 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_ALBUM_ARTWORK_PATH, g_param_spec_string ("artwork-path", "artwork-path", "artwork-path", NULL, G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB | G_PARAM_READABLE | G_PARAM_WRITABLE));
}

Here is the call graph for this function:

UnityMusicLensAlbum * unity_music_lens_album_construct ( GType  object_type)

Definition at line 84 of file album.c.

                                                                          {
       UnityMusicLensAlbum * self = NULL;
       self = (UnityMusicLensAlbum*) g_object_new (object_type, NULL);
       return self;
}

Here is the caller graph for this function:

static void unity_music_lens_album_finalize ( GObject *  obj) [static]

Definition at line 202 of file album.c.

                                                           {
       UnityMusicLensAlbum * self;
       self = UNITY_MUSIC_LENS_ALBUM (obj);
       _g_free0 (self->priv->_title);
       _g_free0 (self->priv->_artist);
       _g_free0 (self->priv->_uri);
       _g_free0 (self->priv->_artwork_path);
       G_OBJECT_CLASS (unity_music_lens_album_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

const gchar * unity_music_lens_album_get_artist ( UnityMusicLensAlbum *  self)

Definition at line 118 of file album.c.

                                                                           {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_artist;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar * unity_music_lens_album_get_artwork_path ( UnityMusicLensAlbum *  self)

Definition at line 162 of file album.c.

                                                                                 {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_artwork_path;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

const gchar * unity_music_lens_album_get_title ( UnityMusicLensAlbum *  self)

Definition at line 96 of file album.c.

                                                                          {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_title;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

Definition at line 60 of file album.c.

      {
       UNITY_MUSIC_LENS_ALBUM_DUMMY_PROPERTY,
       UNITY_MUSIC_LENS_ALBUM_TITLE,
       UNITY_MUSIC_LENS_ALBUM_ARTIST,
       UNITY_MUSIC_LENS_ALBUM_URI,
       UNITY_MUSIC_LENS_ALBUM_ARTWORK_PATH
};
const gchar * unity_music_lens_album_get_uri ( UnityMusicLensAlbum *  self)

Definition at line 140 of file album.c.

                                                                        {
       const gchar* result;
       const gchar* _tmp0_;
       g_return_val_if_fail (self != NULL, NULL);
       _tmp0_ = self->priv->_uri;
       result = _tmp0_;
       return result;
}

Here is the caller graph for this function:

static void unity_music_lens_album_instance_init ( UnityMusicLensAlbum *  self) [static]

Definition at line 197 of file album.c.

                                                                              {
       self->priv = UNITY_MUSIC_LENS_ALBUM_GET_PRIVATE (self);
}
UnityMusicLensAlbum * unity_music_lens_album_new ( void  )

Definition at line 91 of file album.c.

Here is the call graph for this function:

Here is the caller graph for this function:

void unity_music_lens_album_set_artist ( UnityMusicLensAlbum *  self,
const gchar *  value 
)

Definition at line 128 of file album.c.

                                                                                       {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_artist);
       self->priv->_artist = _tmp1_;
       g_object_notify ((GObject *) self, "artist");
}

Here is the caller graph for this function:

void unity_music_lens_album_set_artwork_path ( UnityMusicLensAlbum *  self,
const gchar *  value 
)

Definition at line 172 of file album.c.

                                                                                             {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_artwork_path);
       self->priv->_artwork_path = _tmp1_;
       g_object_notify ((GObject *) self, "artwork-path");
}

Here is the caller graph for this function:

void unity_music_lens_album_set_title ( UnityMusicLensAlbum *  self,
const gchar *  value 
)

Definition at line 106 of file album.c.

                                                                                      {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_title);
       self->priv->_title = _tmp1_;
       g_object_notify ((GObject *) self, "title");
}

Here is the caller graph for this function:

void unity_music_lens_album_set_uri ( UnityMusicLensAlbum *  self,
const gchar *  value 
)

Definition at line 150 of file album.c.

                                                                                    {
       const gchar* _tmp0_;
       gchar* _tmp1_;
       g_return_if_fail (self != NULL);
       _tmp0_ = value;
       _tmp1_ = g_strdup (_tmp0_);
       _g_free0 (self->priv->_uri);
       self->priv->_uri = _tmp1_;
       g_object_notify ((GObject *) self, "uri");
}

Here is the caller graph for this function:


Variable Documentation

gpointer unity_music_lens_album_parent_class = NULL [static]

Definition at line 58 of file album.c.