Back to index

unity-lens-music  6.0.0
genre.c
Go to the documentation of this file.
00001 /* genre.c generated by valac 0.14.2, the Vala compiler
00002  * generated from genre.vala, do not modify */
00003 
00004 /*
00005  * Copyright (C) 2011 Canonical Ltd
00006  *
00007  * This program is free software: you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License version 3 as
00009  * published by the Free Software Foundation.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
00018  *
00019  * Authored by Alex Launi <alex.launi@canonical.com>
00020  *
00021  */
00022 
00023 #include <glib.h>
00024 #include <glib-object.h>
00025 #include <gee.h>
00026 #include <stdlib.h>
00027 #include <string.h>
00028 
00029 
00030 #define UNITY_MUSIC_LENS_TYPE_GENRE (unity_music_lens_genre_get_type ())
00031 #define UNITY_MUSIC_LENS_GENRE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenre))
00032 #define UNITY_MUSIC_LENS_GENRE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
00033 #define UNITY_MUSIC_LENS_IS_GENRE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), UNITY_MUSIC_LENS_TYPE_GENRE))
00034 #define UNITY_MUSIC_LENS_IS_GENRE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), UNITY_MUSIC_LENS_TYPE_GENRE))
00035 #define UNITY_MUSIC_LENS_GENRE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), UNITY_MUSIC_LENS_TYPE_GENRE, UnityMusicLensGenreClass))
00036 
00037 typedef struct _UnityMusicLensGenre UnityMusicLensGenre;
00038 typedef struct _UnityMusicLensGenreClass UnityMusicLensGenreClass;
00039 typedef struct _UnityMusicLensGenrePrivate UnityMusicLensGenrePrivate;
00040 #define _g_free0(var) (var = (g_free (var), NULL))
00041 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
00042 
00043 struct _UnityMusicLensGenre {
00044        GObject parent_instance;
00045        UnityMusicLensGenrePrivate * priv;
00046 };
00047 
00048 struct _UnityMusicLensGenreClass {
00049        GObjectClass parent_class;
00050 };
00051 
00052 
00053 static gpointer unity_music_lens_genre_parent_class = NULL;
00054 static GeeTreeMultiMap* unity_music_lens_genre_map;
00055 static GeeTreeMultiMap* unity_music_lens_genre_map = NULL;
00056 static GeeMap* unity_music_lens_genre_inverted_map;
00057 static GeeMap* unity_music_lens_genre_inverted_map = NULL;
00058 
00059 GType unity_music_lens_genre_get_type (void) G_GNUC_CONST;
00060 enum  {
00061        UNITY_MUSIC_LENS_GENRE_DUMMY_PROPERTY
00062 };
00063 #define UNITY_MUSIC_LENS_GENRE_BLUES_ID "blues"
00064 #define UNITY_MUSIC_LENS_GENRE_CLASSIC_ID "classic"
00065 #define UNITY_MUSIC_LENS_GENRE_COUNTRY_ID "country"
00066 #define UNITY_MUSIC_LENS_GENRE_DISCO_ID "disco"
00067 #define UNITY_MUSIC_LENS_GENRE_FUNK_ID "funk"
00068 #define UNITY_MUSIC_LENS_GENRE_ROCK_ID "rock"
00069 #define UNITY_MUSIC_LENS_GENRE_METAL_ID "metal"
00070 #define UNITY_MUSIC_LENS_GENRE_HIPHOP_ID "hip-hop"
00071 #define UNITY_MUSIC_LENS_GENRE_HOUSE_ID "house"
00072 #define UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID "new-wave"
00073 #define UNITY_MUSIC_LENS_GENRE_RANDB_ID "r-and-b"
00074 #define UNITY_MUSIC_LENS_GENRE_PUNK_ID "punk"
00075 #define UNITY_MUSIC_LENS_GENRE_JAZZ_ID "jazz"
00076 #define UNITY_MUSIC_LENS_GENRE_POP_ID "pop"
00077 #define UNITY_MUSIC_LENS_GENRE_REGGAE_ID "reggae"
00078 #define UNITY_MUSIC_LENS_GENRE_SOUL_ID "soul"
00079 #define UNITY_MUSIC_LENS_GENRE_TECHNO_ID "techno"
00080 #define UNITY_MUSIC_LENS_GENRE_OTHER_ID "other"
00081 GeeCollection* unity_music_lens_genre_get_genre_synonyms (UnityMusicLensGenre* self, const gchar* genre_id);
00082 gchar* unity_music_lens_genre_get_id_for_genre (UnityMusicLensGenre* self, const gchar* genre);
00083 UnityMusicLensGenre* unity_music_lens_genre_new (void);
00084 UnityMusicLensGenre* unity_music_lens_genre_construct (GType object_type);
00085 static void unity_music_lens_genre_finalize (GObject* obj);
00086 
00087 
00088 GeeCollection* unity_music_lens_genre_get_genre_synonyms (UnityMusicLensGenre* self, const gchar* genre_id) {
00089        GeeCollection* result = NULL;
00090        GeeTreeMultiMap* _tmp0_;
00091        const gchar* _tmp1_;
00092        gboolean _tmp2_ = FALSE;
00093        GeeLinkedList* _tmp6_;
00094        g_return_val_if_fail (self != NULL, NULL);
00095        g_return_val_if_fail (genre_id != NULL, NULL);
00096        _tmp0_ = unity_music_lens_genre_map;
00097        _tmp1_ = genre_id;
00098        _tmp2_ = gee_multi_map_contains ((GeeMultiMap*) _tmp0_, _tmp1_);
00099        if (_tmp2_) {
00100               GeeTreeMultiMap* _tmp3_;
00101               const gchar* _tmp4_;
00102               GeeCollection* _tmp5_ = NULL;
00103               _tmp3_ = unity_music_lens_genre_map;
00104               _tmp4_ = genre_id;
00105               _tmp5_ = gee_multi_map_get ((GeeMultiMap*) _tmp3_, _tmp4_);
00106               result = _tmp5_;
00107               return result;
00108        }
00109        _tmp6_ = gee_linked_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL);
00110        result = (GeeCollection*) _tmp6_;
00111        return result;
00112 }
00113 
00114 
00115 gchar* unity_music_lens_genre_get_id_for_genre (UnityMusicLensGenre* self, const gchar* genre) {
00116        gchar* result = NULL;
00117        GeeMap* _tmp0_;
00118        const gchar* _tmp1_;
00119        gpointer _tmp2_ = NULL;
00120        gchar* _tmp3_;
00121        const gchar* _tmp4_;
00122        g_return_val_if_fail (self != NULL, NULL);
00123        g_return_val_if_fail (genre != NULL, NULL);
00124        _tmp0_ = unity_music_lens_genre_inverted_map;
00125        _tmp1_ = genre;
00126        _tmp2_ = gee_map_get (_tmp0_, _tmp1_);
00127        _tmp3_ = (gchar*) _tmp2_;
00128        _tmp4_ = _tmp3_;
00129        if (_tmp4_ == NULL) {
00130               gchar* _tmp5_;
00131               _tmp5_ = g_strdup (UNITY_MUSIC_LENS_GENRE_OTHER_ID);
00132               _g_free0 (_tmp3_);
00133               _tmp3_ = _tmp5_;
00134        }
00135        result = _tmp3_;
00136        return result;
00137 }
00138 
00139 
00140 UnityMusicLensGenre* unity_music_lens_genre_construct (GType object_type) {
00141        UnityMusicLensGenre * self = NULL;
00142        self = (UnityMusicLensGenre*) g_object_new (object_type, NULL);
00143        return self;
00144 }
00145 
00146 
00147 UnityMusicLensGenre* unity_music_lens_genre_new (void) {
00148        return unity_music_lens_genre_construct (UNITY_MUSIC_LENS_TYPE_GENRE);
00149 }
00150 
00151 
00152 static void unity_music_lens_genre_class_init (UnityMusicLensGenreClass * klass) {
00153        GeeTreeMultiMap* _tmp0_;
00154        GeeTreeMultiMap* _tmp1_;
00155        GeeTreeMultiMap* _tmp2_;
00156        GeeTreeMultiMap* _tmp3_;
00157        GeeTreeMultiMap* _tmp4_;
00158        GeeTreeMultiMap* _tmp5_;
00159        GeeTreeMultiMap* _tmp6_;
00160        GeeTreeMultiMap* _tmp7_;
00161        GeeTreeMultiMap* _tmp8_;
00162        GeeTreeMultiMap* _tmp9_;
00163        GeeTreeMultiMap* _tmp10_;
00164        GeeTreeMultiMap* _tmp11_;
00165        GeeTreeMultiMap* _tmp12_;
00166        GeeTreeMultiMap* _tmp13_;
00167        GeeTreeMultiMap* _tmp14_;
00168        GeeTreeMultiMap* _tmp15_;
00169        GeeTreeMultiMap* _tmp16_;
00170        GeeTreeMultiMap* _tmp17_;
00171        GeeTreeMultiMap* _tmp18_;
00172        GeeTreeMultiMap* _tmp19_;
00173        GeeTreeMultiMap* _tmp20_;
00174        GeeTreeMultiMap* _tmp21_;
00175        GeeTreeMultiMap* _tmp22_;
00176        GeeTreeMultiMap* _tmp23_;
00177        GeeTreeMultiMap* _tmp24_;
00178        GeeTreeMultiMap* _tmp25_;
00179        GeeTreeMultiMap* _tmp26_;
00180        GeeTreeMultiMap* _tmp27_;
00181        GeeTreeMultiMap* _tmp28_;
00182        GeeTreeMultiMap* _tmp29_;
00183        GeeTreeMultiMap* _tmp30_;
00184        GeeTreeMultiMap* _tmp31_;
00185        GeeTreeMultiMap* _tmp32_;
00186        GeeTreeMultiMap* _tmp33_;
00187        GeeTreeMultiMap* _tmp34_;
00188        GeeTreeMultiMap* _tmp35_;
00189        GeeTreeMultiMap* _tmp36_;
00190        GeeTreeMultiMap* _tmp37_;
00191        GeeTreeMultiMap* _tmp38_;
00192        GeeTreeMultiMap* _tmp39_;
00193        GeeTreeMultiMap* _tmp40_;
00194        GeeTreeMultiMap* _tmp41_;
00195        GeeTreeMultiMap* _tmp42_;
00196        GeeTreeMultiMap* _tmp43_;
00197        GeeTreeMultiMap* _tmp44_;
00198        GeeTreeMultiMap* _tmp45_;
00199        GeeTreeMultiMap* _tmp46_;
00200        GeeTreeMultiMap* _tmp47_;
00201        GeeTreeMultiMap* _tmp48_;
00202        GeeTreeMultiMap* _tmp49_;
00203        GeeTreeMultiMap* _tmp50_;
00204        GeeTreeMultiMap* _tmp51_;
00205        GeeTreeMultiMap* _tmp52_;
00206        GeeTreeMultiMap* _tmp53_;
00207        GeeTreeMultiMap* _tmp54_;
00208        GeeTreeMultiMap* _tmp55_;
00209        GeeTreeMultiMap* _tmp56_;
00210        GeeHashMap* _tmp57_;
00211        unity_music_lens_genre_parent_class = g_type_class_peek_parent (klass);
00212        G_OBJECT_CLASS (klass)->finalize = unity_music_lens_genre_finalize;
00213        _tmp0_ = gee_tree_multi_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL);
00214        _g_object_unref0 (unity_music_lens_genre_map);
00215        unity_music_lens_genre_map = _tmp0_;
00216        _tmp1_ = unity_music_lens_genre_map;
00217        gee_multi_map_set ((GeeMultiMap*) _tmp1_, UNITY_MUSIC_LENS_GENRE_BLUES_ID, "blues");
00218        _tmp2_ = unity_music_lens_genre_map;
00219        gee_multi_map_set ((GeeMultiMap*) _tmp2_, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, "classic");
00220        _tmp3_ = unity_music_lens_genre_map;
00221        gee_multi_map_set ((GeeMultiMap*) _tmp3_, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, "classical");
00222        _tmp4_ = unity_music_lens_genre_map;
00223        gee_multi_map_set ((GeeMultiMap*) _tmp4_, UNITY_MUSIC_LENS_GENRE_CLASSIC_ID, "opera");
00224        _tmp5_ = unity_music_lens_genre_map;
00225        gee_multi_map_set ((GeeMultiMap*) _tmp5_, UNITY_MUSIC_LENS_GENRE_COUNTRY_ID, "country");
00226        _tmp6_ = unity_music_lens_genre_map;
00227        gee_multi_map_set ((GeeMultiMap*) _tmp6_, UNITY_MUSIC_LENS_GENRE_DISCO_ID, "disco");
00228        _tmp7_ = unity_music_lens_genre_map;
00229        gee_multi_map_set ((GeeMultiMap*) _tmp7_, UNITY_MUSIC_LENS_GENRE_FUNK_ID, "funk");
00230        _tmp8_ = unity_music_lens_genre_map;
00231        gee_multi_map_set ((GeeMultiMap*) _tmp8_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "rock");
00232        _tmp9_ = unity_music_lens_genre_map;
00233        gee_multi_map_set ((GeeMultiMap*) _tmp9_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "heavy");
00234        _tmp10_ = unity_music_lens_genre_map;
00235        gee_multi_map_set ((GeeMultiMap*) _tmp10_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "hard");
00236        _tmp11_ = unity_music_lens_genre_map;
00237        gee_multi_map_set ((GeeMultiMap*) _tmp11_, UNITY_MUSIC_LENS_GENRE_ROCK_ID, "rock and roll");
00238        _tmp12_ = unity_music_lens_genre_map;
00239        gee_multi_map_set ((GeeMultiMap*) _tmp12_, UNITY_MUSIC_LENS_GENRE_METAL_ID, "metal");
00240        _tmp13_ = unity_music_lens_genre_map;
00241        gee_multi_map_set ((GeeMultiMap*) _tmp13_, UNITY_MUSIC_LENS_GENRE_METAL_ID, "heavy");
00242        _tmp14_ = unity_music_lens_genre_map;
00243        gee_multi_map_set ((GeeMultiMap*) _tmp14_, UNITY_MUSIC_LENS_GENRE_METAL_ID, "heavy metal");
00244        _tmp15_ = unity_music_lens_genre_map;
00245        gee_multi_map_set ((GeeMultiMap*) _tmp15_, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, "hip-hop");
00246        _tmp16_ = unity_music_lens_genre_map;
00247        gee_multi_map_set ((GeeMultiMap*) _tmp16_, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, "rap");
00248        _tmp17_ = unity_music_lens_genre_map;
00249        gee_multi_map_set ((GeeMultiMap*) _tmp17_, UNITY_MUSIC_LENS_GENRE_HIPHOP_ID, "rap & hip hop");
00250        _tmp18_ = unity_music_lens_genre_map;
00251        gee_multi_map_set ((GeeMultiMap*) _tmp18_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "house");
00252        _tmp19_ = unity_music_lens_genre_map;
00253        gee_multi_map_set ((GeeMultiMap*) _tmp19_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "chillout");
00254        _tmp20_ = unity_music_lens_genre_map;
00255        gee_multi_map_set ((GeeMultiMap*) _tmp20_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "minimal");
00256        _tmp21_ = unity_music_lens_genre_map;
00257        gee_multi_map_set ((GeeMultiMap*) _tmp21_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "hard");
00258        _tmp22_ = unity_music_lens_genre_map;
00259        gee_multi_map_set ((GeeMultiMap*) _tmp22_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "electronic");
00260        _tmp23_ = unity_music_lens_genre_map;
00261        gee_multi_map_set ((GeeMultiMap*) _tmp23_, UNITY_MUSIC_LENS_GENRE_HOUSE_ID, "dance");
00262        _tmp24_ = unity_music_lens_genre_map;
00263        gee_multi_map_set ((GeeMultiMap*) _tmp24_, UNITY_MUSIC_LENS_GENRE_NEWWAVE_ID, "new-wave");
00264        _tmp25_ = unity_music_lens_genre_map;
00265        gee_multi_map_set ((GeeMultiMap*) _tmp25_, UNITY_MUSIC_LENS_GENRE_RANDB_ID, "r-and-b");
00266        _tmp26_ = unity_music_lens_genre_map;
00267        gee_multi_map_set ((GeeMultiMap*) _tmp26_, UNITY_MUSIC_LENS_GENRE_RANDB_ID, "r&b");
00268        _tmp27_ = unity_music_lens_genre_map;
00269        gee_multi_map_set ((GeeMultiMap*) _tmp27_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "punk");
00270        _tmp28_ = unity_music_lens_genre_map;
00271        gee_multi_map_set ((GeeMultiMap*) _tmp28_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "punk rock");
00272        _tmp29_ = unity_music_lens_genre_map;
00273        gee_multi_map_set ((GeeMultiMap*) _tmp29_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "hardcore");
00274        _tmp30_ = unity_music_lens_genre_map;
00275        gee_multi_map_set ((GeeMultiMap*) _tmp30_, UNITY_MUSIC_LENS_GENRE_PUNK_ID, "heavy");
00276        _tmp31_ = unity_music_lens_genre_map;
00277        gee_multi_map_set ((GeeMultiMap*) _tmp31_, UNITY_MUSIC_LENS_GENRE_JAZZ_ID, "jazz");
00278        _tmp32_ = unity_music_lens_genre_map;
00279        gee_multi_map_set ((GeeMultiMap*) _tmp32_, UNITY_MUSIC_LENS_GENRE_POP_ID, "pop");
00280        _tmp33_ = unity_music_lens_genre_map;
00281        gee_multi_map_set ((GeeMultiMap*) _tmp33_, UNITY_MUSIC_LENS_GENRE_REGGAE_ID, "reggae");
00282        _tmp34_ = unity_music_lens_genre_map;
00283        gee_multi_map_set ((GeeMultiMap*) _tmp34_, UNITY_MUSIC_LENS_GENRE_SOUL_ID, "soul");
00284        _tmp35_ = unity_music_lens_genre_map;
00285        gee_multi_map_set ((GeeMultiMap*) _tmp35_, UNITY_MUSIC_LENS_GENRE_SOUL_ID, "gospel");
00286        _tmp36_ = unity_music_lens_genre_map;
00287        gee_multi_map_set ((GeeMultiMap*) _tmp36_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "techno");
00288        _tmp37_ = unity_music_lens_genre_map;
00289        gee_multi_map_set ((GeeMultiMap*) _tmp37_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "minimal");
00290        _tmp38_ = unity_music_lens_genre_map;
00291        gee_multi_map_set ((GeeMultiMap*) _tmp38_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "trance");
00292        _tmp39_ = unity_music_lens_genre_map;
00293        gee_multi_map_set ((GeeMultiMap*) _tmp39_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "chillout");
00294        _tmp40_ = unity_music_lens_genre_map;
00295        gee_multi_map_set ((GeeMultiMap*) _tmp40_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "electronic");
00296        _tmp41_ = unity_music_lens_genre_map;
00297        gee_multi_map_set ((GeeMultiMap*) _tmp41_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "electronica");
00298        _tmp42_ = unity_music_lens_genre_map;
00299        gee_multi_map_set ((GeeMultiMap*) _tmp42_, UNITY_MUSIC_LENS_GENRE_TECHNO_ID, "dance");
00300        _tmp43_ = unity_music_lens_genre_map;
00301        gee_multi_map_set ((GeeMultiMap*) _tmp43_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "other");
00302        _tmp44_ = unity_music_lens_genre_map;
00303        gee_multi_map_set ((GeeMultiMap*) _tmp44_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "african");
00304        _tmp45_ = unity_music_lens_genre_map;
00305        gee_multi_map_set ((GeeMultiMap*) _tmp45_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "alternative");
00306        _tmp46_ = unity_music_lens_genre_map;
00307        gee_multi_map_set ((GeeMultiMap*) _tmp46_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "ambient");
00308        _tmp47_ = unity_music_lens_genre_map;
00309        gee_multi_map_set ((GeeMultiMap*) _tmp47_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "asian");
00310        _tmp48_ = unity_music_lens_genre_map;
00311        gee_multi_map_set ((GeeMultiMap*) _tmp48_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "brazilian");
00312        _tmp49_ = unity_music_lens_genre_map;
00313        gee_multi_map_set ((GeeMultiMap*) _tmp49_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "celtic");
00314        _tmp50_ = unity_music_lens_genre_map;
00315        gee_multi_map_set ((GeeMultiMap*) _tmp50_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "christmas");
00316        _tmp51_ = unity_music_lens_genre_map;
00317        gee_multi_map_set ((GeeMultiMap*) _tmp51_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "folk");
00318        _tmp52_ = unity_music_lens_genre_map;
00319        gee_multi_map_set ((GeeMultiMap*) _tmp52_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "latin");
00320        _tmp53_ = unity_music_lens_genre_map;
00321        gee_multi_map_set ((GeeMultiMap*) _tmp53_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "oldies");
00322        _tmp54_ = unity_music_lens_genre_map;
00323        gee_multi_map_set ((GeeMultiMap*) _tmp54_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "soundtrack");
00324        _tmp55_ = unity_music_lens_genre_map;
00325        gee_multi_map_set ((GeeMultiMap*) _tmp55_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "traditional");
00326        _tmp56_ = unity_music_lens_genre_map;
00327        gee_multi_map_set ((GeeMultiMap*) _tmp56_, UNITY_MUSIC_LENS_GENRE_OTHER_ID, "world");
00328        _tmp57_ = gee_hash_map_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, NULL, NULL, NULL);
00329        _g_object_unref0 (unity_music_lens_genre_inverted_map);
00330        unity_music_lens_genre_inverted_map = (GeeMap*) _tmp57_;
00331        {
00332               GeeTreeMultiMap* _tmp58_;
00333               GeeSet* _tmp59_ = NULL;
00334               GeeSet* _tmp60_;
00335               GeeIterator* _tmp61_ = NULL;
00336               GeeIterator* _tmp62_;
00337               GeeIterator* _key_it;
00338               _tmp58_ = unity_music_lens_genre_map;
00339               _tmp59_ = gee_multi_map_get_keys ((GeeMultiMap*) _tmp58_);
00340               _tmp60_ = _tmp59_;
00341               _tmp61_ = gee_iterable_iterator ((GeeIterable*) _tmp60_);
00342               _tmp62_ = _tmp61_;
00343               _g_object_unref0 (_tmp60_);
00344               _key_it = _tmp62_;
00345               while (TRUE) {
00346                      GeeIterator* _tmp63_;
00347                      gboolean _tmp64_ = FALSE;
00348                      GeeIterator* _tmp65_;
00349                      gpointer _tmp66_ = NULL;
00350                      gchar* key;
00351                      GeeTreeMultiMap* _tmp67_;
00352                      const gchar* _tmp68_;
00353                      GeeCollection* _tmp69_ = NULL;
00354                      GeeCollection* values_collection;
00355                      _tmp63_ = _key_it;
00356                      _tmp64_ = gee_iterator_next (_tmp63_);
00357                      if (!_tmp64_) {
00358                             break;
00359                      }
00360                      _tmp65_ = _key_it;
00361                      _tmp66_ = gee_iterator_get (_tmp65_);
00362                      key = (gchar*) _tmp66_;
00363                      _tmp67_ = unity_music_lens_genre_map;
00364                      _tmp68_ = key;
00365                      _tmp69_ = gee_multi_map_get ((GeeMultiMap*) _tmp67_, _tmp68_);
00366                      values_collection = _tmp69_;
00367                      {
00368                             GeeCollection* _tmp70_;
00369                             GeeIterator* _tmp71_ = NULL;
00370                             GeeIterator* _val_it;
00371                             _tmp70_ = values_collection;
00372                             _tmp71_ = gee_iterable_iterator ((GeeIterable*) _tmp70_);
00373                             _val_it = _tmp71_;
00374                             while (TRUE) {
00375                                    GeeIterator* _tmp72_;
00376                                    gboolean _tmp73_ = FALSE;
00377                                    GeeIterator* _tmp74_;
00378                                    gpointer _tmp75_ = NULL;
00379                                    gchar* val;
00380                                    GeeMap* _tmp76_;
00381                                    const gchar* _tmp77_;
00382                                    const gchar* _tmp78_;
00383                                    _tmp72_ = _val_it;
00384                                    _tmp73_ = gee_iterator_next (_tmp72_);
00385                                    if (!_tmp73_) {
00386                                           break;
00387                                    }
00388                                    _tmp74_ = _val_it;
00389                                    _tmp75_ = gee_iterator_get (_tmp74_);
00390                                    val = (gchar*) _tmp75_;
00391                                    _tmp76_ = unity_music_lens_genre_inverted_map;
00392                                    _tmp77_ = val;
00393                                    _tmp78_ = key;
00394                                    gee_map_set (_tmp76_, _tmp77_, _tmp78_);
00395                                    _g_free0 (val);
00396                             }
00397                             _g_object_unref0 (_val_it);
00398                      }
00399                      _g_object_unref0 (values_collection);
00400                      _g_free0 (key);
00401               }
00402               _g_object_unref0 (_key_it);
00403        }
00404 }
00405 
00406 
00407 static void unity_music_lens_genre_instance_init (UnityMusicLensGenre * self) {
00408 }
00409 
00410 
00411 static void unity_music_lens_genre_finalize (GObject* obj) {
00412        UnityMusicLensGenre * self;
00413        self = UNITY_MUSIC_LENS_GENRE (obj);
00414        G_OBJECT_CLASS (unity_music_lens_genre_parent_class)->finalize (obj);
00415 }
00416 
00417 
00418 GType unity_music_lens_genre_get_type (void) {
00419        static volatile gsize unity_music_lens_genre_type_id__volatile = 0;
00420        if (g_once_init_enter (&unity_music_lens_genre_type_id__volatile)) {
00421               static const GTypeInfo g_define_type_info = { sizeof (UnityMusicLensGenreClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) unity_music_lens_genre_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (UnityMusicLensGenre), 0, (GInstanceInitFunc) unity_music_lens_genre_instance_init, NULL };
00422               GType unity_music_lens_genre_type_id;
00423               unity_music_lens_genre_type_id = g_type_register_static (G_TYPE_OBJECT, "UnityMusicLensGenre", &g_define_type_info, 0);
00424               g_once_init_leave (&unity_music_lens_genre_type_id__volatile, unity_music_lens_genre_type_id);
00425        }
00426        return unity_music_lens_genre_type_id__volatile;
00427 }
00428 
00429 
00430