/*
 * pluma-backup-recovery-dialog.h
 * This file is part of pluma
 *
 * Copyright (C) 2024 - MATE Developers
 *
 * 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., 51 Franklin St, Fifth Floor,
 * Boston, MA 02110-1301, USA.
 */

#ifndef __PLUMA_BACKUP_RECOVERY_DIALOG_H__
#define __PLUMA_BACKUP_RECOVERY_DIALOG_H__

#include <glib.h>
#include <gtk/gtk.h>

G_BEGIN_DECLS

#define PLUMA_TYPE_BACKUP_RECOVERY_DIALOG              (pluma_backup_recovery_dialog_get_type())
#define PLUMA_BACKUP_RECOVERY_DIALOG(obj)              (G_TYPE_CHECK_INSTANCE_CAST((obj), PLUMA_TYPE_BACKUP_RECOVERY_DIALOG, PlumaBackupRecoveryDialog))
#define PLUMA_BACKUP_RECOVERY_DIALOG_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST((klass), PLUMA_TYPE_BACKUP_RECOVERY_DIALOG, PlumaBackupRecoveryDialogClass))
#define PLUMA_IS_BACKUP_RECOVERY_DIALOG(obj)           (G_TYPE_CHECK_INSTANCE_TYPE((obj), PLUMA_TYPE_BACKUP_RECOVERY_DIALOG))
#define PLUMA_IS_BACKUP_RECOVERY_DIALOG_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), PLUMA_TYPE_BACKUP_RECOVERY_DIALOG))
#define PLUMA_BACKUP_RECOVERY_DIALOG_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), PLUMA_TYPE_BACKUP_RECOVERY_DIALOG, PlumaBackupRecoveryDialogClass))

typedef struct _PlumaBackupRecoveryDialog        PlumaBackupRecoveryDialog;
typedef struct _PlumaBackupRecoveryDialogClass   PlumaBackupRecoveryDialogClass;
typedef struct _PlumaBackupRecoveryDialogPrivate PlumaBackupRecoveryDialogPrivate;

struct _PlumaBackupRecoveryDialog
{
    GtkDialog parent;
    PlumaBackupRecoveryDialogPrivate *priv;
};

struct _PlumaBackupRecoveryDialogClass
{
    GtkDialogClass parent_class;
};

/* 对话框响应类型 */
typedef enum
{
    PLUMA_BACKUP_RECOVERY_RESPONSE_RECOVER = 1,
    PLUMA_BACKUP_RECOVERY_RESPONSE_IGNORE = 2,
    PLUMA_BACKUP_RECOVERY_RESPONSE_CANCEL = GTK_RESPONSE_CANCEL
} PlumaBackupRecoveryResponse;

GType                       pluma_backup_recovery_dialog_get_type (void) G_GNUC_CONST;

PlumaBackupRecoveryDialog  *pluma_backup_recovery_dialog_new (GtkWindow   *parent,
                                                              const gchar *filename,
                                                              const gchar *original_uri,
                                                              GFileInfo   *backup_info,
                                                              GFileInfo   *original_info);

PlumaBackupRecoveryResponse pluma_backup_recovery_dialog_run (PlumaBackupRecoveryDialog *dialog);

G_END_DECLS

#endif /* __PLUMA_BACKUP_RECOVERY_DIALOG_H__ */ 