From 2004fbc50e0249c66a9200db5df74c4f6a257992 Mon Sep 17 00:00:00 2001 From: Juerg Billeter Date: Sat, 1 Mar 2008 14:47:41 +0000 Subject: [PATCH] add hildon-fm-2 bindings, based on patch by Levi Bard, fixes bug 511092 2008-03-01 Juerg Billeter * vapi/Makefile.am, vapi/hildon-fm-2.deps, vapi/hildon-fm-2.vapi, vapi/packages/hildon-fm-2/: add hildon-fm-2 bindings, based on patch by Levi Bard, fixes bug 511092 svn path=/trunk/; revision=1078 --- ChangeLog | 6 + vapi/Makefile.am | 2 + vapi/hildon-fm-2.deps | 7 + vapi/hildon-fm-2.vapi | 235 ++++++++ vapi/packages/hildon-fm-2/hildon-fm-2.deps | 7 + vapi/packages/hildon-fm-2/hildon-fm-2.files | 2 + vapi/packages/hildon-fm-2/hildon-fm-2.gi | 715 ++++++++++++++++++++++++ vapi/packages/hildon-fm-2/hildon-fm-2.metadata | 29 + vapi/packages/hildon-fm-2/hildon-fm-2.namespace | 1 + 9 files changed, 1004 insertions(+) create mode 100644 vapi/hildon-fm-2.deps create mode 100644 vapi/hildon-fm-2.vapi create mode 100644 vapi/packages/hildon-fm-2/hildon-fm-2.deps create mode 100644 vapi/packages/hildon-fm-2/hildon-fm-2.files create mode 100644 vapi/packages/hildon-fm-2/hildon-fm-2.gi create mode 100644 vapi/packages/hildon-fm-2/hildon-fm-2.metadata create mode 100644 vapi/packages/hildon-fm-2/hildon-fm-2.namespace diff --git a/ChangeLog b/ChangeLog index 9554026..6d66523 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2008-03-01 Jürg Billeter + * vapi/Makefile.am, vapi/hildon-fm-2.deps, vapi/hildon-fm-2.vapi, + vapi/packages/hildon-fm-2/: add hildon-fm-2 bindings, + based on patch by Levi Bard, fixes bug 511092 + +2008-03-01 Jürg Billeter + * vapigen/valagidlparser.vala: support cheader_filename metadata attribute for delegates diff --git a/vapi/Makefile.am b/vapi/Makefile.am index 6b42100..97f9c0f 100644 --- a/vapi/Makefile.am +++ b/vapi/Makefile.am @@ -71,6 +71,8 @@ dist_vapi_DATA = \ hal.vapi \ hildon-1.deps \ hildon-1.vapi \ + hildon-fm-2.deps \ + hildon-fm-2.vapi \ json-glib-1.0.vapi \ libglade-2.0.deps \ libglade-2.0.vapi \ diff --git a/vapi/hildon-fm-2.deps b/vapi/hildon-fm-2.deps new file mode 100644 index 0000000..f290c4c --- /dev/null +++ b/vapi/hildon-fm-2.deps @@ -0,0 +1,7 @@ +atk +gdk-2.0 +gdk-pixbuf-2.0 +gtk+-2.0 +pango +cairo +glib-2.0 diff --git a/vapi/hildon-fm-2.vapi b/vapi/hildon-fm-2.vapi new file mode 100644 index 0000000..225f3e8 --- /dev/null +++ b/vapi/hildon-fm-2.vapi @@ -0,0 +1,235 @@ +/* hildon-fm-2.vapi generated by lt-vapigen, do not modify. */ + +[CCode (cprefix = "Hildon", lower_case_cprefix = "hildon_")] +namespace Hildon { + [CCode (cprefix = "HILDON_FILE_SELECTION_MODE_", cheader_filename = "hildon/hildon-file-selection.h")] + public enum FileSelectionMode { + LIST, + THUMBNAILS, + } + [CCode (cprefix = "HILDON_FILE_SELECTION_PANE_", cheader_filename = "hildon/hildon-file-selection.h")] + public enum FileSelectionPane { + NAVIGATION, + CONTENT, + } + [CCode (cprefix = "HILDON_FILE_SELECTION_SORT_", cheader_filename = "hildon/hildon-file-selection.h")] + public enum FileSelectionSortKey { + NAME, + TYPE, + MODIFIED, + SIZE, + } + [CCode (cprefix = "HILDON_FILE_SELECTION_SHOW_", cheader_filename = "hildon/hildon-file-selection.h")] + public enum FileSelectionVisibleColumns { + NAME, + MODIFIED, + SIZE, + ALL, + } + [CCode (cprefix = "HILDON_FILE_SYSTEM_MODEL_", cheader_filename = "hildon/hildon-file-system-model.h")] + public enum FileSystemModelColumns { + COLUMN_GTK_PATH_INTERNAL, + COLUMN_LOCAL_PATH, + COLUMN_URI, + COLUMN_FILE_NAME, + COLUMN_DISPLAY_NAME, + COLUMN_SORT_KEY, + COLUMN_MIME_TYPE, + COLUMN_FILE_SIZE, + COLUMN_FILE_TIME, + COLUMN_IS_FOLDER, + COLUMN_IS_AVAILABLE, + COLUMN_HAS_LOCAL_PATH, + COLUMN_TYPE, + COLUMN_ICON, + COLUMN_ICON_EXPANDED, + COLUMN_ICON_COLLAPSED, + COLUMN_THUMBNAIL, + COLUMN_LOAD_READY, + COLUMN_FREE_SPACE, + COLUMN_TITLE, + COLUMN_AUTHOR, + COLUMN_IS_HIDDEN, + COLUMN_UNAVAILABLE_REASON, + COLUMN_FAILED_ACCESS_MESSAGE, + COLUMN_SORT_WEIGHT, + COLUMN_EXTRA_INFO, + COLUMN_IS_DRIVE, + NUM_COLUMNS, + } + [CCode (cprefix = "HILDON_FILE_SYSTEM_MODEL_", cheader_filename = "hildon/hildon-file-system-model.h")] + public enum FileSystemModelItemType { + UNKNOWN, + FILE, + FOLDER, + SAFE_FOLDER_IMAGES, + SAFE_FOLDER_VIDEOS, + SAFE_FOLDER_SOUNDS, + SAFE_FOLDER_DOCUMENTS, + SAFE_FOLDER_GAMES, + MMC, + GATEWAY, + LOCAL_DEVICE, + } + [CCode (cheader_filename = "hildon/hildon-file-system-info.h")] + public class FileSystemInfo { + public static void async_cancel (Hildon.FileSystemInfoHandle handle); + public static weak Hildon.FileSystemInfoHandle async_new (string uri, Hildon.FileSystemInfoCallback callback, pointer data); + public weak string get_display_name (); + public weak Gdk.Pixbuf get_icon (Gtk.Widget ref_widget); + public weak Gdk.Pixbuf get_icon_at_size (Gtk.Widget ref_widget, int size); + public FileSystemInfo (string uri) throws GLib.Error; + } + [CCode (cheader_filename = "hildon/hildon-file-system-info.h")] + public class FileSystemInfoHandle { + } + [CCode (cheader_filename = "hildon/hildon-file-chooser-dialog.h")] + public class FileChooserDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable, Gtk.FileChooser { + public weak Gtk.Widget add_extensions_combo (out weak string extensions, out weak string ext_names); + public void add_extra (Gtk.Widget widget); + public void focus_to_input (); + public weak string get_extension (); + public weak string get_safe_folder (); + public weak string get_safe_folder_uri (); + public bool get_show_upnp (); + public FileChooserDialog (Gtk.Window parent, Gtk.FileChooserAction action); + public FileChooserDialog.with_properties (Gtk.Window parent, ...); + public void set_extension (string extension); + public void set_safe_folder (string local_path); + public void set_safe_folder_uri (string uri); + public void set_show_upnp (bool value); + [NoAccessorMethod] + public weak bool autonaming { get; set; } + [NoAccessorMethod] + public weak string empty_text { get; set; } + [NoAccessorMethod] + public weak Hildon.FileSystemModel file_system_model { get; construct; } + [NoAccessorMethod] + public weak int max_full_path_length { get; set construct; } + [NoAccessorMethod] + public weak int max_name_length { get; set construct; } + [NoAccessorMethod] + public weak string open_button_text { get; set; } + [NoAccessorMethod] + public weak string save_multiple { get; set; } + [NoAccessorMethod] + public weak int selection_mode { get; set; } + [NoAccessorMethod] + public weak bool show_folder_button { get; set; } + [NoAccessorMethod] + public weak bool show_location { get; set; } + } + [CCode (cheader_filename = "hildon/hildon-file-details-dialog.h")] + public class FileDetailsDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { + public bool get_file_iter (out Gtk.TreeIter iter); + public FileDetailsDialog (Gtk.Window parent, string filename); + public FileDetailsDialog.with_model (Gtk.Window parent, Hildon.FileSystemModel model); + public void set_file_iter (Gtk.TreeIter iter); + [NoAccessorMethod] + public weak Gtk.Widget additional_tab { get; set construct; } + [NoAccessorMethod] + public weak string additional_tab_label { get; set; } + [NoAccessorMethod] + public weak bool enable_read_only_checkbox { get; set construct; } + [NoAccessorMethod] + public weak Hildon.FileSystemModel model { get; set; } + [NoAccessorMethod] + public weak bool show_tabs { get; set construct; } + [NoAccessorMethod] + public weak bool show_type_icon { get; set construct; } + } + [CCode (cheader_filename = "hildon/hildon-file-selection.h")] + public class FileSelection : Gtk.Container, Atk.Implementor, Gtk.Buildable { + public void clear_multi_selection (); + public bool content_iter_is_selected (Gtk.TreeIter iter); + public void dim_current_selection (); + public bool get_active_content_iter (Gtk.TreeIter iter); + public Hildon.FileSelectionPane get_active_pane (); + public bool get_column_headers_visible (); + public bool get_current_content_iter (Gtk.TreeIter iter); + public bool get_current_folder_iter (Gtk.TreeIter iter); + public weak string get_current_folder_uri (); + public weak Gtk.FileFilter get_filter (); + public Hildon.FileSelectionMode get_mode (); + public bool get_select_multiple (); + public weak GLib.SList get_selected_paths (); + public weak GLib.SList get_selected_uris (); + public void get_sort_key (Hildon.FileSelectionSortKey key, Gtk.SortType order); + public void hide_content_pane (); + public void move_cursor_to_uri (string uri); + public FileSelection.with_model (Hildon.FileSystemModel model); + public void select_all (); + public bool select_uri (string uri) throws GLib.Error; + public void set_column_headers_visible (bool visible); + public bool set_current_folder_uri (string folder) throws GLib.Error; + public void set_filter (Gtk.FileFilter filter); + public void set_mode (Hildon.FileSelectionMode mode); + public void set_select_multiple (bool select_multiple); + public void set_sort_key (Hildon.FileSelectionSortKey key, Gtk.SortType order); + public void show_content_pane (); + public void undim_all (); + public void unselect_all (); + public void unselect_uri (string uri); + [NoAccessorMethod] + public weak int active_pane { get; set; } + [NoAccessorMethod] + public weak bool drag_enabled { get; construct; } + [NoAccessorMethod] + public weak string empty_text { get; set; } + [NoAccessorMethod] + public weak bool local_only { get; set; } + [NoAccessorMethod] + public weak Hildon.FileSystemModel model { get; construct; } + [NoAccessorMethod] + public weak int pane_position { get; set construct; } + [NoAccessorMethod] + public weak pointer safe_folder { get; set; } + [NoAccessorMethod] + public weak bool show_hidden { get; set; } + [NoAccessorMethod] + public weak bool show_upnp { get; set construct; } + [NoAccessorMethod] + public weak int visible_columns { get; construct; } + public signal void content_pane_context_menu (); + public signal void current_folder_changed (); + public signal void file_activated (); + public signal void location_insensitive (Gtk.TreeIter iter); + public signal void navigation_pane_context_menu (); + public signal void selection_changed (); + public signal void uris_dropped (string destination, pointer sources); + } + [CCode (cheader_filename = "hildon/hildon-file-system-model.h")] + public class FileSystemModel : GLib.Object, Gtk.TreeModel, Gtk.TreeDragSource { + public weak string autoname_uri (string uri) throws GLib.Error; + public void iter_available (Gtk.TreeIter iter, bool available); + public bool load_local_path (string path, Gtk.TreeIter iter); + public bool load_uri (string uri, Gtk.TreeIter iter); + public FileSystemModel.item (Hildon.FileSystemModel model, Gtk.TreeIter parent, string stub_name, string extension); + public void reset_available (); + public bool search_local_path (string path, Gtk.TreeIter iter, Gtk.TreeIter start_iter, bool recursive); + public bool search_uri (string uri, Gtk.TreeIter iter, Gtk.TreeIter start_iter, bool recursive); + [NoAccessorMethod] + public weak string backend { get; construct; } + [NoAccessorMethod] + public weak pointer backend_object { get; construct; } + [NoAccessorMethod] + public weak bool multi_root { get; construct; } + [NoAccessorMethod] + public weak Gtk.Widget ref_widget { get; set; } + [NoAccessorMethod] + public weak string root_dir { get; construct; } + [NoAccessorMethod] + public weak pointer thumbnail_callback { get; set; } + public signal void device_disconnected (Gtk.TreeIter iter); + public signal void finished_loading (Gtk.TreeIter iter); + } + [CCode (cheader_filename = "hildon/hildon-file-system-storage-dialog.h")] + public class FileSystemStorageDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable { + public FileSystemStorageDialog (Gtk.Window parent, string uri_str); + public static void set_uri (Gtk.Widget widget, string uri_str); + } + [CCode (cheader_filename = "hildon/hildon-file-system-info.h")] + public static delegate void FileSystemInfoCallback (Hildon.FileSystemInfoHandle handle, Hildon.FileSystemInfo info, GLib.Error error, pointer data); + [CCode (cheader_filename = "hildon/hildon-file-system-model.h")] + public static delegate bool FileSystemModelThumbnailCallback (string uri, string path, string thumbnail_file); +} diff --git a/vapi/packages/hildon-fm-2/hildon-fm-2.deps b/vapi/packages/hildon-fm-2/hildon-fm-2.deps new file mode 100644 index 0000000..f290c4c --- /dev/null +++ b/vapi/packages/hildon-fm-2/hildon-fm-2.deps @@ -0,0 +1,7 @@ +atk +gdk-2.0 +gdk-pixbuf-2.0 +gtk+-2.0 +pango +cairo +glib-2.0 diff --git a/vapi/packages/hildon-fm-2/hildon-fm-2.files b/vapi/packages/hildon-fm-2/hildon-fm-2.files new file mode 100644 index 0000000..57a03ef --- /dev/null +++ b/vapi/packages/hildon-fm-2/hildon-fm-2.files @@ -0,0 +1,2 @@ +include/hildon-fm-2 +lib/libhildonfm.so diff --git a/vapi/packages/hildon-fm-2/hildon-fm-2.gi b/vapi/packages/hildon-fm-2/hildon-fm-2.gi new file mode 100644 index 0000000..2b8ecbe --- /dev/null +++ b/vapi/packages/hildon-fm-2/hildon-fm-2.gi @@ -0,0 +1,715 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/vapi/packages/hildon-fm-2/hildon-fm-2.metadata b/vapi/packages/hildon-fm-2/hildon-fm-2.metadata new file mode 100644 index 0000000..1915128 --- /dev/null +++ b/vapi/packages/hildon-fm-2/hildon-fm-2.metadata @@ -0,0 +1,29 @@ +HildonFileSystemInfo cheader_filename="hildon/hildon-file-system-info.h" +HildonFileSystemInfoHandle cheader_filename="hildon/hildon-file-system-info.h" +HildonFileChooserDialog cheader_filename="hildon/hildon-file-chooser-dialog.h" +HildonFileDetailsDialog cheader_filename="hildon/hildon-file-details-dialog.h" +hildon_file_details_dialog_get_file_iter.iter is_out="1" +HildonFileSelection cheader_filename="hildon/hildon-file-selection.h" +HildonFileSystemModel cheader_filename="hildon/hildon-file-system-model.h" +HildonFileSystemStorageDialog cheader_filename="hildon/hildon-file-system-storage-dialog.h" +HildonFileSelectionMode cheader_filename="hildon/hildon-file-selection.h" +HildonFileSelectionPane cheader_filename="hildon/hildon-file-selection.h" +HildonFileSelectionSortKey cheader_filename="hildon/hildon-file-selection.h" +HildonFileSelectionVisibleColumns cheader_filename="hildon/hildon-file-selection.h" +HildonFileSystemInfoCallback cheader_filename="hildon/hildon-file-system-info.h" +HildonFileSystemModelColumns cheader_filename="hildon/hildon-file-system-model.h" +HildonFileSystemModelItemType cheader_filename="hildon/hildon-file-system-model.h" +HildonFileSystemModelThumbnailCallback cheader_filename="hildon/hildon-file-system-model.h" +hildon_file_system_model_finished_loading hidden="1" +hildon_file_system_create_backend hidden="1" +hildon_file_selection_get_current_folder hidden="1" +hildon_file_selection_set_current_folder hidden="1" +hildon_file_selection_select_path hidden="1" +hildon_file_selection_unselect_path hidden="1" +hildon_file_system_model_load_path hidden="1" +hildon_file_system_model_search_path hidden="1" +hildon_file_chooser_dialog_selection_mode hidden="1" +HildonFileSystemStorageDialogPriv hidden="1" +HildonFileChooserDialogSelectionMode name="int" +GtkFileSystem name="pointer" +GtkFilePath name="pointer" diff --git a/vapi/packages/hildon-fm-2/hildon-fm-2.namespace b/vapi/packages/hildon-fm-2/hildon-fm-2.namespace new file mode 100644 index 0000000..d297f6d --- /dev/null +++ b/vapi/packages/hildon-fm-2/hildon-fm-2.namespace @@ -0,0 +1 @@ +Hildon -- 2.7.4