Back to index

unity-lens-music  6.0.0
Classes | Defines | Typedefs | Enumerations | Functions | Variables
banshee-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 <glib/gi18n-lib.h>

Go to the source code of this file.

Classes

struct  _UnityMusicLensSimpleScope
struct  _UnityMusicLensSimpleScopeClass
struct  _UnityMusicLensBansheeScopeProxy
struct  _UnityMusicLensBansheeScopeProxyClass
struct  _UnityMusicLensBansheeScopeProxyPrivate
struct  _UnityMusicLensBansheeScopeProxyPerformSearchData

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 UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY   (unity_music_lens_banshee_scope_proxy_get_type ())
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxy))
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))
#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))
#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))
#define UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION   (unity_music_lens_banshee_collection_get_type ())
#define UNITY_MUSIC_LENS_BANSHEE_COLLECTION(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION, UnityMusicLensBansheeCollection))
#define UNITY_MUSIC_LENS_BANSHEE_COLLECTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION, UnityMusicLensBansheeCollectionClass))
#define UNITY_MUSIC_LENS_IS_BANSHEE_COLLECTION(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION))
#define UNITY_MUSIC_LENS_IS_BANSHEE_COLLECTION_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION))
#define UNITY_MUSIC_LENS_BANSHEE_COLLECTION_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION, UnityMusicLensBansheeCollectionClass))
#define _g_object_unref0(var)   ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
#define _g_error_free0(var)   ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
#define _g_free0(var)   (var = (g_free (var), NULL))
#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_list_free__g_object_unref0_0(var)   ((var == NULL) ? NULL : (var = (_g_list_free__g_object_unref0_ (var), NULL)))
#define UNITY_MUSIC_LENS_TYPE_CATEGORY   (unity_music_lens_category_get_type ())
#define UNITY_MUSIC_LENS_DATABASE_ERROR   unity_music_lens_database_error_quark ()
#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_GET_PRIVATE(o)   (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyPrivate))

Typedefs

typedef struct _UnityMusicLensSimpleScope
typedef struct _UnityMusicLensSimpleScopeClass
typedef struct _UnityMusicLensSimpleScopePrivate
typedef struct _UnityMusicLensFilterParser
typedef struct _UnityMusicLensFilterParserClass
typedef struct _UnityMusicLensBansheeScopeProxy
typedef struct _UnityMusicLensBansheeScopeProxyClass
typedef struct _UnityMusicLensBansheeScopeProxyPrivate
typedef struct _UnityMusicLensBansheeCollection
typedef struct _UnityMusicLensBansheeCollectionClass
typedef struct _UnityMusicLensAlbum
typedef struct _UnityMusicLensAlbumClass
typedef struct _UnityMusicLensBansheeScopeProxyPerformSearchData

Enumerations

enum  UnityMusicLensDatabaseError { UNITY_MUSIC_LENS_DATABASE_ERROR_FAILED_TO_OPEN, UNITY_MUSIC_LENS_DATABASE_ERROR_FAILED_TO_OPEN }
enum  UnityMusicLensCategory {
  UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC,
  UNITY_MUSIC_LENS_CATEGORY_RADIOS, UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE,
  UNITY_MUSIC_LENS_CATEGORY_MUSIC, UNITY_MUSIC_LENS_CATEGORY_RADIOS, UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS,
  UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC, UNITY_MUSIC_LENS_CATEGORY_RADIOS, UNITY_MUSIC_LENS_CATEGORY_SONGS,
  UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC, UNITY_MUSIC_LENS_CATEGORY_RADIOS,
  UNITY_MUSIC_LENS_CATEGORY_SONGS, UNITY_MUSIC_LENS_CATEGORY_ALBUMS, UNITY_MUSIC_LENS_CATEGORY_PURCHASE, UNITY_MUSIC_LENS_CATEGORY_MUSIC,
  UNITY_MUSIC_LENS_CATEGORY_RADIOS
}

Functions

GType unity_music_lens_simple_scope_get_type (void)
UnityMusicLensBansheeScopeProxy * unity_music_lens_banshee_scope_proxy_new (void)
UnityMusicLensBansheeScopeProxy * unity_music_lens_banshee_scope_proxy_construct (GType object_type)
UnityMusicLensSimpleScope * unity_music_lens_simple_scope_construct (GType object_type)
void unity_music_lens_simple_scope_set_scope (UnityMusicLensSimpleScope *self, UnityScope *value)
UnityScope * unity_music_lens_simple_scope_get_scope (UnityMusicLensSimpleScope *self)
UnityActivationResponse * unity_music_lens_banshee_scope_proxy_activate (UnityMusicLensBansheeScopeProxy *self, const gchar *uri)
static UnityActivationResponse * _unity_music_lens_banshee_scope_proxy_activate_unity_scope_activate_uri (UnityScope *_sender, const gchar *uri, gpointer self)
void unity_music_lens_simple_scope_initialize (UnityMusicLensSimpleScope *self)
GQuark unity_music_lens_database_error_quark (void)
UnityMusicLensBansheeCollection * unity_music_lens_banshee_collection_new (GError **error)
UnityMusicLensBansheeCollection * unity_music_lens_banshee_collection_construct (GType object_type, GError **error)
UnityMusicLensAlbum * unity_music_lens_album_new (void)
UnityMusicLensAlbum * unity_music_lens_album_construct (GType object_type)
GType unity_music_lens_album_get_type (void)
static const gchar * string_to_string (const gchar *self)
 Tells banshee to play the selected uri(s)
