1 /* hildon-fm-2.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Hildon", lower_case_cprefix = "hildon_")]
5 [CCode (cheader_filename = "hildon/hildon-file-chooser-dialog.h")]
6 public class FileChooserDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable, Gtk.FileChooser {
7 [CCode (type = "GtkWidget*", has_construct_function = false)]
8 public FileChooserDialog (Gtk.Window parent, Gtk.FileChooserAction action);
9 public unowned Gtk.Widget add_extensions_combo (out unowned string extensions, out unowned string ext_names);
10 public void add_extra (Gtk.Widget widget);
11 public void focus_to_input ();
12 public unowned string get_extension ();
13 public unowned string get_safe_folder ();
14 public unowned string get_safe_folder_uri ();
15 public bool get_show_upnp ();
16 public void set_extension (string extension);
17 public void set_safe_folder (string local_path);
18 public void set_safe_folder_uri (string uri);
19 public void set_show_upnp (bool value);
20 [CCode (type = "GtkWidget*", has_construct_function = false)]
21 public FileChooserDialog.with_properties (Gtk.Window parent, ...);
23 public bool autonaming { get; set; }
25 public string empty_text { owned get; set; }
27 public Hildon.FileSystemModel file_system_model { owned get; construct; }
29 public int max_full_path_length { get; set construct; }
31 public int max_name_length { get; set construct; }
33 public string open_button_text { owned get; set; }
35 public string save_multiple { owned get; set; }
37 public int selection_mode { get; set; }
39 public bool show_folder_button { get; set; }
41 public bool show_location { get; set; }
43 [CCode (cheader_filename = "hildon/hildon-file-details-dialog.h")]
44 public class FileDetailsDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
45 [CCode (type = "GtkWidget*", has_construct_function = false)]
46 public FileDetailsDialog (Gtk.Window parent, string filename);
47 public bool get_file_iter (out Gtk.TreeIter iter);
48 public void set_file_iter (Gtk.TreeIter iter);
49 [CCode (type = "GtkWidget*", has_construct_function = false)]
50 public FileDetailsDialog.with_model (Gtk.Window parent, Hildon.FileSystemModel model);
52 public Gtk.Widget additional_tab { owned get; set construct; }
54 public string additional_tab_label { owned get; set; }
56 public bool enable_read_only_checkbox { get; set construct; }
58 public Hildon.FileSystemModel model { owned get; set; }
60 public bool show_tabs { get; set construct; }
62 public bool show_type_icon { get; set construct; }
64 [CCode (cheader_filename = "hildon/hildon-file-selection.h")]
65 public class FileSelection : Gtk.Container, Atk.Implementor, Gtk.Buildable {
66 [CCode (has_construct_function = false)]
67 protected FileSelection ();
68 public void clear_multi_selection ();
69 public bool content_iter_is_selected (Gtk.TreeIter iter);
70 public void dim_current_selection ();
71 public bool get_active_content_iter (Gtk.TreeIter iter);
72 public Hildon.FileSelectionPane get_active_pane ();
73 public bool get_column_headers_visible ();
74 public bool get_current_content_iter (Gtk.TreeIter iter);
75 public bool get_current_folder_iter (Gtk.TreeIter iter);
76 public unowned string get_current_folder_uri ();
77 public unowned Gtk.FileFilter get_filter ();
78 public Hildon.FileSelectionMode get_mode ();
79 public bool get_select_multiple ();
80 public unowned GLib.SList get_selected_paths ();
81 public unowned GLib.SList get_selected_uris ();
82 public void get_sort_key (Hildon.FileSelectionSortKey key, Gtk.SortType order);
83 public void hide_content_pane ();
84 public void move_cursor_to_uri (string uri);
85 public void select_all ();
86 public bool select_uri (string uri) throws GLib.Error;
87 public void set_column_headers_visible (bool visible);
88 public bool set_current_folder_uri (string folder) throws GLib.Error;
89 public void set_filter (Gtk.FileFilter filter);
90 public void set_mode (Hildon.FileSelectionMode mode);
91 public void set_select_multiple (bool select_multiple);
92 public void set_sort_key (Hildon.FileSelectionSortKey key, Gtk.SortType order);
93 public void show_content_pane ();
94 public void undim_all ();
95 public void unselect_all ();
96 public void unselect_uri (string uri);
97 [CCode (type = "GtkWidget*", has_construct_function = false)]
98 public FileSelection.with_model (Hildon.FileSystemModel model);
100 public int active_pane { get; set; }
102 public bool drag_enabled { get; construct; }
104 public string empty_text { owned get; set; }
106 public bool local_only { get; set; }
108 public Hildon.FileSystemModel model { owned get; construct; }
110 public int pane_position { get; set construct; }
112 public void* safe_folder { get; set; }
114 public bool show_hidden { get; set; }
116 public bool show_upnp { get; set construct; }
118 public int visible_columns { get; construct; }
119 public virtual signal void content_pane_context_menu ();
120 public virtual signal void current_folder_changed ();
121 public virtual signal void file_activated ();
122 public virtual signal void location_insensitive (Gtk.TreeIter iter);
123 public virtual signal void navigation_pane_context_menu ();
124 public virtual signal void selection_changed ();
125 public virtual signal void uris_dropped (string destination, void* sources);
128 [CCode (cheader_filename = "hildon/hildon-file-system-info.h")]
129 public class FileSystemInfo {
130 [CCode (has_construct_function = false)]
131 public FileSystemInfo (string uri) throws GLib.Error;
132 public static void async_cancel (Hildon.FileSystemInfoHandle handle);
133 public static unowned Hildon.FileSystemInfoHandle async_new (string uri, Hildon.FileSystemInfoCallback callback);
134 public unowned string get_display_name ();
135 public unowned Gdk.Pixbuf get_icon (Gtk.Widget ref_widget);
136 public unowned Gdk.Pixbuf get_icon_at_size (Gtk.Widget ref_widget, int size);
139 [CCode (cheader_filename = "hildon/hildon-file-system-info.h")]
140 public class FileSystemInfoHandle {
142 [CCode (cheader_filename = "hildon/hildon-file-system-model.h")]
143 public class FileSystemModel : GLib.Object, Gtk.TreeModel, Gtk.TreeDragSource {
144 [CCode (has_construct_function = false)]
145 protected FileSystemModel ();
146 public unowned string autoname_uri (string uri) throws GLib.Error;
147 [CCode (type = "gchar*", has_construct_function = false)]
148 public FileSystemModel.item (Hildon.FileSystemModel model, Gtk.TreeIter parent, string stub_name, string extension);
149 public void iter_available (Gtk.TreeIter iter, bool available);
150 public bool load_local_path (string path, Gtk.TreeIter iter);
151 public bool load_uri (string uri, Gtk.TreeIter iter);
152 public void reset_available ();
153 public bool search_local_path (string path, Gtk.TreeIter iter, Gtk.TreeIter start_iter, bool recursive);
154 public bool search_uri (string uri, Gtk.TreeIter iter, Gtk.TreeIter start_iter, bool recursive);
156 public string backend { owned get; construct; }
158 public void* backend_object { get; construct; }
160 public bool multi_root { get; construct; }
162 public Gtk.Widget ref_widget { owned get; set; }
164 public string root_dir { owned get; construct; }
166 public void* thumbnail_callback { get; set; }
167 public virtual signal void device_disconnected (Gtk.TreeIter iter);
168 public virtual signal void finished_loading (Gtk.TreeIter iter);
170 [CCode (cheader_filename = "hildon/hildon-file-system-storage-dialog.h")]
171 public class FileSystemStorageDialog : Gtk.Dialog, Atk.Implementor, Gtk.Buildable {
172 [CCode (type = "GtkWidget*", has_construct_function = false)]
173 public FileSystemStorageDialog (Gtk.Window parent, string uri_str);
174 public static void set_uri (Gtk.Widget widget, string uri_str);
176 [CCode (cprefix = "HILDON_FILE_SELECTION_MODE_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
177 public enum FileSelectionMode {
181 [CCode (cprefix = "HILDON_FILE_SELECTION_PANE_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
182 public enum FileSelectionPane {
186 [CCode (cprefix = "HILDON_FILE_SELECTION_SORT_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
187 public enum FileSelectionSortKey {
193 [CCode (cprefix = "HILDON_FILE_SELECTION_SHOW_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
194 public enum FileSelectionVisibleColumns {
200 [CCode (cprefix = "HILDON_FILE_SYSTEM_MODEL_", has_type_id = false, cheader_filename = "hildon/hildon-file-system-model.h")]
201 public enum FileSystemModelColumns {
202 COLUMN_GTK_PATH_INTERNAL,
213 COLUMN_HAS_LOCAL_PATH,
216 COLUMN_ICON_EXPANDED,
217 COLUMN_ICON_COLLAPSED,
224 COLUMN_UNAVAILABLE_REASON,
225 COLUMN_FAILED_ACCESS_MESSAGE,
231 [CCode (cprefix = "HILDON_FILE_SYSTEM_MODEL_", has_type_id = false, cheader_filename = "hildon/hildon-file-system-model.h")]
232 public enum FileSystemModelItemType {
239 SAFE_FOLDER_DOCUMENTS,
245 [CCode (cheader_filename = "hildon/hildon-file-system-info.h")]
246 public delegate void FileSystemInfoCallback (Hildon.FileSystemInfoHandle handle, Hildon.FileSystemInfo info, GLib.Error error);
247 [CCode (cheader_filename = "hildon/hildon-file-system-model.h", has_target = false)]
248 public delegate bool FileSystemModelThumbnailCallback (string uri, string path, string thumbnail_file);