1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-mime-actions.h - uri-specific versions of mime action functions
5 Copyright (C) 2000 Eazel, Inc.
7 The Gnome Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public License as
9 published by the Free Software Foundation; either version 2 of the
10 License, or (at your option) any later version.
12 The Gnome Library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with the Gnome Library; see the file COPYING.LIB. If not,
19 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Authors: Maciej Stachowiak <mjs@eazel.com>
25 #ifndef NAUTILUS_MIME_ACTIONS_H
26 #define NAUTILUS_MIME_ACTIONS_H
30 #include <libnautilus-private/nautilus-file.h>
31 #include <libnautilus-private/nautilus-window-info.h>
33 NautilusFileAttributes
nautilus_mime_actions_get_required_file_attributes (void);
35 GAppInfo
* nautilus_mime_get_default_application_for_file (NautilusFile
*file
);
36 GList
* nautilus_mime_get_applications_for_file (NautilusFile
*file
);
38 GAppInfo
* nautilus_mime_get_default_application_for_files (GList
*files
);
39 GList
* nautilus_mime_get_applications_for_files (GList
*file
);
41 gboolean
nautilus_mime_has_any_applications_for_file (NautilusFile
*file
);
42 gboolean
nautilus_mime_has_any_applications_for_files (GList
*files
);
44 gboolean
nautilus_mime_file_opens_in_view (NautilusFile
*file
);
45 gboolean
nautilus_mime_file_opens_in_external_app (NautilusFile
*file
);
46 void nautilus_mime_activate_files (GtkWindow
*parent_window
,
47 NautilusWindowInfo
*window_info
,
49 const char *launch_directory
,
50 NautilusWindowOpenMode mode
,
51 NautilusWindowOpenFlags flags
);
52 void nautilus_mime_activate_file (GtkWindow
*parent_window
,
53 NautilusWindowInfo
*window_info
,
55 const char *launch_directory
,
56 NautilusWindowOpenMode mode
,
57 NautilusWindowOpenFlags flags
);
60 #endif /* NAUTILUS_MIME_ACTIONS_H */