static void _vala_array_add1 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add2 (gchar ***array, int *length, int *size, gchar *value)
static void _vala_array_add3 (gchar ***array, int *length, int *size, gchar *value)
static void _g_object_unref0_ (gpointer var)
static void _g_list_free__g_object_unref0_ (GList *self)
static void unity_music_lens_banshee_scope_proxy_real_perform_search_data_free (gpointer _data)
static gpointer _g_object_ref0 (gpointer self)
static void unity_music_lens_banshee_scope_proxy_real_perform_search (UnityMusicLensSimpleScope *base, UnityLensSearch *search, UnitySearchType search_type, GList *filters, gint max_results, GCancellable *cancellable, GAsyncReadyCallback _callback_, gpointer _user_data_)
static void unity_music_lens_banshee_scope_proxy_real_perform_search_finish (UnityMusicLensSimpleScope *base, GAsyncResult *_res_)
static gboolean unity_music_lens_banshee_scope_proxy_real_perform_search_co (UnityMusicLensBansheeScopeProxyPerformSearchData *_data_)
static gint unity_music_lens_banshee_scope_proxy_real_get_num_results_without_search (UnityMusicLensSimpleScope *base)
static gint unity_music_lens_banshee_scope_proxy_real_get_num_results_global_search (UnityMusicLensSimpleScope *base)
static gint unity_music_lens_banshee_scope_proxy_real_get_num_results_lens_search (UnityMusicLensSimpleScope *base)
static void unity_music_lens_banshee_scope_proxy_class_init (UnityMusicLensBansheeScopeProxyClass *klass)
static void unity_music_lens_banshee_scope_proxy_instance_init (UnityMusicLensBansheeScopeProxy *self)
static void unity_music_lens_banshee_scope_proxy_finalize (GObject *obj)
GType unity_music_lens_banshee_scope_proxy_get_type (void)
static void _vala_unity_music_lens_banshee_scope_proxy_get_property (GObject *object, guint property_id, GValue *value, GParamSpec *pspec)
static void _vala_array_destroy (gpointer array, gint array_length, GDestroyNotify destroy_func)
static void _vala_array_free (gpointer array, gint array_length, GDestroyNotify destroy_func)
static gint _vala_array_length (gpointer array)

Variables

static gpointer unity_music_lens_banshee_scope_proxy_parent_class = NULL

Class Documentation

struct _UnityMusicLensSimpleScope

Definition at line 91 of file banshee-scope.c.

Class Members
GObject parent_instance
UnityMusicLensSimpleScopePrivate * priv
struct _UnityMusicLensBansheeScopeProxy

Definition at line 105 of file banshee-scope.c.

Class Members
UnityMusicLensSimpleScope parent_instance
UnityMusicLensBansheeScopeProxyPrivate * priv
struct _UnityMusicLensBansheeScopeProxyClass

Definition at line 110 of file banshee-scope.c.

Class Members
UnityMusicLensSimpleScopeClass parent_class
struct _UnityMusicLensBansheeScopeProxyPrivate

Definition at line 114 of file banshee-scope.c.

Class Members
UnityMusicLensBansheeCollection * collection
struct _UnityMusicLensBansheeScopeProxyPerformSearchData

Definition at line 130 of file banshee-scope.c.

Class Members
GSimpleAsyncResult * _async_result
GAsyncResult * _res_
GObject * _source_object_
int _state_
UnitySearchType _tmp0_
UnityLensSearch * _tmp1_
gboolean _tmp2_
UnityMusicLensBansheeCollection * _tmp3_
UnityLensSearch * _tmp4_
UnitySearchType _tmp5_
GList * _tmp6_
gint _tmp7_
gint _tmp8_
GCancellable * cancellable
gint category_override
GList * filters
gint max_results
UnityLensSearch * search
UnitySearchType search_type
UnityMusicLensBansheeScopeProxy * self

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 86 of file banshee-scope.c.

#define _g_error_free0 (   var)    ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))

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

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

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

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

Definition at line 73 of file banshee-scope.c.

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

Definition at line 78 of file banshee-scope.c.

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

Definition at line 79 of file banshee-scope.c.

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

Definition at line 82 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_BANSHEE_COLLECTION (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION, UnityMusicLensBansheeCollection))

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

#define UNITY_MUSIC_LENS_BANSHEE_COLLECTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION, UnityMusicLensBansheeCollectionClass))

