/* vi:set et ai sw=2 sts=2 ts=2: */
/*-
 * Copyright (c) 2005-2007 Benedikt Meurer <benny@xfce.org>
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the Free
 * Software Foundation; either version 2 of the License, or (at your option)
 * any later version.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 * Place, Suite 330, Boston, MA  02111-1307  USA
 */

#ifndef __THUNAR_DIALOGS_H__
#define __THUNAR_DIALOGS_H__

#include "thunar/thunar-enum-types.h"
#include "thunar/thunar-file.h"
#include "thunar/thunar-job.h"

G_BEGIN_DECLS;

gchar *
thunar_dialogs_show_create (gpointer     parent,
                            const gchar *content_type,
                            const gchar *filename,
                            GFile       *parent_directory,
                            const gchar *title,
                            const gchar *startup_id);
ThunarJob *
thunar_dialogs_show_rename_file (gpointer               parent,
                                 ThunarFile            *file,
                                 const gchar           *startup_id,
                                 ThunarOperationLogMode log_mode);
void
thunar_dialogs_show_about (GtkWindow   *parent,
                           const gchar *title,
                           const gchar *format,
                           ...) G_GNUC_PRINTF (3, 4);
void
thunar_dialogs_show_error (gpointer      parent,
                           const GError *error,
                           const gchar  *format,
                           ...) G_GNUC_PRINTF (3, 4);
ThunarJobResponse
thunar_dialogs_show_job_ask (GtkWindow        *parent,
                             const gchar      *question,
                             ThunarJobResponse choices);
ThunarJobResponse
thunar_dialogs_show_job_ask_for_action (GtkWindow  *parent,
                                        ThunarFile *src_file,
                                        ThunarFile *dst_file,
                                        gboolean    multiple_files);
gboolean
thunar_dialogs_show_insecure_program (gpointer     parent,
                                      const gchar *title,
                                      ThunarFile  *file,
                                      const gchar *command);
gint
thunar_dialog_confirm_close_split_pane_tabs (GtkWindow *parent);
gint
thunar_dialog_ask_execute (const ThunarFile *file,
                           gpointer          parent,
                           gboolean          allow_open,
                           gboolean          single_file);
void
thunar_dialog_show_launcher_props (ThunarFile *launcher,
                                   gpointer    parent);

G_END_DECLS;

#endif /* !__THUNAR_DIALOGS_H__ */
