CodeWriter: Write [Diagnostics] attribute
[vala-lang.git] / vapi / hildon-fm-2.vapi
blob7c381164fa67c84056f4fa4d50c91d9919df9199
1 /* hildon-fm-2.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Hildon", lower_case_cprefix = "hildon_")]
4 namespace 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, ...);
22                 [NoAccessorMethod]
23                 public bool autonaming { get; set; }
24                 [NoAccessorMethod]
25                 public string empty_text { owned get; set; }
26                 [NoAccessorMethod]
27                 public Hildon.FileSystemModel file_system_model { owned get; construct; }
28                 [NoAccessorMethod]
29                 public int max_full_path_length { get; set construct; }
30                 [NoAccessorMethod]
31                 public int max_name_length { get; set construct; }
32                 [NoAccessorMethod]
33                 public string open_button_text { owned get; set; }
34                 [NoAccessorMethod]
35                 public string save_multiple { owned get; set; }
36                 [NoAccessorMethod]
37                 public int selection_mode { get; set; }
38                 [NoAccessorMethod]
39                 public bool show_folder_button { get; set; }
40                 [NoAccessorMethod]
41                 public bool show_location { get; set; }
42         }
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);
51                 [NoAccessorMethod]
52                 public Gtk.Widget additional_tab { owned get; set construct; }
53                 [NoAccessorMethod]
54                 public string additional_tab_label { owned get; set; }
55                 [NoAccessorMethod]
56                 public bool enable_read_only_checkbox { get; set construct; }
57                 [NoAccessorMethod]
58                 public Hildon.FileSystemModel model { owned get; set; }
59                 [NoAccessorMethod]
60                 public bool show_tabs { get; set construct; }
61                 [NoAccessorMethod]
62                 public bool show_type_icon { get; set construct; }
63         }
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);
99                 [NoAccessorMethod]
100                 public int active_pane { get; set; }
101                 [NoAccessorMethod]
102                 public bool drag_enabled { get; construct; }
103                 [NoAccessorMethod]
104                 public string empty_text { owned get; set; }
105                 [NoAccessorMethod]
106                 public bool local_only { get; set; }
107                 [NoAccessorMethod]
108                 public Hildon.FileSystemModel model { owned get; construct; }
109                 [NoAccessorMethod]
110                 public int pane_position { get; set construct; }
111                 [NoAccessorMethod]
112                 public void* safe_folder { get; set; }
113                 [NoAccessorMethod]
114                 public bool show_hidden { get; set; }
115                 [NoAccessorMethod]
116                 public bool show_upnp { get; set construct; }
117                 [NoAccessorMethod]
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);
126         }
127         [Compact]
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);
137         }
138         [Compact]
139         [CCode (cheader_filename = "hildon/hildon-file-system-info.h")]
140         public class FileSystemInfoHandle {
141         }
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);
155                 [NoAccessorMethod]
156                 public string backend { owned get; construct; }
157                 [NoAccessorMethod]
158                 public void* backend_object { get; construct; }
159                 [NoAccessorMethod]
160                 public bool multi_root { get; construct; }
161                 [NoAccessorMethod]
162                 public Gtk.Widget ref_widget { owned get; set; }
163                 [NoAccessorMethod]
164                 public string root_dir { owned get; construct; }
165                 [NoAccessorMethod]
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);
169         }
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);
175         }
176         [CCode (cprefix = "HILDON_FILE_SELECTION_MODE_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
177         public enum FileSelectionMode {
178                 LIST,
179                 THUMBNAILS
180         }
181         [CCode (cprefix = "HILDON_FILE_SELECTION_PANE_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
182         public enum FileSelectionPane {
183                 NAVIGATION,
184                 CONTENT
185         }
186         [CCode (cprefix = "HILDON_FILE_SELECTION_SORT_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
187         public enum FileSelectionSortKey {
188                 NAME,
189                 TYPE,
190                 MODIFIED,
191                 SIZE
192         }
193         [CCode (cprefix = "HILDON_FILE_SELECTION_SHOW_", has_type_id = false, cheader_filename = "hildon/hildon-file-selection.h")]
194         public enum FileSelectionVisibleColumns {
195                 NAME,
196                 MODIFIED,
197                 SIZE,
198                 ALL
199         }
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,
203                 COLUMN_LOCAL_PATH,
204                 COLUMN_URI,
205                 COLUMN_FILE_NAME,
206                 COLUMN_DISPLAY_NAME,
207                 COLUMN_SORT_KEY,
208                 COLUMN_MIME_TYPE,
209                 COLUMN_FILE_SIZE,
210                 COLUMN_FILE_TIME,
211                 COLUMN_IS_FOLDER,
212                 COLUMN_IS_AVAILABLE,
213                 COLUMN_HAS_LOCAL_PATH,
214                 COLUMN_TYPE,
215                 COLUMN_ICON,
216                 COLUMN_ICON_EXPANDED,
217                 COLUMN_ICON_COLLAPSED,
218                 COLUMN_THUMBNAIL,
219                 COLUMN_LOAD_READY,
220                 COLUMN_FREE_SPACE,
221                 COLUMN_TITLE,
222                 COLUMN_AUTHOR,
223                 COLUMN_IS_HIDDEN,
224                 COLUMN_UNAVAILABLE_REASON,
225                 COLUMN_FAILED_ACCESS_MESSAGE,
226                 COLUMN_SORT_WEIGHT,
227                 COLUMN_EXTRA_INFO,
228                 COLUMN_IS_DRIVE,
229                 NUM_COLUMNS
230         }
231         [CCode (cprefix = "HILDON_FILE_SYSTEM_MODEL_", has_type_id = false, cheader_filename = "hildon/hildon-file-system-model.h")]
232         public enum FileSystemModelItemType {
233                 UNKNOWN,
234                 FILE,
235                 FOLDER,
236                 SAFE_FOLDER_IMAGES,
237                 SAFE_FOLDER_VIDEOS,
238                 SAFE_FOLDER_SOUNDS,
239                 SAFE_FOLDER_DOCUMENTS,
240                 SAFE_FOLDER_GAMES,
241                 MMC,
242                 GATEWAY,
243                 LOCAL_DEVICE
244         }
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);