Definition at line 66 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_BANSHEE_COLLECTION_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION, UnityMusicLensBansheeCollectionClass))

Definition at line 69 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxy))

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

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))

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

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyClass))

Definition at line 58 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_GET_PRIVATE (   o)    (G_TYPE_INSTANCE_GET_PRIVATE ((o), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY, UnityMusicLensBansheeScopeProxyPrivate))

Definition at line 121 of file banshee-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 44 of file banshee-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 45 of file banshee-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 48 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_IS_ALBUM (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_ALBUM))

Definition at line 80 of file banshee-scope.c.

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

Definition at line 81 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_IS_BANSHEE_COLLECTION (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION))

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

#define UNITY_MUSIC_LENS_IS_BANSHEE_COLLECTION_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_COLLECTION))

Definition at line 68 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))

Definition at line 56 of file banshee-scope.c.

#define UNITY_MUSIC_LENS_IS_BANSHEE_SCOPE_PROXY_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_BANSHEE_SCOPE_PROXY))

Definition at line 57 of file banshee-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 46 of file banshee-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 47 of file banshee-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 35 of file banshee-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 36 of file banshee-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 33 of file banshee-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 34 of file banshee-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 37 of file banshee-scope.c.

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

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

Definition at line 53 of file banshee-scope.c.

Definition at line 88 of file banshee-scope.c.

Definition at line 43 of file banshee-scope.c.

Definition at line 32 of file banshee-scope.c.


Typedef Documentation

typedef struct _UnityMusicLensAlbum

Definition at line 84 of file banshee-scope.c.

typedef struct _UnityMusicLensAlbumClass

Definition at line 85 of file banshee-scope.c.

Definition at line 71 of file banshee-scope.c.

Definition at line 72 of file banshee-scope.c.

Definition at line 60 of file banshee-scope.c.

Definition at line 61 of file banshee-scope.c.

Definition at line 89 of file banshee-scope.c.

Definition at line 62 of file banshee-scope.c.

Definition at line 50 of file banshee-scope.c.

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

Definition at line 39 of file banshee-scope.c.

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

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


Enumeration Type Documentation

Enumerator:
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 
UNITY_MUSIC_LENS_CATEGORY_SONGS 
UNITY_MUSIC_LENS_CATEGORY_ALBUMS 
UNITY_MUSIC_LENS_CATEGORY_PURCHASE 
UNITY_MUSIC_LENS_CATEGORY_MUSIC 
UNITY_MUSIC_LENS_CATEGORY_RADIOS 

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

Enumerator:
UNITY_MUSIC_LENS_DATABASE_ERROR_FAILED_TO_OPEN 
UNITY_MUSIC_LENS_DATABASE_ERROR_FAILED_TO_OPEN 

Definition at line 118 of file banshee-scope.c.


Function Documentation

static void _g_list_free__g_object_unref0_ ( GList *  self) [static]

Definition at line 532 of file banshee-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 549 of file banshee-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 527 of file banshee-scope.c.

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

Here is the caller graph for this function:

static UnityActivationResponse* _unity_music_lens_banshee_scope_proxy_activate_unity_scope_activate_uri ( UnityScope *  _sender,
const gchar *  uri,
gpointer  self 
) [static]

Here is the caller graph for this function:

static void _vala_array_add1 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 300 of file banshee-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add2 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 310 of file banshee-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_add3 ( gchar ***  array,
int *  length,
int *  size,
gchar *  value 
) [static]

Definition at line 320 of file banshee-scope.c.

                                                                                    {
       if ((*length) == (*size)) {
              *size = (*size) ? (2 * (*size)) : 4;
              *array = g_renew (gchar*, *array, (*size) + 1);
       }
       (*array)[(*length)++] = value;
       (*array)[*length] = NULL;
}

Here is the caller graph for this function:

static void _vala_array_destroy ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 726 of file banshee-scope.c.

                                                                                                 {
       if ((array != NULL) && (destroy_func != NULL)) {
              int i;
              for (i = 0; i < array_length; i = i + 1) {
                     if (((gpointer*) array)[i] != NULL) {
                            destroy_func (((gpointer*) array)[i]);
                     }
              }
       }
}

Here is the caller graph for this function:

static void _vala_array_free ( gpointer  array,
gint  array_length,
GDestroyNotify  destroy_func 
) [static]

