| 1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
|---|
| 2 | |
|---|
| 3 | /* |
|---|
| 4 | * Nautilus |
|---|
| 5 | * |
|---|
| 6 | * Copyright (C) 2000 Eazel, Inc. |
|---|
| 7 | * |
|---|
| 8 | * Nautilus is free software; you can redistribute it and/or modify |
|---|
| 9 | * it under the terms of the GNU General Public License as published by |
|---|
| 10 | * the Free Software Foundation; either version 2 of the License, or |
|---|
| 11 | * (at your option) any later version. |
|---|
| 12 | * |
|---|
| 13 | * Nautilus is distributed in the hope that it will be useful, |
|---|
| 14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | * GNU General Public License for more details. |
|---|
| 17 | * |
|---|
| 18 | * You should have received a copy of the GNU General Public License |
|---|
| 19 | * along with this program; if not, write to the Free Software |
|---|
| 20 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|---|
| 21 | * |
|---|
| 22 | * Author: Andy Hertzfeld <andy@eazel.com> |
|---|
| 23 | * |
|---|
| 24 | * This is the header file for the rpm verify window dialog |
|---|
| 25 | * |
|---|
| 26 | */ |
|---|
| 27 | |
|---|
| 28 | #ifndef NAUTILUS_RPM_VERIFY_WINDOW_H |
|---|
| 29 | #define NAUTILUS_RPM_VERIFY_WINDOW_H |
|---|
| 30 | |
|---|
| 31 | #include <gdk/gdk.h> |
|---|
| 32 | #include <gnome.h> |
|---|
| 33 | |
|---|
| 34 | #ifdef __cplusplus |
|---|
| 35 | extern "C" { |
|---|
| 36 | #endif /* __cplusplus */ |
|---|
| 37 | |
|---|
| 38 | #define NAUTILUS_TYPE_RPM_VERIFY_WINDOW (nautilus_rpm_verify_window_get_type ()) |
|---|
| 39 | #define NAUTILUS_RPM_VERIFY_WINDOW(obj) (GTK_CHECK_CAST ((obj), NAUTILUS_TYPE_RPM_VERIFY_WINDOW, NautilusRPMVerifyWindow)) |
|---|
| 40 | #define NAUTILUS_RPM_VERIFY_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), NAUTILUS_TYPE_RPM_VERIFY_WINDOW, NautilusRPMVerifyWindowClass)) |
|---|
| 41 | #define NAUTILUS_IS_RPM_VERIFY_WINDOW(obj) (GTK_CHECK_TYPE ((obj), NAUTILUS_TYPE_RPM_VERIFY_WINDOW)) |
|---|
| 42 | #define NAUTILUS_IS_RPM_VERIFY_WINDOW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), NAUTILUS_TYPE_RPM_VERIFY_WINDOW)) |
|---|
| 43 | |
|---|
| 44 | typedef struct NautilusRPMVerifyWindow NautilusRPMVerifyWindow; |
|---|
| 45 | typedef struct NautilusRPMVerifyWindowClass NautilusRPMVerifyWindowClass; |
|---|
| 46 | typedef struct NautilusRPMVerifyWindowDetails NautilusRPMVerifyWindowDetails; |
|---|
| 47 | |
|---|
| 48 | struct NautilusRPMVerifyWindow { |
|---|
| 49 | GnomeDialog parent; |
|---|
| 50 | NautilusRPMVerifyWindowDetails *details; |
|---|
| 51 | }; |
|---|
| 52 | |
|---|
| 53 | struct NautilusRPMVerifyWindowClass { |
|---|
| 54 | GnomeDialogClass parent_class; |
|---|
| 55 | |
|---|
| 56 | /* signals */ |
|---|
| 57 | void (* continue_verify) (NautilusRPMVerifyWindow *window); |
|---|
| 58 | }; |
|---|
| 59 | |
|---|
| 60 | GtkType nautilus_rpm_verify_window_get_type (void); |
|---|
| 61 | GtkWidget* nautilus_rpm_verify_window_new (const char *package_name); |
|---|
| 62 | void nautilus_rpm_verify_window_set_message (NautilusRPMVerifyWindow *window, const char *message); |
|---|
| 63 | void nautilus_rpm_verify_window_set_progress (NautilusRPMVerifyWindow *window, |
|---|
| 64 | const char *file, |
|---|
| 65 | unsigned long amount, |
|---|
| 66 | unsigned long total); |
|---|
| 67 | void nautilus_rpm_verify_window_set_error_mode (NautilusRPMVerifyWindow *window, gboolean error_mode); |
|---|
| 68 | |
|---|
| 69 | #ifdef __cplusplus |
|---|
| 70 | } |
|---|
| 71 | #endif /* __cplusplus */ |
|---|
| 72 | |
|---|
| 73 | #endif /* NAUTILUS_RPM_VERIFY_WINDOW_H */ |
|---|