View Issue Details

IDProjectCategoryView StatusLast Update
0002028gnunet-gtkgnunet-fs-gtkpublic2011-12-26 22:28
ReporterChristian Grothoff Assigned ToLRN  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product VersionGit master 
Target Version0.9.1Fixed in Version0.9.1 
Summary0002028: [patch] publication type selector in publish dialog does nothing
DescriptionAccoring to LRN, this was simply never implemented:

(05:55:24 PM) grothoff-office: Also, what is the "publication type" selector supposed to do?
(05:55:55 PM) grothoff-office: I had expected that depending on which type I was setting, the list of metatypes from LE in the tree view below would be different. But it seems to always be the full list...
(05:58:31 PM) LRN: "difference" is not implemented yet
(05:58:46 PM) grothoff-office: Ah.
(05:58:54 PM) grothoff-office: => Mantis as open issue? ;-)
(05:59:25 PM) LRN: (the idea is to change the contents of the model from which the types are taken every time you change publication type)
(06:00:02 PM) LRN: I've originally intended to bundle "compatible with publication types: A,B,C..." along with metadata types, but since they are taken directly from Extractor, there's no way to do that
(06:01:18 PM) grothoff-office: Yeah, you'll need to hardwire a list in the code.
(06:01:31 PM) LRN: So it won't be in the data structures, it'll be in code (switch (pubtype) { case type1: enable_types(a,b,c);break; case type2: enable_types (e,c,s)}
(06:01:38 PM) grothoff-office: I've filed 0002025-0002027 with the open issues that I have with the publishing dialog.
(06:02:10 PM) grothoff-office: Why not use an array instead of a big 'case' statement? That's cleaner.
(06:02:22 PM) LRN: well, that's a possibility too
(06:02:39 PM) grothoff-office: Just map LE-type to a bitmap (enable_video | enable_audio)
(06:02:44 PM) LRN: but i really wanted to use glade for this (this way it would have been possible to keep data away from the code)
(06:02:51 PM) grothoff-office: Ah.
(06:03:09 PM) LRN: But, since we're stuck with LE, it's not possible anyway
(06:03:10 PM) ***grothoff-office doesn't see a nice way to do this in glade.
TagsNo tags attached.
Attached Files
0001-Make-publication-type-combobox-functional.patch (50,611 bytes)   
From 77f62f08c2400bd8ba0cd65ee2b6254fc7640d36 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1=D1?=
 =?UTF-8?q?=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= <lrn1986@gmail.com>
Date: Sun, 25 Dec 2011 01:32:04 +0400
Subject: [PATCH] Make publication type combobox functional

---
 contrib/gnunet_fs_gtk_main_window.glade    |    7 +-
 src/fs/gnunet-fs-gtk-edit_publish_dialog.c |   85 ++-
 src/fs/metatypes.c                         | 1187 ++++++++++++++++++++++++++++
 3 files changed, 1262 insertions(+), 17 deletions(-)
 create mode 100644 src/fs/metatypes.c

diff --git a/contrib/gnunet_fs_gtk_main_window.glade b/contrib/gnunet_fs_gtk_main_window.glade
index 6536f10..dc5bc59 100644
--- a/contrib/gnunet_fs_gtk_main_window.glade
+++ b/contrib/gnunet_fs_gtk_main_window.glade
@@ -61,11 +61,12 @@
                           </packing>
                         </child>
                         <child>
-                          <object class="GtkComboBox" id="_GNUNET_GTK_edit_publication_type_combo">
+                          <object class="GtkComboBox" id="GNUNET_GTK_edit_publication_type_combo">
                             <property name="visible">True</property>
                             <property name="can_focus">False</property>
                             <property name="model">GNUNET_GTK_publication_types_liststore</property>
                             <property name="active">0</property>
+                            <signal name="changed" handler="GNUNET_GTK_edit_publication_type_combo_changed_cb" swapped="no"/>
                             <child>
                               <object class="GtkCellRendererText" id="cellrenderertext2"/>
                               <attributes>
@@ -2165,12 +2166,12 @@
     <columns>
       <!-- column-name Type -->
       <column type="gint"/>
-      <!-- column-name Type1 -->
+      <!-- column-name Type_name -->
       <column type="gchararray"/>
     </columns>
     <data>
       <row>
-        <col id="0">-1</col>
+        <col id="0">0</col>
         <col id="1" translatable="yes">Generic</col>
       </row>
       <row>
diff --git a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
index 5324e3a..f0fe628 100644
--- a/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
+++ b/src/fs/gnunet-fs-gtk-edit_publish_dialog.c
@@ -30,6 +30,60 @@
 
 #define PUBSTATE "edit-publication-state"
 
+#include "metatypes.c"
+
+void change_metatypes (GtkBuilder *builder, gint code)
+{
+  GtkListStore *metatypes_list;
+  gint pub_type = 0, i;
+  gint pubtype_count = 0;
+  gint max_type;
+  GtkTreeIter iter;
+  metatypes_list = GTK_LIST_STORE (gtk_builder_get_object (builder,
+      "GNUNET_GTK_publication_metadata_types_liststore"));
+
+  for (pub_type = 0; types[pub_type] != NULL; pub_type++)
+    pubtype_count += 1;
+
+  if (code < pubtype_count)
+    pub_type = code;
+  else
+    pub_type = 0;
+
+  gtk_list_store_clear (metatypes_list);
+  max_type = EXTRACTOR_metatype_get_max ();
+  for (i = 0; types[pub_type][i] != EXTRACTOR_METATYPE_RESERVED; i++)
+  {
+    if (types[pub_type][i] < max_type && types[pub_type][i] > 0)
+      gtk_list_store_insert_with_values (metatypes_list, &iter, G_MAXINT,
+          0, types[pub_type][i],
+          1, EXTRACTOR_METAFORMAT_UTF8,
+          2, EXTRACTOR_metatype_to_string (types[pub_type][i]),
+          3, EXTRACTOR_metatype_to_description (types[pub_type][i]), -1);
+  }
+}
+
+void
+GNUNET_GTK_edit_publication_type_combo_changed_cb (GtkComboBox *widget,
+    gpointer user_data)
+{
+  GtkTreeIter iter;
+  GtkBuilder *builder;
+  GtkListStore *pubtypes_list;
+  gint code;
+
+  if (!gtk_combo_box_get_active_iter (widget, &iter))
+    return;
+  builder = GTK_BUILDER (user_data);
+
+  pubtypes_list = GTK_LIST_STORE (gtk_builder_get_object (builder,
+      "GNUNET_GTK_publication_types_liststore"));
+
+  gtk_tree_model_get (GTK_TREE_MODEL (pubtypes_list), &iter, 0, &code, -1);
+
+  change_metatypes (builder, code);
+}
+
 struct EditPublicationState
 {
   int do_index;
@@ -105,16 +159,10 @@ GNUNET_GTK_edit_publication_window_realize_cb (GtkWidget *widget,
 					       gpointer user_data)
 {
   GtkBuilder *builder;
-  GtkListStore *metatypes_list;
-  GtkTreeIter iter;
   GtkTreeView *tv;
   GtkTreeSelection *sel;
-  guint type;
-  guint max_type;
 
   builder = GTK_BUILDER (user_data);
-  metatypes_list = GTK_LIST_STORE (gtk_builder_get_object (builder,
-      "GNUNET_GTK_publication_metadata_types_liststore"));
 
   tv = GTK_TREE_VIEW (gtk_builder_get_object (builder,
       "GNUNET_GTK_edit_publication_metadata_tree_view"));
@@ -127,14 +175,6 @@ GNUNET_GTK_edit_publication_window_realize_cb (GtkWidget *widget,
   sel = gtk_tree_view_get_selection (tv);
   g_signal_connect (G_OBJECT (sel), "changed",
                     G_CALLBACK (keywords_selection_changed_cb), builder);
-
-  max_type = EXTRACTOR_metatype_get_max ();
-  for (type = 1; type < max_type - 1; type++)
-    gtk_list_store_insert_with_values (metatypes_list, &iter, G_MAXINT,
-        0, type,
-        1, EXTRACTOR_METAFORMAT_UTF8,
-        2, EXTRACTOR_metatype_to_string (type),
-        3, EXTRACTOR_metatype_to_description (type), -1);
 }
 
 
@@ -1036,6 +1076,10 @@ GNUNET_FS_GTK_edit_publish_dialog (GtkBuilder *builder,
   GtkEntry *entry;
   GtkWidget *ok;
   struct EditPublicationState *state;
+  GtkListStore *pubtypes_list;
+  GtkComboBox *pubtypes_combo;
+  GtkTreeIter iter;
+  gint code;
 
   GNUNET_FS_GTK_setup_expiration_year_adjustment (builder);
   if (GNUNET_FS_file_information_is_directory (fip))
@@ -1067,6 +1111,19 @@ GNUNET_FS_GTK_edit_publish_dialog (GtkBuilder *builder,
 					       "GNUNET_GTK_edit_publication_window"));
   gtk_window_set_title (GTK_WINDOW (dialog), short_fn);
 
+  pubtypes_list = GTK_LIST_STORE (gtk_builder_get_object (builder,
+      "GNUNET_GTK_publication_types_liststore"));
+  pubtypes_combo = GTK_COMBO_BOX (gtk_builder_get_object (builder,
+      "GNUNET_GTK_edit_publication_type_combo"));
+
+  if (gtk_combo_box_get_active_iter (pubtypes_combo, &iter))
+  {
+    gtk_tree_model_get (GTK_TREE_MODEL (pubtypes_list), &iter, 0, &code, -1);
+    change_metatypes (builder, 0);
+  }
+  else
+    gtk_combo_box_set_active (pubtypes_combo, 0);
+
   state = GNUNET_malloc (sizeof (struct EditPublicationState));
   state->do_index = do_index;
   if (NULL != short_fn)
diff --git a/src/fs/metatypes.c b/src/fs/metatypes.c
new file mode 100644
index 0000000..2acc0e5
--- /dev/null
+++ b/src/fs/metatypes.c
@@ -0,0 +1,1187 @@
+
+gint types_generic[3 + 26 + 7 + 8 + 11 + 10 + 3 + 26 + 17 + 5 + 11 + 45 + 8 + 1] = 
+{ /* Generic */
+    EXTRACTOR_METATYPE_MIMETYPE,
+    EXTRACTOR_METATYPE_FILENAME,
+    EXTRACTOR_METATYPE_COMMENT,
+
+    EXTRACTOR_METATYPE_TITLE,
+    EXTRACTOR_METATYPE_BOOK_TITLE,
+    EXTRACTOR_METATYPE_BOOK_EDITION,
+    EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER,
+    EXTRACTOR_METATYPE_JOURNAL_NAME,
+    EXTRACTOR_METATYPE_JOURNAL_VOLUME,
+    EXTRACTOR_METATYPE_JOURNAL_NUMBER,
+    EXTRACTOR_METATYPE_PAGE_COUNT,
+    EXTRACTOR_METATYPE_PAGE_RANGE,
+    EXTRACTOR_METATYPE_AUTHOR_NAME,
+    EXTRACTOR_METATYPE_AUTHOR_EMAIL,
+    EXTRACTOR_METATYPE_AUTHOR_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER,
+    EXTRACTOR_METATYPE_PUBLISHER_ADDRESS,
+    EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER_SERIES,
+    EXTRACTOR_METATYPE_PUBLICATION_TYPE,
+    EXTRACTOR_METATYPE_PUBLICATION_YEAR,
+    EXTRACTOR_METATYPE_PUBLICATION_MONTH,
+    EXTRACTOR_METATYPE_PUBLICATION_DAY,
+    EXTRACTOR_METATYPE_PUBLICATION_DATE,
+    EXTRACTOR_METATYPE_BIBTEX_EPRINT,
+    EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE,
+    EXTRACTOR_METATYPE_LANGUAGE,
+    EXTRACTOR_METATYPE_CREATION_TIME,
+    EXTRACTOR_METATYPE_URL,
+
+    EXTRACTOR_METATYPE_URI, 
+    EXTRACTOR_METATYPE_ISRC,
+    EXTRACTOR_METATYPE_HASH_MD4,
+    EXTRACTOR_METATYPE_HASH_MD5,
+    EXTRACTOR_METATYPE_HASH_SHA0,
+    EXTRACTOR_METATYPE_HASH_SHA1,
+    EXTRACTOR_METATYPE_HASH_RMD160,
+
+    EXTRACTOR_METATYPE_GPS_LATITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LATITUDE,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE,
+    EXTRACTOR_METATYPE_LOCATION_CITY,
+    EXTRACTOR_METATYPE_LOCATION_SUBLOCATION,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE,
+
+    EXTRACTOR_METATYPE_UNKNOWN,
+    EXTRACTOR_METATYPE_DESCRIPTION,
+    EXTRACTOR_METATYPE_COPYRIGHT,
+    EXTRACTOR_METATYPE_RIGHTS,
+    EXTRACTOR_METATYPE_KEYWORDS,
+    EXTRACTOR_METATYPE_ABSTRACT,
+    EXTRACTOR_METATYPE_SUMMARY,
+    EXTRACTOR_METATYPE_SUBJECT,
+    EXTRACTOR_METATYPE_CREATOR,
+    EXTRACTOR_METATYPE_FORMAT,
+    EXTRACTOR_METATYPE_FORMAT_VERSION,
+
+    EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, 
+    EXTRACTOR_METATYPE_UNKNOWN_DATE, 
+    EXTRACTOR_METATYPE_CREATION_DATE,
+    EXTRACTOR_METATYPE_MODIFICATION_DATE,
+    EXTRACTOR_METATYPE_LAST_PRINTED,
+    EXTRACTOR_METATYPE_LAST_SAVED_BY,
+    EXTRACTOR_METATYPE_TOTAL_EDITING_TIME,
+    EXTRACTOR_METATYPE_EDITING_CYCLES,
+    EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_REVISION_HISTORY,
+
+    EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE,
+    EXTRACTOR_METATYPE_FINDER_FILE_TYPE,
+    EXTRACTOR_METATYPE_FINDER_FILE_CREATOR,
+
+    EXTRACTOR_METATYPE_PACKAGE_NAME,
+    EXTRACTOR_METATYPE_PACKAGE_VERSION,
+    EXTRACTOR_METATYPE_SECTION,
+    EXTRACTOR_METATYPE_UPLOAD_PRIORITY,
+    EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY,
+    EXTRACTOR_METATYPE_PACKAGE_CONFLICTS,
+    EXTRACTOR_METATYPE_PACKAGE_REPLACES,
+    EXTRACTOR_METATYPE_PACKAGE_PROVIDES,
+    EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS,
+    EXTRACTOR_METATYPE_PACKAGE_SUGGESTS,
+    EXTRACTOR_METATYPE_PACKAGE_MAINTAINER,
+    EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE,
+    EXTRACTOR_METATYPE_PACKAGE_SOURCE,
+    EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL,
+    EXTRACTOR_METATYPE_TARGET_ARCHITECTURE,
+    EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY,
+    EXTRACTOR_METATYPE_LICENSE,
+    EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION,
+    EXTRACTOR_METATYPE_BUILDHOST,
+    EXTRACTOR_METATYPE_VENDOR,
+    EXTRACTOR_METATYPE_TARGET_OS,
+    EXTRACTOR_METATYPE_SOFTWARE_VERSION,
+    EXTRACTOR_METATYPE_TARGET_PLATFORM,
+    EXTRACTOR_METATYPE_RESOURCE_TYPE,
+    EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH,
+    EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY,
+
+    EXTRACTOR_METATYPE_CAMERA_MAKE,
+    EXTRACTOR_METATYPE_CAMERA_MODEL,
+    EXTRACTOR_METATYPE_EXPOSURE,
+    EXTRACTOR_METATYPE_APERTURE,
+    EXTRACTOR_METATYPE_EXPOSURE_BIAS,
+    EXTRACTOR_METATYPE_FLASH,
+    EXTRACTOR_METATYPE_FLASH_BIAS,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM,
+    EXTRACTOR_METATYPE_ISO_SPEED,
+    EXTRACTOR_METATYPE_EXPOSURE_MODE,
+    EXTRACTOR_METATYPE_METERING_MODE,
+    EXTRACTOR_METATYPE_MACRO_MODE,
+    EXTRACTOR_METATYPE_IMAGE_QUALITY,
+    EXTRACTOR_METATYPE_WHITE_BALANCE,
+    EXTRACTOR_METATYPE_ORIENTATION,
+    EXTRACTOR_METATYPE_MAGNIFICATION,
+
+    EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+    EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_THUMBNAIL,
+    EXTRACTOR_METATYPE_IMAGE_RESOLUTION,
+    EXTRACTOR_METATYPE_SOURCE,
+
+    EXTRACTOR_METATYPE_CHARACTER_SET,
+    EXTRACTOR_METATYPE_LINE_COUNT,
+    EXTRACTOR_METATYPE_PARAGRAPH_COUNT,
+    EXTRACTOR_METATYPE_WORD_COUNT,
+    EXTRACTOR_METATYPE_CHARACTER_COUNT,
+    EXTRACTOR_METATYPE_PAGE_ORIENTATION,
+    EXTRACTOR_METATYPE_PAPER_SIZE,
+    EXTRACTOR_METATYPE_TEMPLATE,
+    EXTRACTOR_METATYPE_COMPANY,
+    EXTRACTOR_METATYPE_MANAGER,
+    EXTRACTOR_METATYPE_REVISION_NUMBER,
+
+    EXTRACTOR_METATYPE_DURATION,
+    EXTRACTOR_METATYPE_ALBUM,
+    EXTRACTOR_METATYPE_ARTIST,
+    EXTRACTOR_METATYPE_GENRE,
+    EXTRACTOR_METATYPE_TRACK_NUMBER,
+    EXTRACTOR_METATYPE_DISC_NUMBER,
+    EXTRACTOR_METATYPE_PERFORMER,
+    EXTRACTOR_METATYPE_CONTACT_INFORMATION,
+    EXTRACTOR_METATYPE_SONG_VERSION,
+    EXTRACTOR_METATYPE_PICTURE,
+    EXTRACTOR_METATYPE_COVER_PICTURE,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE,
+    EXTRACTOR_METATYPE_EVENT_PICTURE,
+    EXTRACTOR_METATYPE_LOGO,
+    EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM,
+    EXTRACTOR_METATYPE_SOURCE_DEVICE,
+    EXTRACTOR_METATYPE_DISCLAIMER,
+    EXTRACTOR_METATYPE_WARNING,
+    EXTRACTOR_METATYPE_PAGE_ORDER,
+    EXTRACTOR_METATYPE_WRITER,
+    EXTRACTOR_METATYPE_PRODUCT_VERSION,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_NAME,
+    EXTRACTOR_METATYPE_MOVIE_DIRECTOR,
+    EXTRACTOR_METATYPE_NETWORK_NAME,
+    EXTRACTOR_METATYPE_SHOW_NAME,
+    EXTRACTOR_METATYPE_CHAPTER_NAME,
+    EXTRACTOR_METATYPE_SONG_COUNT,
+    EXTRACTOR_METATYPE_STARTING_SONG,
+    EXTRACTOR_METATYPE_PLAY_COUNTER,
+    EXTRACTOR_METATYPE_CONDUCTOR,
+    EXTRACTOR_METATYPE_INTERPRETATION,
+    EXTRACTOR_METATYPE_COMPOSER,
+    EXTRACTOR_METATYPE_BEATS_PER_MINUTE,
+    EXTRACTOR_METATYPE_ENCODED_BY,
+    EXTRACTOR_METATYPE_ORIGINAL_TITLE,
+    EXTRACTOR_METATYPE_ORIGINAL_ARTIST,
+    EXTRACTOR_METATYPE_ORIGINAL_WRITER,
+    EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR,
+    EXTRACTOR_METATYPE_ORIGINAL_PERFORMER,
+    EXTRACTOR_METATYPE_LYRICS,
+    EXTRACTOR_METATYPE_POPULARITY_METER,
+    EXTRACTOR_METATYPE_LICENSEE,
+    EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST,
+    EXTRACTOR_METATYPE_MOOD, 
+    EXTRACTOR_METATYPE_SUBTITLE, 
+
+    EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE,
+    EXTRACTOR_METATYPE_GNUNET_FULL_DATA,
+    EXTRACTOR_METATYPE_RATING,
+    EXTRACTOR_METATYPE_ORGANIZATION,
+    EXTRACTOR_METATYPE_RIPPER,
+    EXTRACTOR_METATYPE_PRODUCER,
+    EXTRACTOR_METATYPE_GROUP,
+    EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME,
+
+    EXTRACTOR_METATYPE_RESERVED
+};
+gint types_text[3 + 26 + 7 /*+ 8*/ + 11 + 10 + 3 /*+ 26 + 17 + 5*/ + 11 /*+ 45*/ + 8 + 1] = 
+{ /* Text */
+    EXTRACTOR_METATYPE_MIMETYPE,
+    EXTRACTOR_METATYPE_FILENAME,
+    EXTRACTOR_METATYPE_COMMENT,
+
+    EXTRACTOR_METATYPE_TITLE,
+    EXTRACTOR_METATYPE_BOOK_TITLE,
+    EXTRACTOR_METATYPE_BOOK_EDITION,
+    EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER,
+    EXTRACTOR_METATYPE_JOURNAL_NAME,
+    EXTRACTOR_METATYPE_JOURNAL_VOLUME,
+    EXTRACTOR_METATYPE_JOURNAL_NUMBER,
+    EXTRACTOR_METATYPE_PAGE_COUNT,
+    EXTRACTOR_METATYPE_PAGE_RANGE,
+    EXTRACTOR_METATYPE_AUTHOR_NAME,
+    EXTRACTOR_METATYPE_AUTHOR_EMAIL,
+    EXTRACTOR_METATYPE_AUTHOR_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER,
+    EXTRACTOR_METATYPE_PUBLISHER_ADDRESS,
+    EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER_SERIES,
+    EXTRACTOR_METATYPE_PUBLICATION_TYPE,
+    EXTRACTOR_METATYPE_PUBLICATION_YEAR,
+    EXTRACTOR_METATYPE_PUBLICATION_MONTH,
+    EXTRACTOR_METATYPE_PUBLICATION_DAY,
+    EXTRACTOR_METATYPE_PUBLICATION_DATE,
+    EXTRACTOR_METATYPE_BIBTEX_EPRINT,
+    EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE,
+    EXTRACTOR_METATYPE_LANGUAGE,
+    EXTRACTOR_METATYPE_CREATION_TIME,
+    EXTRACTOR_METATYPE_URL,
+
+    EXTRACTOR_METATYPE_URI, 
+    EXTRACTOR_METATYPE_ISRC,
+    EXTRACTOR_METATYPE_HASH_MD4,
+    EXTRACTOR_METATYPE_HASH_MD5,
+    EXTRACTOR_METATYPE_HASH_SHA0,
+    EXTRACTOR_METATYPE_HASH_SHA1,
+    EXTRACTOR_METATYPE_HASH_RMD160,
+/*
+    EXTRACTOR_METATYPE_GPS_LATITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LATITUDE,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE,
+    EXTRACTOR_METATYPE_LOCATION_CITY,
+    EXTRACTOR_METATYPE_LOCATION_SUBLOCATION,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE,
+*/
+    EXTRACTOR_METATYPE_UNKNOWN,
+    EXTRACTOR_METATYPE_DESCRIPTION,
+    EXTRACTOR_METATYPE_COPYRIGHT,
+    EXTRACTOR_METATYPE_RIGHTS,
+    EXTRACTOR_METATYPE_KEYWORDS,
+    EXTRACTOR_METATYPE_ABSTRACT,
+    EXTRACTOR_METATYPE_SUMMARY,
+    EXTRACTOR_METATYPE_SUBJECT,
+    EXTRACTOR_METATYPE_CREATOR,
+    EXTRACTOR_METATYPE_FORMAT,
+    EXTRACTOR_METATYPE_FORMAT_VERSION,
+
+    EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, 
+    EXTRACTOR_METATYPE_UNKNOWN_DATE, 
+    EXTRACTOR_METATYPE_CREATION_DATE,
+    EXTRACTOR_METATYPE_MODIFICATION_DATE,
+    EXTRACTOR_METATYPE_LAST_PRINTED,
+    EXTRACTOR_METATYPE_LAST_SAVED_BY,
+    EXTRACTOR_METATYPE_TOTAL_EDITING_TIME,
+    EXTRACTOR_METATYPE_EDITING_CYCLES,
+    EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_REVISION_HISTORY,
+
+    EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE,
+    EXTRACTOR_METATYPE_FINDER_FILE_TYPE,
+    EXTRACTOR_METATYPE_FINDER_FILE_CREATOR,
+/*
+    EXTRACTOR_METATYPE_PACKAGE_NAME,
+    EXTRACTOR_METATYPE_PACKAGE_VERSION,
+    EXTRACTOR_METATYPE_SECTION,
+    EXTRACTOR_METATYPE_UPLOAD_PRIORITY,
+    EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY,
+    EXTRACTOR_METATYPE_PACKAGE_CONFLICTS,
+    EXTRACTOR_METATYPE_PACKAGE_REPLACES,
+    EXTRACTOR_METATYPE_PACKAGE_PROVIDES,
+    EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS,
+    EXTRACTOR_METATYPE_PACKAGE_SUGGESTS,
+    EXTRACTOR_METATYPE_PACKAGE_MAINTAINER,
+    EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE,
+    EXTRACTOR_METATYPE_PACKAGE_SOURCE,
+    EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL,
+    EXTRACTOR_METATYPE_TARGET_ARCHITECTURE,
+    EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY,
+    EXTRACTOR_METATYPE_LICENSE,
+    EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION,
+    EXTRACTOR_METATYPE_BUILDHOST,
+    EXTRACTOR_METATYPE_VENDOR,
+    EXTRACTOR_METATYPE_TARGET_OS,
+    EXTRACTOR_METATYPE_SOFTWARE_VERSION,
+    EXTRACTOR_METATYPE_TARGET_PLATFORM,
+    EXTRACTOR_METATYPE_RESOURCE_TYPE,
+    EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH,
+    EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY,
+
+    EXTRACTOR_METATYPE_CAMERA_MAKE,
+    EXTRACTOR_METATYPE_CAMERA_MODEL,
+    EXTRACTOR_METATYPE_EXPOSURE,
+    EXTRACTOR_METATYPE_APERTURE,
+    EXTRACTOR_METATYPE_EXPOSURE_BIAS,
+    EXTRACTOR_METATYPE_FLASH,
+    EXTRACTOR_METATYPE_FLASH_BIAS,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM,
+    EXTRACTOR_METATYPE_ISO_SPEED,
+    EXTRACTOR_METATYPE_EXPOSURE_MODE,
+    EXTRACTOR_METATYPE_METERING_MODE,
+    EXTRACTOR_METATYPE_MACRO_MODE,
+    EXTRACTOR_METATYPE_IMAGE_QUALITY,
+    EXTRACTOR_METATYPE_WHITE_BALANCE,
+    EXTRACTOR_METATYPE_ORIENTATION,
+    EXTRACTOR_METATYPE_MAGNIFICATION,
+
+    EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+    EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_THUMBNAIL,
+    EXTRACTOR_METATYPE_IMAGE_RESOLUTION,
+    EXTRACTOR_METATYPE_SOURCE,
+*/
+    EXTRACTOR_METATYPE_CHARACTER_SET,
+    EXTRACTOR_METATYPE_LINE_COUNT,
+    EXTRACTOR_METATYPE_PARAGRAPH_COUNT,
+    EXTRACTOR_METATYPE_WORD_COUNT,
+    EXTRACTOR_METATYPE_CHARACTER_COUNT,
+    EXTRACTOR_METATYPE_PAGE_ORIENTATION,
+    EXTRACTOR_METATYPE_PAPER_SIZE,
+    EXTRACTOR_METATYPE_TEMPLATE,
+    EXTRACTOR_METATYPE_COMPANY,
+    EXTRACTOR_METATYPE_MANAGER,
+    EXTRACTOR_METATYPE_REVISION_NUMBER,
+/*
+    EXTRACTOR_METATYPE_DURATION,
+    EXTRACTOR_METATYPE_ALBUM,
+    EXTRACTOR_METATYPE_ARTIST,
+    EXTRACTOR_METATYPE_GENRE,
+    EXTRACTOR_METATYPE_TRACK_NUMBER,
+    EXTRACTOR_METATYPE_DISC_NUMBER,
+    EXTRACTOR_METATYPE_PERFORMER,
+    EXTRACTOR_METATYPE_CONTACT_INFORMATION,
+    EXTRACTOR_METATYPE_SONG_VERSION,
+    EXTRACTOR_METATYPE_PICTURE,
+    EXTRACTOR_METATYPE_COVER_PICTURE,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE,
+    EXTRACTOR_METATYPE_EVENT_PICTURE,
+    EXTRACTOR_METATYPE_LOGO,
+    EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM,
+    EXTRACTOR_METATYPE_SOURCE_DEVICE,
+    EXTRACTOR_METATYPE_DISCLAIMER,
+    EXTRACTOR_METATYPE_WARNING,
+    EXTRACTOR_METATYPE_PAGE_ORDER,
+    EXTRACTOR_METATYPE_WRITER,
+    EXTRACTOR_METATYPE_PRODUCT_VERSION,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_NAME,
+    EXTRACTOR_METATYPE_MOVIE_DIRECTOR,
+    EXTRACTOR_METATYPE_NETWORK_NAME,
+    EXTRACTOR_METATYPE_SHOW_NAME,
+    EXTRACTOR_METATYPE_CHAPTER_NAME,
+    EXTRACTOR_METATYPE_SONG_COUNT,
+    EXTRACTOR_METATYPE_STARTING_SONG,
+    EXTRACTOR_METATYPE_PLAY_COUNTER,
+    EXTRACTOR_METATYPE_CONDUCTOR,
+    EXTRACTOR_METATYPE_INTERPRETATION,
+    EXTRACTOR_METATYPE_COMPOSER,
+    EXTRACTOR_METATYPE_BEATS_PER_MINUTE,
+    EXTRACTOR_METATYPE_ENCODED_BY,
+    EXTRACTOR_METATYPE_ORIGINAL_TITLE,
+    EXTRACTOR_METATYPE_ORIGINAL_ARTIST,
+    EXTRACTOR_METATYPE_ORIGINAL_WRITER,
+    EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR,
+    EXTRACTOR_METATYPE_ORIGINAL_PERFORMER,
+    EXTRACTOR_METATYPE_LYRICS,
+    EXTRACTOR_METATYPE_POPULARITY_METER,
+    EXTRACTOR_METATYPE_LICENSEE,
+    EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST,
+    EXTRACTOR_METATYPE_MOOD, 
+    EXTRACTOR_METATYPE_SUBTITLE, 
+*/
+    EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE,
+    EXTRACTOR_METATYPE_GNUNET_FULL_DATA,
+    EXTRACTOR_METATYPE_RATING,
+    EXTRACTOR_METATYPE_ORGANIZATION,
+    EXTRACTOR_METATYPE_RIPPER,
+    EXTRACTOR_METATYPE_PRODUCER,
+    EXTRACTOR_METATYPE_GROUP,
+    EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME,
+
+    EXTRACTOR_METATYPE_RESERVED
+};
+gint types_music[3 /*+ 26*/ + 7 /*+ 8*/ + 11 + /*10*/9 + 3 /*+ 26 + 17 + 5 + 11*/ + 45 + 8 + 1] = 
+{ /* Music */
+    EXTRACTOR_METATYPE_MIMETYPE,
+    EXTRACTOR_METATYPE_FILENAME,
+    EXTRACTOR_METATYPE_COMMENT,
+/*
+    EXTRACTOR_METATYPE_TITLE,
+    EXTRACTOR_METATYPE_BOOK_TITLE,
+    EXTRACTOR_METATYPE_BOOK_EDITION,
+    EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER,
+    EXTRACTOR_METATYPE_JOURNAL_NAME,
+    EXTRACTOR_METATYPE_JOURNAL_VOLUME,
+    EXTRACTOR_METATYPE_JOURNAL_NUMBER,
+    EXTRACTOR_METATYPE_PAGE_COUNT,
+    EXTRACTOR_METATYPE_PAGE_RANGE,
+    EXTRACTOR_METATYPE_AUTHOR_NAME,
+    EXTRACTOR_METATYPE_AUTHOR_EMAIL,
+    EXTRACTOR_METATYPE_AUTHOR_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER,
+    EXTRACTOR_METATYPE_PUBLISHER_ADDRESS,
+    EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER_SERIES,
+    EXTRACTOR_METATYPE_PUBLICATION_TYPE,
+    EXTRACTOR_METATYPE_PUBLICATION_YEAR,
+    EXTRACTOR_METATYPE_PUBLICATION_MONTH,
+    EXTRACTOR_METATYPE_PUBLICATION_DAY,
+    EXTRACTOR_METATYPE_PUBLICATION_DATE,
+    EXTRACTOR_METATYPE_BIBTEX_EPRINT,
+    EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE,
+    EXTRACTOR_METATYPE_LANGUAGE,
+    EXTRACTOR_METATYPE_CREATION_TIME,
+    EXTRACTOR_METATYPE_URL,
+*/
+    EXTRACTOR_METATYPE_URI, 
+    EXTRACTOR_METATYPE_ISRC,
+    EXTRACTOR_METATYPE_HASH_MD4,
+    EXTRACTOR_METATYPE_HASH_MD5,
+    EXTRACTOR_METATYPE_HASH_SHA0,
+    EXTRACTOR_METATYPE_HASH_SHA1,
+    EXTRACTOR_METATYPE_HASH_RMD160,
+/*
+    EXTRACTOR_METATYPE_GPS_LATITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LATITUDE,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE,
+    EXTRACTOR_METATYPE_LOCATION_CITY,
+    EXTRACTOR_METATYPE_LOCATION_SUBLOCATION,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE,
+*/
+    EXTRACTOR_METATYPE_UNKNOWN,
+    EXTRACTOR_METATYPE_DESCRIPTION,
+    EXTRACTOR_METATYPE_COPYRIGHT,
+    EXTRACTOR_METATYPE_RIGHTS,
+    EXTRACTOR_METATYPE_KEYWORDS,
+    EXTRACTOR_METATYPE_ABSTRACT,
+    EXTRACTOR_METATYPE_SUMMARY,
+    EXTRACTOR_METATYPE_SUBJECT,
+    EXTRACTOR_METATYPE_CREATOR,
+    EXTRACTOR_METATYPE_FORMAT,
+    EXTRACTOR_METATYPE_FORMAT_VERSION,
+
+    EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, 
+    EXTRACTOR_METATYPE_UNKNOWN_DATE, 
+    EXTRACTOR_METATYPE_CREATION_DATE,
+    EXTRACTOR_METATYPE_MODIFICATION_DATE,
+/*    EXTRACTOR_METATYPE_LAST_PRINTED,*/
+    EXTRACTOR_METATYPE_LAST_SAVED_BY,
+    EXTRACTOR_METATYPE_TOTAL_EDITING_TIME,
+    EXTRACTOR_METATYPE_EDITING_CYCLES,
+    EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_REVISION_HISTORY,
+
+    EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE,
+    EXTRACTOR_METATYPE_FINDER_FILE_TYPE,
+    EXTRACTOR_METATYPE_FINDER_FILE_CREATOR,
+/*
+    EXTRACTOR_METATYPE_PACKAGE_NAME,
+    EXTRACTOR_METATYPE_PACKAGE_VERSION,
+    EXTRACTOR_METATYPE_SECTION,
+    EXTRACTOR_METATYPE_UPLOAD_PRIORITY,
+    EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY,
+    EXTRACTOR_METATYPE_PACKAGE_CONFLICTS,
+    EXTRACTOR_METATYPE_PACKAGE_REPLACES,
+    EXTRACTOR_METATYPE_PACKAGE_PROVIDES,
+    EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS,
+    EXTRACTOR_METATYPE_PACKAGE_SUGGESTS,
+    EXTRACTOR_METATYPE_PACKAGE_MAINTAINER,
+    EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE,
+    EXTRACTOR_METATYPE_PACKAGE_SOURCE,
+    EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL,
+    EXTRACTOR_METATYPE_TARGET_ARCHITECTURE,
+    EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY,
+    EXTRACTOR_METATYPE_LICENSE,
+    EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION,
+    EXTRACTOR_METATYPE_BUILDHOST,
+    EXTRACTOR_METATYPE_VENDOR,
+    EXTRACTOR_METATYPE_TARGET_OS,
+    EXTRACTOR_METATYPE_SOFTWARE_VERSION,
+    EXTRACTOR_METATYPE_TARGET_PLATFORM,
+    EXTRACTOR_METATYPE_RESOURCE_TYPE,
+    EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH,
+    EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY,
+
+    EXTRACTOR_METATYPE_CAMERA_MAKE,
+    EXTRACTOR_METATYPE_CAMERA_MODEL,
+    EXTRACTOR_METATYPE_EXPOSURE,
+    EXTRACTOR_METATYPE_APERTURE,
+    EXTRACTOR_METATYPE_EXPOSURE_BIAS,
+    EXTRACTOR_METATYPE_FLASH,
+    EXTRACTOR_METATYPE_FLASH_BIAS,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM,
+    EXTRACTOR_METATYPE_ISO_SPEED,
+    EXTRACTOR_METATYPE_EXPOSURE_MODE,
+    EXTRACTOR_METATYPE_METERING_MODE,
+    EXTRACTOR_METATYPE_MACRO_MODE,
+    EXTRACTOR_METATYPE_IMAGE_QUALITY,
+    EXTRACTOR_METATYPE_WHITE_BALANCE,
+    EXTRACTOR_METATYPE_ORIENTATION,
+    EXTRACTOR_METATYPE_MAGNIFICATION,
+
+    EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+    EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_THUMBNAIL,
+    EXTRACTOR_METATYPE_IMAGE_RESOLUTION,
+    EXTRACTOR_METATYPE_SOURCE,
+
+    EXTRACTOR_METATYPE_CHARACTER_SET,
+    EXTRACTOR_METATYPE_LINE_COUNT,
+    EXTRACTOR_METATYPE_PARAGRAPH_COUNT,
+    EXTRACTOR_METATYPE_WORD_COUNT,
+    EXTRACTOR_METATYPE_CHARACTER_COUNT,
+    EXTRACTOR_METATYPE_PAGE_ORIENTATION,
+    EXTRACTOR_METATYPE_PAPER_SIZE,
+    EXTRACTOR_METATYPE_TEMPLATE,
+    EXTRACTOR_METATYPE_COMPANY,
+    EXTRACTOR_METATYPE_MANAGER,
+    EXTRACTOR_METATYPE_REVISION_NUMBER,
+*/
+    EXTRACTOR_METATYPE_DURATION,
+    EXTRACTOR_METATYPE_ALBUM,
+    EXTRACTOR_METATYPE_ARTIST,
+    EXTRACTOR_METATYPE_GENRE,
+    EXTRACTOR_METATYPE_TRACK_NUMBER,
+    EXTRACTOR_METATYPE_DISC_NUMBER,
+    EXTRACTOR_METATYPE_PERFORMER,
+    EXTRACTOR_METATYPE_CONTACT_INFORMATION,
+    EXTRACTOR_METATYPE_SONG_VERSION,
+    EXTRACTOR_METATYPE_PICTURE,
+    EXTRACTOR_METATYPE_COVER_PICTURE,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE,
+    EXTRACTOR_METATYPE_EVENT_PICTURE,
+    EXTRACTOR_METATYPE_LOGO,
+    EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM,
+    EXTRACTOR_METATYPE_SOURCE_DEVICE,
+    EXTRACTOR_METATYPE_DISCLAIMER,
+    EXTRACTOR_METATYPE_WARNING,
+    EXTRACTOR_METATYPE_PAGE_ORDER,
+    EXTRACTOR_METATYPE_WRITER,
+    EXTRACTOR_METATYPE_PRODUCT_VERSION,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_NAME,
+    EXTRACTOR_METATYPE_MOVIE_DIRECTOR,
+    EXTRACTOR_METATYPE_NETWORK_NAME,
+    EXTRACTOR_METATYPE_SHOW_NAME,
+    EXTRACTOR_METATYPE_CHAPTER_NAME,
+    EXTRACTOR_METATYPE_SONG_COUNT,
+    EXTRACTOR_METATYPE_STARTING_SONG,
+    EXTRACTOR_METATYPE_PLAY_COUNTER,
+    EXTRACTOR_METATYPE_CONDUCTOR,
+    EXTRACTOR_METATYPE_INTERPRETATION,
+    EXTRACTOR_METATYPE_COMPOSER,
+    EXTRACTOR_METATYPE_BEATS_PER_MINUTE,
+    EXTRACTOR_METATYPE_ENCODED_BY,
+    EXTRACTOR_METATYPE_ORIGINAL_TITLE,
+    EXTRACTOR_METATYPE_ORIGINAL_ARTIST,
+    EXTRACTOR_METATYPE_ORIGINAL_WRITER,
+    EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR,
+    EXTRACTOR_METATYPE_ORIGINAL_PERFORMER,
+    EXTRACTOR_METATYPE_LYRICS,
+    EXTRACTOR_METATYPE_POPULARITY_METER,
+    EXTRACTOR_METATYPE_LICENSEE,
+    EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST,
+    EXTRACTOR_METATYPE_MOOD, 
+    EXTRACTOR_METATYPE_SUBTITLE, 
+
+    EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE,
+    EXTRACTOR_METATYPE_GNUNET_FULL_DATA,
+    EXTRACTOR_METATYPE_RATING,
+    EXTRACTOR_METATYPE_ORGANIZATION,
+    EXTRACTOR_METATYPE_RIPPER,
+    EXTRACTOR_METATYPE_PRODUCER,
+    EXTRACTOR_METATYPE_GROUP,
+    EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME,
+
+    EXTRACTOR_METATYPE_RESERVED
+};
+gint types_video[3 /*+ 26*/ + 7 /*+ 8*/ + 11 + /*10*/9 + 3 /*+ 26 + 17*/ + 5 /*+ 11*/ + 45 + 8 + 1] = 
+{ /* Video */
+    EXTRACTOR_METATYPE_MIMETYPE,
+    EXTRACTOR_METATYPE_FILENAME,
+    EXTRACTOR_METATYPE_COMMENT,
+/*
+    EXTRACTOR_METATYPE_TITLE,
+    EXTRACTOR_METATYPE_BOOK_TITLE,
+    EXTRACTOR_METATYPE_BOOK_EDITION,
+    EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER,
+    EXTRACTOR_METATYPE_JOURNAL_NAME,
+    EXTRACTOR_METATYPE_JOURNAL_VOLUME,
+    EXTRACTOR_METATYPE_JOURNAL_NUMBER,
+    EXTRACTOR_METATYPE_PAGE_COUNT,
+    EXTRACTOR_METATYPE_PAGE_RANGE,
+    EXTRACTOR_METATYPE_AUTHOR_NAME,
+    EXTRACTOR_METATYPE_AUTHOR_EMAIL,
+    EXTRACTOR_METATYPE_AUTHOR_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER,
+    EXTRACTOR_METATYPE_PUBLISHER_ADDRESS,
+    EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER_SERIES,
+    EXTRACTOR_METATYPE_PUBLICATION_TYPE,
+    EXTRACTOR_METATYPE_PUBLICATION_YEAR,
+    EXTRACTOR_METATYPE_PUBLICATION_MONTH,
+    EXTRACTOR_METATYPE_PUBLICATION_DAY,
+    EXTRACTOR_METATYPE_PUBLICATION_DATE,
+    EXTRACTOR_METATYPE_BIBTEX_EPRINT,
+    EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE,
+    EXTRACTOR_METATYPE_LANGUAGE,
+    EXTRACTOR_METATYPE_CREATION_TIME,
+    EXTRACTOR_METATYPE_URL,
+*/
+    EXTRACTOR_METATYPE_URI, 
+    EXTRACTOR_METATYPE_ISRC,
+    EXTRACTOR_METATYPE_HASH_MD4,
+    EXTRACTOR_METATYPE_HASH_MD5,
+    EXTRACTOR_METATYPE_HASH_SHA0,
+    EXTRACTOR_METATYPE_HASH_SHA1,
+    EXTRACTOR_METATYPE_HASH_RMD160,
+/*
+    EXTRACTOR_METATYPE_GPS_LATITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LATITUDE,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE,
+    EXTRACTOR_METATYPE_LOCATION_CITY,
+    EXTRACTOR_METATYPE_LOCATION_SUBLOCATION,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE,
+*/
+    EXTRACTOR_METATYPE_UNKNOWN,
+    EXTRACTOR_METATYPE_DESCRIPTION,
+    EXTRACTOR_METATYPE_COPYRIGHT,
+    EXTRACTOR_METATYPE_RIGHTS,
+    EXTRACTOR_METATYPE_KEYWORDS,
+    EXTRACTOR_METATYPE_ABSTRACT,
+    EXTRACTOR_METATYPE_SUMMARY,
+    EXTRACTOR_METATYPE_SUBJECT,
+    EXTRACTOR_METATYPE_CREATOR,
+    EXTRACTOR_METATYPE_FORMAT,
+    EXTRACTOR_METATYPE_FORMAT_VERSION,
+
+    EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, 
+    EXTRACTOR_METATYPE_UNKNOWN_DATE, 
+    EXTRACTOR_METATYPE_CREATION_DATE,
+    EXTRACTOR_METATYPE_MODIFICATION_DATE,
+/*    EXTRACTOR_METATYPE_LAST_PRINTED,*/
+    EXTRACTOR_METATYPE_LAST_SAVED_BY,
+    EXTRACTOR_METATYPE_TOTAL_EDITING_TIME,
+    EXTRACTOR_METATYPE_EDITING_CYCLES,
+    EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_REVISION_HISTORY,
+
+    EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE,
+    EXTRACTOR_METATYPE_FINDER_FILE_TYPE,
+    EXTRACTOR_METATYPE_FINDER_FILE_CREATOR,
+/*
+    EXTRACTOR_METATYPE_PACKAGE_NAME,
+    EXTRACTOR_METATYPE_PACKAGE_VERSION,
+    EXTRACTOR_METATYPE_SECTION,
+    EXTRACTOR_METATYPE_UPLOAD_PRIORITY,
+    EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY,
+    EXTRACTOR_METATYPE_PACKAGE_CONFLICTS,
+    EXTRACTOR_METATYPE_PACKAGE_REPLACES,
+    EXTRACTOR_METATYPE_PACKAGE_PROVIDES,
+    EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS,
+    EXTRACTOR_METATYPE_PACKAGE_SUGGESTS,
+    EXTRACTOR_METATYPE_PACKAGE_MAINTAINER,
+    EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE,
+    EXTRACTOR_METATYPE_PACKAGE_SOURCE,
+    EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL,
+    EXTRACTOR_METATYPE_TARGET_ARCHITECTURE,
+    EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY,
+    EXTRACTOR_METATYPE_LICENSE,
+    EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION,
+    EXTRACTOR_METATYPE_BUILDHOST,
+    EXTRACTOR_METATYPE_VENDOR,
+    EXTRACTOR_METATYPE_TARGET_OS,
+    EXTRACTOR_METATYPE_SOFTWARE_VERSION,
+    EXTRACTOR_METATYPE_TARGET_PLATFORM,
+    EXTRACTOR_METATYPE_RESOURCE_TYPE,
+    EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH,
+    EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY,
+
+    EXTRACTOR_METATYPE_CAMERA_MAKE,
+    EXTRACTOR_METATYPE_CAMERA_MODEL,
+    EXTRACTOR_METATYPE_EXPOSURE,
+    EXTRACTOR_METATYPE_APERTURE,
+    EXTRACTOR_METATYPE_EXPOSURE_BIAS,
+    EXTRACTOR_METATYPE_FLASH,
+    EXTRACTOR_METATYPE_FLASH_BIAS,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM,
+    EXTRACTOR_METATYPE_ISO_SPEED,
+    EXTRACTOR_METATYPE_EXPOSURE_MODE,
+    EXTRACTOR_METATYPE_METERING_MODE,
+    EXTRACTOR_METATYPE_MACRO_MODE,
+    EXTRACTOR_METATYPE_IMAGE_QUALITY,
+    EXTRACTOR_METATYPE_WHITE_BALANCE,
+    EXTRACTOR_METATYPE_ORIENTATION,
+    EXTRACTOR_METATYPE_MAGNIFICATION,
+*/
+    EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+    EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_THUMBNAIL,
+    EXTRACTOR_METATYPE_IMAGE_RESOLUTION,
+    EXTRACTOR_METATYPE_SOURCE,
+/*
+    EXTRACTOR_METATYPE_CHARACTER_SET,
+    EXTRACTOR_METATYPE_LINE_COUNT,
+    EXTRACTOR_METATYPE_PARAGRAPH_COUNT,
+    EXTRACTOR_METATYPE_WORD_COUNT,
+    EXTRACTOR_METATYPE_CHARACTER_COUNT,
+    EXTRACTOR_METATYPE_PAGE_ORIENTATION,
+    EXTRACTOR_METATYPE_PAPER_SIZE,
+    EXTRACTOR_METATYPE_TEMPLATE,
+    EXTRACTOR_METATYPE_COMPANY,
+    EXTRACTOR_METATYPE_MANAGER,
+    EXTRACTOR_METATYPE_REVISION_NUMBER,
+*/
+    EXTRACTOR_METATYPE_DURATION,
+    EXTRACTOR_METATYPE_ALBUM,
+    EXTRACTOR_METATYPE_ARTIST,
+    EXTRACTOR_METATYPE_GENRE,
+    EXTRACTOR_METATYPE_TRACK_NUMBER,
+    EXTRACTOR_METATYPE_DISC_NUMBER,
+    EXTRACTOR_METATYPE_PERFORMER,
+    EXTRACTOR_METATYPE_CONTACT_INFORMATION,
+    EXTRACTOR_METATYPE_SONG_VERSION,
+    EXTRACTOR_METATYPE_PICTURE,
+    EXTRACTOR_METATYPE_COVER_PICTURE,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE,
+    EXTRACTOR_METATYPE_EVENT_PICTURE,
+    EXTRACTOR_METATYPE_LOGO,
+    EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM,
+    EXTRACTOR_METATYPE_SOURCE_DEVICE,
+    EXTRACTOR_METATYPE_DISCLAIMER,
+    EXTRACTOR_METATYPE_WARNING,
+    EXTRACTOR_METATYPE_PAGE_ORDER,
+    EXTRACTOR_METATYPE_WRITER,
+    EXTRACTOR_METATYPE_PRODUCT_VERSION,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_NAME,
+    EXTRACTOR_METATYPE_MOVIE_DIRECTOR,
+    EXTRACTOR_METATYPE_NETWORK_NAME,
+    EXTRACTOR_METATYPE_SHOW_NAME,
+    EXTRACTOR_METATYPE_CHAPTER_NAME,
+    EXTRACTOR_METATYPE_SONG_COUNT,
+    EXTRACTOR_METATYPE_STARTING_SONG,
+    EXTRACTOR_METATYPE_PLAY_COUNTER,
+    EXTRACTOR_METATYPE_CONDUCTOR,
+    EXTRACTOR_METATYPE_INTERPRETATION,
+    EXTRACTOR_METATYPE_COMPOSER,
+    EXTRACTOR_METATYPE_BEATS_PER_MINUTE,
+    EXTRACTOR_METATYPE_ENCODED_BY,
+    EXTRACTOR_METATYPE_ORIGINAL_TITLE,
+    EXTRACTOR_METATYPE_ORIGINAL_ARTIST,
+    EXTRACTOR_METATYPE_ORIGINAL_WRITER,
+    EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR,
+    EXTRACTOR_METATYPE_ORIGINAL_PERFORMER,
+    EXTRACTOR_METATYPE_LYRICS,
+    EXTRACTOR_METATYPE_POPULARITY_METER,
+    EXTRACTOR_METATYPE_LICENSEE,
+    EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST,
+    EXTRACTOR_METATYPE_MOOD, 
+    EXTRACTOR_METATYPE_SUBTITLE, 
+
+    EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE,
+    EXTRACTOR_METATYPE_GNUNET_FULL_DATA,
+    EXTRACTOR_METATYPE_RATING,
+    EXTRACTOR_METATYPE_ORGANIZATION,
+    EXTRACTOR_METATYPE_RIPPER,
+    EXTRACTOR_METATYPE_PRODUCER,
+    EXTRACTOR_METATYPE_GROUP,
+    EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME,
+
+    EXTRACTOR_METATYPE_RESERVED
+};
+gint types_image[3 /*+ 26*/ + 7 /*+ 8*/ + 11 + 10 + 3 /*+ 26*/ + 17 + 5 /*+ 11 + 45*/ + 8 + 1] = 
+{ /* Image */
+    EXTRACTOR_METATYPE_MIMETYPE,
+    EXTRACTOR_METATYPE_FILENAME,
+    EXTRACTOR_METATYPE_COMMENT,
+/*
+    EXTRACTOR_METATYPE_TITLE,
+    EXTRACTOR_METATYPE_BOOK_TITLE,
+    EXTRACTOR_METATYPE_BOOK_EDITION,
+    EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER,
+    EXTRACTOR_METATYPE_JOURNAL_NAME,
+    EXTRACTOR_METATYPE_JOURNAL_VOLUME,
+    EXTRACTOR_METATYPE_JOURNAL_NUMBER,
+    EXTRACTOR_METATYPE_PAGE_COUNT,
+    EXTRACTOR_METATYPE_PAGE_RANGE,
+    EXTRACTOR_METATYPE_AUTHOR_NAME,
+    EXTRACTOR_METATYPE_AUTHOR_EMAIL,
+    EXTRACTOR_METATYPE_AUTHOR_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER,
+    EXTRACTOR_METATYPE_PUBLISHER_ADDRESS,
+    EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER_SERIES,
+    EXTRACTOR_METATYPE_PUBLICATION_TYPE,
+    EXTRACTOR_METATYPE_PUBLICATION_YEAR,
+    EXTRACTOR_METATYPE_PUBLICATION_MONTH,
+    EXTRACTOR_METATYPE_PUBLICATION_DAY,
+    EXTRACTOR_METATYPE_PUBLICATION_DATE,
+    EXTRACTOR_METATYPE_BIBTEX_EPRINT,
+    EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE,
+    EXTRACTOR_METATYPE_LANGUAGE,
+    EXTRACTOR_METATYPE_CREATION_TIME,
+    EXTRACTOR_METATYPE_URL,
+*/
+    EXTRACTOR_METATYPE_URI, 
+    EXTRACTOR_METATYPE_ISRC,
+    EXTRACTOR_METATYPE_HASH_MD4,
+    EXTRACTOR_METATYPE_HASH_MD5,
+    EXTRACTOR_METATYPE_HASH_SHA0,
+    EXTRACTOR_METATYPE_HASH_SHA1,
+    EXTRACTOR_METATYPE_HASH_RMD160,
+/*
+    EXTRACTOR_METATYPE_GPS_LATITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LATITUDE,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE,
+    EXTRACTOR_METATYPE_LOCATION_CITY,
+    EXTRACTOR_METATYPE_LOCATION_SUBLOCATION,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE,
+*/
+    EXTRACTOR_METATYPE_UNKNOWN,
+    EXTRACTOR_METATYPE_DESCRIPTION,
+    EXTRACTOR_METATYPE_COPYRIGHT,
+    EXTRACTOR_METATYPE_RIGHTS,
+    EXTRACTOR_METATYPE_KEYWORDS,
+    EXTRACTOR_METATYPE_ABSTRACT,
+    EXTRACTOR_METATYPE_SUMMARY,
+    EXTRACTOR_METATYPE_SUBJECT,
+    EXTRACTOR_METATYPE_CREATOR,
+    EXTRACTOR_METATYPE_FORMAT,
+    EXTRACTOR_METATYPE_FORMAT_VERSION,
+
+    EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, 
+    EXTRACTOR_METATYPE_UNKNOWN_DATE, 
+    EXTRACTOR_METATYPE_CREATION_DATE,
+    EXTRACTOR_METATYPE_MODIFICATION_DATE,
+    EXTRACTOR_METATYPE_LAST_PRINTED,
+    EXTRACTOR_METATYPE_LAST_SAVED_BY,
+    EXTRACTOR_METATYPE_TOTAL_EDITING_TIME,
+    EXTRACTOR_METATYPE_EDITING_CYCLES,
+    EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_REVISION_HISTORY,
+
+    EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE,
+    EXTRACTOR_METATYPE_FINDER_FILE_TYPE,
+    EXTRACTOR_METATYPE_FINDER_FILE_CREATOR,
+/*
+    EXTRACTOR_METATYPE_PACKAGE_NAME,
+    EXTRACTOR_METATYPE_PACKAGE_VERSION,
+    EXTRACTOR_METATYPE_SECTION,
+    EXTRACTOR_METATYPE_UPLOAD_PRIORITY,
+    EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY,
+    EXTRACTOR_METATYPE_PACKAGE_CONFLICTS,
+    EXTRACTOR_METATYPE_PACKAGE_REPLACES,
+    EXTRACTOR_METATYPE_PACKAGE_PROVIDES,
+    EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS,
+    EXTRACTOR_METATYPE_PACKAGE_SUGGESTS,
+    EXTRACTOR_METATYPE_PACKAGE_MAINTAINER,
+    EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE,
+    EXTRACTOR_METATYPE_PACKAGE_SOURCE,
+    EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL,
+    EXTRACTOR_METATYPE_TARGET_ARCHITECTURE,
+    EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY,
+    EXTRACTOR_METATYPE_LICENSE,
+    EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION,
+    EXTRACTOR_METATYPE_BUILDHOST,
+    EXTRACTOR_METATYPE_VENDOR,
+    EXTRACTOR_METATYPE_TARGET_OS,
+    EXTRACTOR_METATYPE_SOFTWARE_VERSION,
+    EXTRACTOR_METATYPE_TARGET_PLATFORM,
+    EXTRACTOR_METATYPE_RESOURCE_TYPE,
+    EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH,
+    EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY,
+*/
+    EXTRACTOR_METATYPE_CAMERA_MAKE,
+    EXTRACTOR_METATYPE_CAMERA_MODEL,
+    EXTRACTOR_METATYPE_EXPOSURE,
+    EXTRACTOR_METATYPE_APERTURE,
+    EXTRACTOR_METATYPE_EXPOSURE_BIAS,
+    EXTRACTOR_METATYPE_FLASH,
+    EXTRACTOR_METATYPE_FLASH_BIAS,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM,
+    EXTRACTOR_METATYPE_ISO_SPEED,
+    EXTRACTOR_METATYPE_EXPOSURE_MODE,
+    EXTRACTOR_METATYPE_METERING_MODE,
+    EXTRACTOR_METATYPE_MACRO_MODE,
+    EXTRACTOR_METATYPE_IMAGE_QUALITY,
+    EXTRACTOR_METATYPE_WHITE_BALANCE,
+    EXTRACTOR_METATYPE_ORIENTATION,
+    EXTRACTOR_METATYPE_MAGNIFICATION,
+
+    EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+    EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_THUMBNAIL,
+    EXTRACTOR_METATYPE_IMAGE_RESOLUTION,
+    EXTRACTOR_METATYPE_SOURCE,
+/*
+    EXTRACTOR_METATYPE_CHARACTER_SET,
+    EXTRACTOR_METATYPE_LINE_COUNT,
+    EXTRACTOR_METATYPE_PARAGRAPH_COUNT,
+    EXTRACTOR_METATYPE_WORD_COUNT,
+    EXTRACTOR_METATYPE_CHARACTER_COUNT,
+    EXTRACTOR_METATYPE_PAGE_ORIENTATION,
+    EXTRACTOR_METATYPE_PAPER_SIZE,
+    EXTRACTOR_METATYPE_TEMPLATE,
+    EXTRACTOR_METATYPE_COMPANY,
+    EXTRACTOR_METATYPE_MANAGER,
+    EXTRACTOR_METATYPE_REVISION_NUMBER,
+
+    EXTRACTOR_METATYPE_DURATION,
+    EXTRACTOR_METATYPE_ALBUM,
+    EXTRACTOR_METATYPE_ARTIST,
+    EXTRACTOR_METATYPE_GENRE,
+    EXTRACTOR_METATYPE_TRACK_NUMBER,
+    EXTRACTOR_METATYPE_DISC_NUMBER,
+    EXTRACTOR_METATYPE_PERFORMER,
+    EXTRACTOR_METATYPE_CONTACT_INFORMATION,
+    EXTRACTOR_METATYPE_SONG_VERSION,
+    EXTRACTOR_METATYPE_PICTURE,
+    EXTRACTOR_METATYPE_COVER_PICTURE,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE,
+    EXTRACTOR_METATYPE_EVENT_PICTURE,
+    EXTRACTOR_METATYPE_LOGO,
+    EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM,
+    EXTRACTOR_METATYPE_SOURCE_DEVICE,
+    EXTRACTOR_METATYPE_DISCLAIMER,
+    EXTRACTOR_METATYPE_WARNING,
+    EXTRACTOR_METATYPE_PAGE_ORDER,
+    EXTRACTOR_METATYPE_WRITER,
+    EXTRACTOR_METATYPE_PRODUCT_VERSION,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_NAME,
+    EXTRACTOR_METATYPE_MOVIE_DIRECTOR,
+    EXTRACTOR_METATYPE_NETWORK_NAME,
+    EXTRACTOR_METATYPE_SHOW_NAME,
+    EXTRACTOR_METATYPE_CHAPTER_NAME,
+    EXTRACTOR_METATYPE_SONG_COUNT,
+    EXTRACTOR_METATYPE_STARTING_SONG,
+    EXTRACTOR_METATYPE_PLAY_COUNTER,
+    EXTRACTOR_METATYPE_CONDUCTOR,
+    EXTRACTOR_METATYPE_INTERPRETATION,
+    EXTRACTOR_METATYPE_COMPOSER,
+    EXTRACTOR_METATYPE_BEATS_PER_MINUTE,
+    EXTRACTOR_METATYPE_ENCODED_BY,
+    EXTRACTOR_METATYPE_ORIGINAL_TITLE,
+    EXTRACTOR_METATYPE_ORIGINAL_ARTIST,
+    EXTRACTOR_METATYPE_ORIGINAL_WRITER,
+    EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR,
+    EXTRACTOR_METATYPE_ORIGINAL_PERFORMER,
+    EXTRACTOR_METATYPE_LYRICS,
+    EXTRACTOR_METATYPE_POPULARITY_METER,
+    EXTRACTOR_METATYPE_LICENSEE,
+    EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST,
+    EXTRACTOR_METATYPE_MOOD, 
+    EXTRACTOR_METATYPE_SUBTITLE, 
+*/
+    EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE,
+    EXTRACTOR_METATYPE_GNUNET_FULL_DATA,
+    EXTRACTOR_METATYPE_RATING,
+    EXTRACTOR_METATYPE_ORGANIZATION,
+    EXTRACTOR_METATYPE_RIPPER,
+    EXTRACTOR_METATYPE_PRODUCER,
+    EXTRACTOR_METATYPE_GROUP,
+    EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME,
+
+    EXTRACTOR_METATYPE_RESERVED
+};
+gint types_namespace[3 /*+ 26 + 7 + 8*/ + 11 /*+ 10 + 3 + 26 + 17 + 5 + 11 + 45*/ + 8 + 1] = 
+{ /* Namespace */
+    EXTRACTOR_METATYPE_MIMETYPE,
+    EXTRACTOR_METATYPE_FILENAME,
+    EXTRACTOR_METATYPE_COMMENT,
+/*
+    EXTRACTOR_METATYPE_TITLE,
+    EXTRACTOR_METATYPE_BOOK_TITLE,
+    EXTRACTOR_METATYPE_BOOK_EDITION,
+    EXTRACTOR_METATYPE_BOOK_CHAPTER_NUMBER,
+    EXTRACTOR_METATYPE_JOURNAL_NAME,
+    EXTRACTOR_METATYPE_JOURNAL_VOLUME,
+    EXTRACTOR_METATYPE_JOURNAL_NUMBER,
+    EXTRACTOR_METATYPE_PAGE_COUNT,
+    EXTRACTOR_METATYPE_PAGE_RANGE,
+    EXTRACTOR_METATYPE_AUTHOR_NAME,
+    EXTRACTOR_METATYPE_AUTHOR_EMAIL,
+    EXTRACTOR_METATYPE_AUTHOR_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER,
+    EXTRACTOR_METATYPE_PUBLISHER_ADDRESS,
+    EXTRACTOR_METATYPE_PUBLISHER_INSTITUTION,
+    EXTRACTOR_METATYPE_PUBLISHER_SERIES,
+    EXTRACTOR_METATYPE_PUBLICATION_TYPE,
+    EXTRACTOR_METATYPE_PUBLICATION_YEAR,
+    EXTRACTOR_METATYPE_PUBLICATION_MONTH,
+    EXTRACTOR_METATYPE_PUBLICATION_DAY,
+    EXTRACTOR_METATYPE_PUBLICATION_DATE,
+    EXTRACTOR_METATYPE_BIBTEX_EPRINT,
+    EXTRACTOR_METATYPE_BIBTEX_ENTRY_TYPE,
+    EXTRACTOR_METATYPE_LANGUAGE,
+    EXTRACTOR_METATYPE_CREATION_TIME,
+    EXTRACTOR_METATYPE_URL,
+
+    EXTRACTOR_METATYPE_URI, 
+    EXTRACTOR_METATYPE_ISRC,
+    EXTRACTOR_METATYPE_HASH_MD4,
+    EXTRACTOR_METATYPE_HASH_MD5,
+    EXTRACTOR_METATYPE_HASH_SHA0,
+    EXTRACTOR_METATYPE_HASH_SHA1,
+    EXTRACTOR_METATYPE_HASH_RMD160,
+
+    EXTRACTOR_METATYPE_GPS_LATITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LATITUDE,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE_REF,
+    EXTRACTOR_METATYPE_GPS_LONGITUDE,
+    EXTRACTOR_METATYPE_LOCATION_CITY,
+    EXTRACTOR_METATYPE_LOCATION_SUBLOCATION,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY,
+    EXTRACTOR_METATYPE_LOCATION_COUNTRY_CODE,
+*/
+    EXTRACTOR_METATYPE_UNKNOWN,
+    EXTRACTOR_METATYPE_DESCRIPTION,
+    EXTRACTOR_METATYPE_COPYRIGHT,
+    EXTRACTOR_METATYPE_RIGHTS,
+    EXTRACTOR_METATYPE_KEYWORDS,
+    EXTRACTOR_METATYPE_ABSTRACT,
+    EXTRACTOR_METATYPE_SUMMARY,
+    EXTRACTOR_METATYPE_SUBJECT,
+    EXTRACTOR_METATYPE_CREATOR,
+    EXTRACTOR_METATYPE_FORMAT,
+    EXTRACTOR_METATYPE_FORMAT_VERSION,
+/*
+    EXTRACTOR_METATYPE_CREATED_BY_SOFTWARE, 
+    EXTRACTOR_METATYPE_UNKNOWN_DATE, 
+    EXTRACTOR_METATYPE_CREATION_DATE,
+    EXTRACTOR_METATYPE_MODIFICATION_DATE,
+    EXTRACTOR_METATYPE_LAST_PRINTED,
+    EXTRACTOR_METATYPE_LAST_SAVED_BY,
+    EXTRACTOR_METATYPE_TOTAL_EDITING_TIME,
+    EXTRACTOR_METATYPE_EDITING_CYCLES,
+    EXTRACTOR_METATYPE_MODIFIED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_REVISION_HISTORY,
+
+    EXTRACTOR_METATYPE_EMBEDDED_FILE_SIZE,
+    EXTRACTOR_METATYPE_FINDER_FILE_TYPE,
+    EXTRACTOR_METATYPE_FINDER_FILE_CREATOR,
+
+    EXTRACTOR_METATYPE_PACKAGE_NAME,
+    EXTRACTOR_METATYPE_PACKAGE_VERSION,
+    EXTRACTOR_METATYPE_SECTION,
+    EXTRACTOR_METATYPE_UPLOAD_PRIORITY,
+    EXTRACTOR_METATYPE_PACKAGE_DEPENDENCY,
+    EXTRACTOR_METATYPE_PACKAGE_CONFLICTS,
+    EXTRACTOR_METATYPE_PACKAGE_REPLACES,
+    EXTRACTOR_METATYPE_PACKAGE_PROVIDES,
+    EXTRACTOR_METATYPE_PACKAGE_RECOMMENDS,
+    EXTRACTOR_METATYPE_PACKAGE_SUGGESTS,
+    EXTRACTOR_METATYPE_PACKAGE_MAINTAINER,
+    EXTRACTOR_METATYPE_PACKAGE_INSTALLED_SIZE,
+    EXTRACTOR_METATYPE_PACKAGE_SOURCE,
+    EXTRACTOR_METATYPE_PACKAGE_ESSENTIAL,
+    EXTRACTOR_METATYPE_TARGET_ARCHITECTURE,
+    EXTRACTOR_METATYPE_PACKAGE_PRE_DEPENDENCY,
+    EXTRACTOR_METATYPE_LICENSE,
+    EXTRACTOR_METATYPE_PACKAGE_DISTRIBUTION,
+    EXTRACTOR_METATYPE_BUILDHOST,
+    EXTRACTOR_METATYPE_VENDOR,
+    EXTRACTOR_METATYPE_TARGET_OS,
+    EXTRACTOR_METATYPE_SOFTWARE_VERSION,
+    EXTRACTOR_METATYPE_TARGET_PLATFORM,
+    EXTRACTOR_METATYPE_RESOURCE_TYPE,
+    EXTRACTOR_METATYPE_LIBRARY_SEARCH_PATH,
+    EXTRACTOR_METATYPE_LIBRARY_DEPENDENCY,
+
+    EXTRACTOR_METATYPE_CAMERA_MAKE,
+    EXTRACTOR_METATYPE_CAMERA_MODEL,
+    EXTRACTOR_METATYPE_EXPOSURE,
+    EXTRACTOR_METATYPE_APERTURE,
+    EXTRACTOR_METATYPE_EXPOSURE_BIAS,
+    EXTRACTOR_METATYPE_FLASH,
+    EXTRACTOR_METATYPE_FLASH_BIAS,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH,
+    EXTRACTOR_METATYPE_FOCAL_LENGTH_35MM,
+    EXTRACTOR_METATYPE_ISO_SPEED,
+    EXTRACTOR_METATYPE_EXPOSURE_MODE,
+    EXTRACTOR_METATYPE_METERING_MODE,
+    EXTRACTOR_METATYPE_MACRO_MODE,
+    EXTRACTOR_METATYPE_IMAGE_QUALITY,
+    EXTRACTOR_METATYPE_WHITE_BALANCE,
+    EXTRACTOR_METATYPE_ORIENTATION,
+    EXTRACTOR_METATYPE_MAGNIFICATION,
+
+    EXTRACTOR_METATYPE_IMAGE_DIMENSIONS,
+    EXTRACTOR_METATYPE_PRODUCED_BY_SOFTWARE,
+    EXTRACTOR_METATYPE_THUMBNAIL,
+    EXTRACTOR_METATYPE_IMAGE_RESOLUTION,
+    EXTRACTOR_METATYPE_SOURCE,
+
+    EXTRACTOR_METATYPE_CHARACTER_SET,
+    EXTRACTOR_METATYPE_LINE_COUNT,
+    EXTRACTOR_METATYPE_PARAGRAPH_COUNT,
+    EXTRACTOR_METATYPE_WORD_COUNT,
+    EXTRACTOR_METATYPE_CHARACTER_COUNT,
+    EXTRACTOR_METATYPE_PAGE_ORIENTATION,
+    EXTRACTOR_METATYPE_PAPER_SIZE,
+    EXTRACTOR_METATYPE_TEMPLATE,
+    EXTRACTOR_METATYPE_COMPANY,
+    EXTRACTOR_METATYPE_MANAGER,
+    EXTRACTOR_METATYPE_REVISION_NUMBER,
+
+    EXTRACTOR_METATYPE_DURATION,
+    EXTRACTOR_METATYPE_ALBUM,
+    EXTRACTOR_METATYPE_ARTIST,
+    EXTRACTOR_METATYPE_GENRE,
+    EXTRACTOR_METATYPE_TRACK_NUMBER,
+    EXTRACTOR_METATYPE_DISC_NUMBER,
+    EXTRACTOR_METATYPE_PERFORMER,
+    EXTRACTOR_METATYPE_CONTACT_INFORMATION,
+    EXTRACTOR_METATYPE_SONG_VERSION,
+    EXTRACTOR_METATYPE_PICTURE,
+    EXTRACTOR_METATYPE_COVER_PICTURE,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_PICTURE,
+    EXTRACTOR_METATYPE_EVENT_PICTURE,
+    EXTRACTOR_METATYPE_LOGO,
+    EXTRACTOR_METATYPE_BROADCAST_TELEVISION_SYSTEM,
+    EXTRACTOR_METATYPE_SOURCE_DEVICE,
+    EXTRACTOR_METATYPE_DISCLAIMER,
+    EXTRACTOR_METATYPE_WARNING,
+    EXTRACTOR_METATYPE_PAGE_ORDER,
+    EXTRACTOR_METATYPE_WRITER,
+    EXTRACTOR_METATYPE_PRODUCT_VERSION,
+    EXTRACTOR_METATYPE_CONTRIBUTOR_NAME,
+    EXTRACTOR_METATYPE_MOVIE_DIRECTOR,
+    EXTRACTOR_METATYPE_NETWORK_NAME,
+    EXTRACTOR_METATYPE_SHOW_NAME,
+    EXTRACTOR_METATYPE_CHAPTER_NAME,
+    EXTRACTOR_METATYPE_SONG_COUNT,
+    EXTRACTOR_METATYPE_STARTING_SONG,
+    EXTRACTOR_METATYPE_PLAY_COUNTER,
+    EXTRACTOR_METATYPE_CONDUCTOR,
+    EXTRACTOR_METATYPE_INTERPRETATION,
+    EXTRACTOR_METATYPE_COMPOSER,
+    EXTRACTOR_METATYPE_BEATS_PER_MINUTE,
+    EXTRACTOR_METATYPE_ENCODED_BY,
+    EXTRACTOR_METATYPE_ORIGINAL_TITLE,
+    EXTRACTOR_METATYPE_ORIGINAL_ARTIST,
+    EXTRACTOR_METATYPE_ORIGINAL_WRITER,
+    EXTRACTOR_METATYPE_ORIGINAL_RELEASE_YEAR,
+    EXTRACTOR_METATYPE_ORIGINAL_PERFORMER,
+    EXTRACTOR_METATYPE_LYRICS,
+    EXTRACTOR_METATYPE_POPULARITY_METER,
+    EXTRACTOR_METATYPE_LICENSEE,
+    EXTRACTOR_METATYPE_MUSICIAN_CREDITS_LIST,
+    EXTRACTOR_METATYPE_MOOD, 
+    EXTRACTOR_METATYPE_SUBTITLE, 
+*/
+    EXTRACTOR_METATYPE_GNUNET_DISPLAY_TYPE,
+    EXTRACTOR_METATYPE_GNUNET_FULL_DATA,
+    EXTRACTOR_METATYPE_RATING,
+    EXTRACTOR_METATYPE_ORGANIZATION,
+    EXTRACTOR_METATYPE_RIPPER,
+    EXTRACTOR_METATYPE_PRODUCER,
+    EXTRACTOR_METATYPE_GROUP,
+    EXTRACTOR_METATYPE_GNUNET_ORIGINAL_FILENAME,
+
+    EXTRACTOR_METATYPE_RESERVED
+};
+
+gint *types[7] = {types_generic, types_text, types_music, types_video,
+    types_image, types_namespace, NULL};
+
-- 
1.7.4

Activities

Christian Grothoff

2011-12-24 22:47

manager   ~0005199

Patch applied as SVN 18803.

Issue History

Date Modified Username Field Change
2011-12-23 18:10 Christian Grothoff New Issue
2011-12-24 22:33 LRN File Added: 0001-Make-publication-type-combobox-functional.patch
2011-12-24 22:34 LRN Summary publication type selector in publish dialog does nothing => [patch] publication type selector in publish dialog does nothing
2011-12-24 22:47 Christian Grothoff Note Added: 0005199
2011-12-24 22:47 Christian Grothoff Status new => resolved
2011-12-24 22:47 Christian Grothoff Fixed in Version => 0.9.1
2011-12-24 22:47 Christian Grothoff Resolution open => fixed
2011-12-24 22:47 Christian Grothoff Assigned To => LRN
2011-12-25 17:49 Christian Grothoff Product Version => Git master
2011-12-25 17:49 Christian Grothoff Target Version => 0.9.1
2011-12-26 22:28 Christian Grothoff Status resolved => closed