Definition at line 738 of file banshee-scope.c.

                                                                                              {
       _vala_array_destroy (array, array_length, destroy_func);
       g_free (array);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gint _vala_array_length ( gpointer  array) [static]

Definition at line 744 of file banshee-scope.c.

                                                {
       int length;
       length = 0;
       if (array) {
              while (((gpointer*) array)[length]) {
                     length++;
              }
       }
       return length;
}

Here is the caller graph for this function:

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

Definition at line 706 of file banshee-scope.c.

                                                                                                                                              {
       UnityMusicLensBansheeScopeProxy * self;
       self = UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY (object);
       switch (property_id) {
              case UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_NUM_RESULTS_WITHOUT_SEARCH:
              g_value_set_int (value, unity_music_lens_simple_scope_get_num_results_without_search ((UnityMusicLensSimpleScope*) self));
              break;
              case UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_NUM_RESULTS_GLOBAL_SEARCH:
              g_value_set_int (value, unity_music_lens_simple_scope_get_num_results_global_search ((UnityMusicLensSimpleScope*) self));
              break;
              case UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_NUM_RESULTS_LENS_SEARCH:
              g_value_set_int (value, unity_music_lens_simple_scope_get_num_results_lens_search ((UnityMusicLensSimpleScope*) 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 const gchar* string_to_string ( const gchar *  self) [static]

Tells banshee to play the selected uri(s)

Definition at line 292 of file banshee-scope.c.

                                                         {
       const gchar* result = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       result = self;
       return result;
}

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

Definition at line 180 of file banshee-scope.c.

                                                                                                                                                               {
       UnityActivationResponse* result;
       result = unity_music_lens_banshee_scope_proxy_activate (self, uri);
       return result;
}

Here is the call graph for this function:

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:

UnityMusicLensBansheeCollection* unity_music_lens_banshee_collection_construct ( GType  object_type,
GError **  error 
)

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

                                                                                                                   {
       UnityMusicLensBansheeCollection * self = NULL;
       const gchar* _tmp0_ = NULL;
       gchar* _tmp1_ = NULL;
       gchar* _tmp2_;
       sqlite3* _tmp3_ = NULL;
       gint _tmp4_ = 0;
       gint _tmp5_;
       gint rc;
       gint _tmp6_;
       GError * _inner_error_ = NULL;
       self = (UnityMusicLensBansheeCollection*) g_object_new (object_type, NULL);
       _tmp0_ = g_get_user_config_dir ();
       _tmp1_ = g_strdup_printf ("%s/banshee-1/banshee.db", _tmp0_);
       _tmp2_ = _tmp1_;
       _tmp4_ = sqlite3_open (_tmp2_, &_tmp3_);
       _sqlite3_close0 (self->priv->db);
       self->priv->db = _tmp3_;
       _tmp5_ = _tmp4_;
       _g_free0 (_tmp2_);
       rc = _tmp5_;
       _tmp6_ = rc;
       if (_tmp6_ != SQLITE_OK) {
              gint _tmp7_;
              sqlite3* _tmp8_;
              const gchar* _tmp9_ = NULL;
              GError* _tmp10_;
              _tmp7_ = rc;
              _tmp8_ = self->priv->db;
              _tmp9_ = sqlite3_errmsg (_tmp8_);
              g_printerr ("failed to open db, %d, %s\n", _tmp7_, _tmp9_);
              _tmp10_ = g_error_new_literal (UNITY_MUSIC_LENS_DATABASE_ERROR, UNITY_MUSIC_LENS_DATABASE_ERROR_FAILED_TO_OPEN, "Failed to open banshee database");
              _inner_error_ = _tmp10_;
              if (_inner_error_->domain == UNITY_MUSIC_LENS_DATABASE_ERROR) {
                     g_propagate_error (error, _inner_error_);
                     _g_object_unref0 (self);
                     return NULL;
              } else {
                     g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return NULL;
              }
       }
       return self;
}

Here is the caller graph for this function:

UnityMusicLensBansheeCollection* unity_music_lens_banshee_collection_new ( GError **  error)

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

Here is the call graph for this function:

Here is the caller graph for this function:

UnityActivationResponse * unity_music_lens_banshee_scope_proxy_activate ( UnityMusicLensBansheeScopeProxy *  self,
const gchar *  uri 
)

Definition at line 330 of file banshee-scope.c.

                                                                                                                                 {
       UnityActivationResponse* result = NULL;
       gchar* _tmp0_;
       gchar* _tmp1_;
       gchar** _tmp2_ = NULL;
       gchar** exec;
       gint exec_length1;
       gint _exec_size_;
       GError * _inner_error_ = NULL;
       g_return_val_if_fail (self != NULL, NULL);
       g_return_val_if_fail (uri != NULL, NULL);
       _tmp0_ = g_strdup ("banshee");
       _tmp1_ = g_strdup ("--play-enqueued");
       _tmp2_ = g_new0 (gchar*, 2 + 1);
       _tmp2_[0] = _tmp0_;
       _tmp2_[1] = _tmp1_;
       exec = _tmp2_;
       exec_length1 = 2;
       _exec_size_ = exec_length1;
       {
              const gchar* _tmp3_;
              gchar* _tmp4_ = NULL;
              gchar* _tmp5_;
              gboolean _tmp6_;
              gchar** _tmp36_;
              gint _tmp36__length1;
              gchar** _tmp37_;
              gint _tmp37__length1;
              gchar* _tmp38_ = NULL;
              gchar* _tmp39_;
              gchar** _tmp40_;
              gint _tmp40__length1;
              UnityActivationResponse* _tmp41_;
              UnityActivationResponse* _tmp42_;
              _tmp3_ = uri;
              _tmp4_ = g_uri_parse_scheme (_tmp3_);
              _tmp5_ = _tmp4_;
              _tmp6_ = g_strcmp0 (_tmp5_, "album") == 0;
              _g_free0 (_tmp5_);
              if (_tmp6_) {
                     const gchar* _tmp7_;
                     const gchar* _tmp8_ = NULL;
                     gchar* _tmp9_ = NULL;
                     gchar* _tmp10_;
                     const gchar* _tmp11_;
                     gchar** _tmp12_;
                     gchar** _tmp13_ = NULL;
                     gchar** split;
                     gint split_length1;
                     gint _split_size_;
                     gchar** _tmp14_;
                     gint _tmp14__length1;
                     const gchar* _tmp15_;
                     gchar* _tmp16_;
                     gchar* artist;
                     gchar** _tmp17_;
                     gint _tmp17__length1;
                     const gchar* _tmp18_;
                     gchar* _tmp19_;
                     gchar* title;
                     UnityMusicLensAlbum* _tmp20_;
                     UnityMusicLensAlbum* album;
                     UnityMusicLensAlbum* _tmp21_;
                     const gchar* _tmp22_;
                     UnityMusicLensAlbum* _tmp23_;
                     const gchar* _tmp24_;
                     UnityMusicLensBansheeCollection* _tmp25_;
                     UnityMusicLensAlbum* _tmp26_;
                     gint _tmp27_ = 0;
                     gchar** _tmp28_ = NULL;
                     _tmp7_ = uri;
                     _tmp8_ = string_to_string (_tmp7_);
                     _tmp9_ = g_strconcat ("searching for tracks for ", _tmp8_, NULL);
                     _tmp10_ = _tmp9_;
                     g_debug ("banshee-scope.vala:61: %s", _tmp10_);
                     _g_free0 (_tmp10_);
                     _tmp11_ = uri;
                     _tmp13_ = _tmp12_ = g_strsplit (_tmp11_, "/", 0);
                     split = _tmp13_;
                     split_length1 = _vala_array_length (_tmp12_);
                     _split_size_ = split_length1;
                     _tmp14_ = split;
                     _tmp14__length1 = split_length1;
                     _tmp15_ = _tmp14_[2];
                     _tmp16_ = g_strdup (_tmp15_);
                     artist = _tmp16_;
                     _tmp17_ = split;
                     _tmp17__length1 = split_length1;
                     _tmp18_ = _tmp17_[3];
                     _tmp19_ = g_strdup (_tmp18_);
                     title = _tmp19_;
                     _tmp20_ = unity_music_lens_album_new ();
                     album = _tmp20_;
                     _tmp21_ = album;
                     _tmp22_ = artist;
                     unity_music_lens_album_set_artist (_tmp21_, _tmp22_);
                     _tmp23_ = album;
                     _tmp24_ = title;
                     unity_music_lens_album_set_title (_tmp23_, _tmp24_);
                     _tmp25_ = self->priv->collection;
                     _tmp26_ = album;
                     _tmp28_ = unity_music_lens_banshee_collection_get_track_uris (_tmp25_, _tmp26_, &_tmp27_);
                     {
                            gchar** track_collection = NULL;
                            gint track_collection_length1 = 0;
                            gint _track_collection_size_ = 0;
                            gint track_it = 0;
                            track_collection = _tmp28_;
                            track_collection_length1 = _tmp27_;
                            for (track_it = 0; track_it < _tmp27_; track_it = track_it + 1) {
                                   gchar* _tmp29_;
                                   gchar* track = NULL;
                                   _tmp29_ = g_strdup (track_collection[track_it]);
                                   track = _tmp29_;
                                   {
                                          gchar** _tmp30_;
                                          gint _tmp30__length1;
                                          const gchar* _tmp31_;
                                          gchar* _tmp32_;
                                          _tmp30_ = exec;
                                          _tmp30__length1 = exec_length1;
                                          _tmp31_ = track;
                                          _tmp32_ = g_strdup (_tmp31_);
                                          _vala_array_add1 (&exec, &exec_length1, &_exec_size_, _tmp32_);
                                          _g_free0 (track);
                                   }
                            }
                            track_collection = (_vala_array_free (track_collection, track_collection_length1, (GDestroyNotify) g_free), NULL);
                     }
                     _g_object_unref0 (album);
                     _g_free0 (title);
                     _g_free0 (artist);
                     split = (_vala_array_free (split, split_length1, (GDestroyNotify) g_free), NULL);
              } else {
                     gchar** _tmp33_;
                     gint _tmp33__length1;
                     const gchar* _tmp34_;
                     gchar* _tmp35_;
                     _tmp33_ = exec;
                     _tmp33__length1 = exec_length1;
                     _tmp34_ = uri;
                     _tmp35_ = g_strdup (_tmp34_);
                     _vala_array_add2 (&exec, &exec_length1, &_exec_size_, _tmp35_);
              }
              _tmp36_ = exec;
              _tmp36__length1 = exec_length1;
              _vala_array_add3 (&exec, &exec_length1, &_exec_size_, NULL);
              _tmp37_ = exec;
              _tmp37__length1 = exec_length1;
              _tmp38_ = g_strjoinv (" ", _tmp37_);
              _tmp39_ = _tmp38_;
              g_debug ("banshee-scope.vala:80: Spawning banshee '%s'", _tmp39_);
              _g_free0 (_tmp39_);
              _tmp40_ = exec;
              _tmp40__length1 = exec_length1;
              g_spawn_async (NULL, _tmp40_, NULL, G_SPAWN_SEARCH_PATH, NULL, NULL, NULL, &_inner_error_);
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == G_SPAWN_ERROR) {
                            goto __catch1_g_spawn_error;
                     }
                     exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
                     g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return NULL;
              }
              _tmp41_ = unity_activation_response_new (UNITY_HANDLED_TYPE_HIDE_DASH, "");
              _tmp42_ = g_object_ref_sink (_tmp41_);
              result = _tmp42_;
              exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
              return result;
       }
       goto __finally1;
       __catch1_g_spawn_error:
       {
              GError* _error_ = NULL;
              const gchar* _tmp43_;
              UnityActivationResponse* _tmp44_;
              UnityActivationResponse* _tmp45_;
              _error_ = _inner_error_;
              _inner_error_ = NULL;
              _tmp43_ = uri;
              g_warning ("banshee-scope.vala:90: Failed to launch URI %s", _tmp43_);
              _tmp44_ = unity_activation_response_new (UNITY_HANDLED_TYPE_NOT_HANDLED, "");
              _tmp45_ = g_object_ref_sink (_tmp44_);
              result = _tmp45_;
              _g_error_free0 (_error_);
              exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
              return result;
       }
       __finally1:
       exec = (_vala_array_free (exec, exec_length1, (GDestroyNotify) g_free), NULL);
       g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
       g_clear_error (&_inner_error_);
       return NULL;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_banshee_scope_proxy_class_init ( UnityMusicLensBansheeScopeProxyClass *  klass) [static]

Definition at line 665 of file banshee-scope.c.

                                                                                                           {
       unity_music_lens_banshee_scope_proxy_parent_class = g_type_class_peek_parent (klass);
       g_type_class_add_private (klass, sizeof (UnityMusicLensBansheeScopeProxyPrivate));
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->perform_search = unity_music_lens_banshee_scope_proxy_real_perform_search;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->perform_search_finish = unity_music_lens_banshee_scope_proxy_real_perform_search_finish;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->get_num_results_without_search = unity_music_lens_banshee_scope_proxy_real_get_num_results_without_search;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->get_num_results_global_search = unity_music_lens_banshee_scope_proxy_real_get_num_results_global_search;
       UNITY_MUSIC_LENS_SIMPLE_SCOPE_CLASS (klass)->get_num_results_lens_search = unity_music_lens_banshee_scope_proxy_real_get_num_results_lens_search;
       G_OBJECT_CLASS (klass)->get_property = _vala_unity_music_lens_banshee_scope_proxy_get_property;
       G_OBJECT_CLASS (klass)->finalize = unity_music_lens_banshee_scope_proxy_finalize;
       g_object_class_install_property (G_OBJECT_CLASS (klass), UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_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_BANSHEE_SCOPE_PROXY_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_BANSHEE_SCOPE_PROXY_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:

Here is the caller graph for this function:

UnityMusicLensBansheeScopeProxy * unity_music_lens_banshee_scope_proxy_construct ( GType  object_type)

Definition at line 212 of file banshee-scope.c.

                                                                                                    {
       UnityMusicLensBansheeScopeProxy * self = NULL;
       UnityScope* _tmp0_;
       UnityScope* _tmp1_;
       UnityScope* _tmp2_;
       UnityScope* _tmp3_;
       UnityScope* _tmp4_;
       UnityScope* _tmp5_;
       UnityScope* _tmp6_;
       UnityScope* _tmp7_;
       UnityOptionsFilter* _tmp8_;
       UnityOptionsFilter* _tmp9_;
       const gchar* _tmp10_ = NULL;
       UnityFilterOption* _tmp11_ = NULL;
       UnityFilterOption* _tmp12_;
       GError * _inner_error_ = NULL;
       self = (UnityMusicLensBansheeScopeProxy*) unity_music_lens_simple_scope_construct (object_type);
       _tmp0_ = unity_scope_new ("/com/canonical/unity/scope/banshee");
       _tmp1_ = _tmp0_;
       unity_music_lens_simple_scope_set_scope ((UnityMusicLensSimpleScope*) self, _tmp1_);
       _g_object_unref0 (_tmp1_);
       _tmp2_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp3_ = _tmp2_;
       unity_scope_set_search_in_global (_tmp3_, TRUE);
       _tmp4_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp5_ = _tmp4_;
       g_signal_connect_object (_tmp5_, "activate-uri", (GCallback) _unity_music_lens_banshee_scope_proxy_activate_unity_scope_activate_uri, self, 0);
       _tmp6_ = unity_music_lens_simple_scope_get_scope ((UnityMusicLensSimpleScope*) self);
       _tmp7_ = _tmp6_;
       _tmp8_ = unity_scope_get_sources (_tmp7_);
       _tmp9_ = _tmp8_;
       _tmp10_ = _ ("Banshee");
       _tmp11_ = unity_options_filter_add_option (_tmp9_, "banshee", _tmp10_, NULL);
       _tmp12_ = _tmp11_;
       _g_object_unref0 (_tmp12_);
       unity_music_lens_simple_scope_initialize (UNITY_MUSIC_LENS_SIMPLE_SCOPE (self));
       {
              UnityMusicLensBansheeCollection* _tmp13_;
              UnityMusicLensBansheeCollection* _tmp14_;
              _tmp13_ = unity_music_lens_banshee_collection_new (&_inner_error_);
              _tmp14_ = _tmp13_;
              if (_inner_error_ != NULL) {
                     if (_inner_error_->domain == UNITY_MUSIC_LENS_DATABASE_ERROR) {
                            goto __catch0_unity_music_lens_database_error;
                     }
                     g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
                     g_clear_error (&_inner_error_);
                     return NULL;
              }
              _g_object_unref0 (self->priv->collection);
              self->priv->collection = _tmp14_;
       }
       goto __finally0;
       __catch0_unity_music_lens_database_error:
       {
              GError* _error_ = NULL;
              _error_ = _inner_error_;
              _inner_error_ = NULL;
              g_printerr ("Failed to open the Banshee collection database\n");
              _g_error_free0 (_error_);
              return self;
       }
       __finally0:
       if (_inner_error_ != NULL) {
              g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error_->message, g_quark_to_string (_inner_error_->domain), _inner_error_->code);
              g_clear_error (&_inner_error_);
              return NULL;
       }
       return self;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static void unity_music_lens_banshee_scope_proxy_finalize ( GObject *  obj) [static]

Definition at line 686 of file banshee-scope.c.

                                                                         {
       UnityMusicLensBansheeScopeProxy * self;
       self = UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY (obj);
       _g_object_unref0 (self->priv->collection);
       G_OBJECT_CLASS (unity_music_lens_banshee_scope_proxy_parent_class)->finalize (obj);
}

Here is the caller graph for this function:

Definition at line 694 of file banshee-scope.c.

                                                           {
       static volatile gsize unity_music_lens_banshee_scope_proxy_type_id__volatile = 0;
       if (g_once_init_enter (&unity_music_lens_banshee_scope_proxy_type_id__volatile)) {
              static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensBansheeScopeProxyClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_banshee_scope_proxy_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensBansheeScopeProxy), 0, (GInstanceInitFunc) unity_music_lens_banshee_scope_proxy_instance_init, NULL };
              GType unity_music_lens_banshee_scope_proxy_type_id;
              unity_music_lens_banshee_scope_proxy_type_id = g_type_register_static (UNITY_MUSIC_LENS_TYPE_SIMPLE_SCOPE, "UnityMusicLensBansheeScopeProxy", &g_define_type_info, 0);
              g_once_init_leave (&unity_music_lens_banshee_scope_proxy_type_id__volatile, unity_music_lens_banshee_scope_proxy_type_id);
       }
       return unity_music_lens_banshee_scope_proxy_type_id__volatile;
}

Here is the call graph for this function:

static void unity_music_lens_banshee_scope_proxy_instance_init ( UnityMusicLensBansheeScopeProxy *  self) [static]

Definition at line 681 of file banshee-scope.c.

Here is the caller graph for this function:

UnityMusicLensBansheeScopeProxy * unity_music_lens_banshee_scope_proxy_new ( void  )

Definition at line 284 of file banshee-scope.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static gint unity_music_lens_banshee_scope_proxy_real_get_num_results_global_search ( UnityMusicLensSimpleScope *  base) [static]

Definition at line 647 of file banshee-scope.c.

                                                                                                                      {
       gint result;
       UnityMusicLensBansheeScopeProxy* self;
       self = (UnityMusicLensBansheeScopeProxy*) base;
       result = 20;
       return result;
}

Here is the caller graph for this function:

static gint unity_music_lens_banshee_scope_proxy_real_get_num_results_lens_search ( UnityMusicLensSimpleScope *  base) [static]

Definition at line 656 of file banshee-scope.c.

                                                                                                                    {
       gint result;
       UnityMusicLensBansheeScopeProxy* self;
       self = (UnityMusicLensBansheeScopeProxy*) base;
       result = 50;
       return result;
}

Here is the caller graph for this function:

static gint unity_music_lens_banshee_scope_proxy_real_get_num_results_without_search ( UnityMusicLensSimpleScope *  base) [static]

Definition at line 638 of file banshee-scope.c.

                                                                                                                       {
       gint result;
       UnityMusicLensBansheeScopeProxy* self;
       self = (UnityMusicLensBansheeScopeProxy*) base;
       result = 100;
       return result;
}

Here is the caller graph for this function:

static void unity_music_lens_banshee_scope_proxy_real_perform_search ( UnityMusicLensSimpleScope *  base,
UnityLensSearch *  search,
UnitySearchType  search_type,
GList *  filters,
gint  max_results,
GCancellable *  cancellable,
GAsyncReadyCallback  _callback_,
gpointer  _user_data_ 
) [static]

Definition at line 554 of file banshee-scope.c.

                                                                                                                                                                                                                                                                                {
       UnityMusicLensBansheeScopeProxy * self;
       UnityMusicLensBansheeScopeProxyPerformSearchData* _data_;
       UnityMusicLensBansheeScopeProxy* _tmp0_;
       UnityLensSearch* _tmp1_;
       UnityLensSearch* _tmp2_;
       UnitySearchType _tmp3_;
       GList* _tmp4_;
       gint _tmp5_;
       GCancellable* _tmp6_;
       GCancellable* _tmp7_;
       self = (UnityMusicLensBansheeScopeProxy*) base;
       _data_ = g_slice_new0 (UnityMusicLensBansheeScopeProxyPerformSearchData);
       _data_->_async_result = g_simple_async_result_new (G_OBJECT (self), _callback_, _user_data_, unity_music_lens_banshee_scope_proxy_real_perform_search);
       g_simple_async_result_set_op_res_gpointer (_data_->_async_result, _data_, unity_music_lens_banshee_scope_proxy_real_perform_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_ = filters;
       __g_list_free__g_object_unref0_0 (_data_->filters);
       _data_->filters = _tmp4_;
       _tmp5_ = max_results;
       _data_->max_results = _tmp5_;
       _tmp6_ = cancellable;
       _tmp7_ = _g_object_ref0 (_tmp6_);
       _data_->cancellable = _tmp7_;
       unity_music_lens_banshee_scope_proxy_real_perform_search_co (_data_);
}

Here is the call graph for this function:

Here is the caller graph for this function:

static gboolean unity_music_lens_banshee_scope_proxy_real_perform_search_co ( UnityMusicLensBansheeScopeProxyPerformSearchData *  _data_) [static]

Definition at line 594 of file banshee-scope.c.

                                                                                                                                       {
       switch (_data_->_state_) {
              case 0:
              goto _state_0;
              default:
              g_assert_not_reached ();
       }
       _state_0:
       _data_->category_override = -1;
       _data_->_tmp0_ = _data_->search_type;
       if (_data_->_tmp0_ == UNITY_SEARCH_TYPE_GLOBAL) {
              _data_->category_override = (gint) UNITY_MUSIC_LENS_CATEGORY_MUSIC;
              _data_->_tmp1_ = _data_->search;
              _data_->_tmp2_ = FALSE;
              _data_->_tmp2_ = unity_music_lens_simple_scope_is_search_empty ((UnityMusicLensSimpleScope*) _data_->self, _data_->_tmp1_);
              if (_data_->_tmp2_) {
                     __g_list_free__g_object_unref0_0 (_data_->filters);
                     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_->_tmp3_ = _data_->self->priv->collection;
       _data_->_tmp4_ = _data_->search;
       _data_->_tmp5_ = _data_->search_type;
       _data_->_tmp6_ = _data_->filters;
       _data_->_tmp7_ = _data_->max_results;
       _data_->_tmp8_ = _data_->category_override;
       unity_music_lens_banshee_collection_search (_data_->_tmp3_, _data_->_tmp4_, _data_->_tmp5_, _data_->_tmp6_, _data_->_tmp7_, _data_->_tmp8_);
       __g_list_free__g_object_unref0_0 (_data_->filters);
       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:

Definition at line 538 of file banshee-scope.c.

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

Here is the caller graph for this function:

static void unity_music_lens_banshee_scope_proxy_real_perform_search_finish ( UnityMusicLensSimpleScope *  base,
GAsyncResult *  _res_ 
) [static]

Definition at line 588 of file banshee-scope.c.

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

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

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 156 of file banshee-scope.c.

      {
       UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_DUMMY_PROPERTY,
       UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_NUM_RESULTS_WITHOUT_SEARCH,
       UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_NUM_RESULTS_GLOBAL_SEARCH,
       UNITY_MUSIC_LENS_BANSHEE_SCOPE_PROXY_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 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 caller graph for this function:


Variable Documentation

Definition at line 154 of file banshee-scope.c.