| 1 | /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ |
|---|
| 2 | /* |
|---|
| 3 | * Copyright (C) 2000 Eazel, Inc |
|---|
| 4 | * |
|---|
| 5 | * This program is free software; you can redistribute it and/or |
|---|
| 6 | * modify it under the terms of the GNU General Public License as |
|---|
| 7 | * published by the Free Software Foundation; either version 2 of the |
|---|
| 8 | * License, or (at your option) any later version. |
|---|
| 9 | * |
|---|
| 10 | * This program is distributed in the hope that it will be useful, |
|---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 13 | * General Public License for more details. |
|---|
| 14 | * |
|---|
| 15 | * You should have received a copy of the GNU General Public |
|---|
| 16 | * License along with this program; if not, write to the |
|---|
| 17 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
|---|
| 18 | * Boston, MA 02111-1307, USA. |
|---|
| 19 | * |
|---|
| 20 | * Author: Andy Hertzfeld |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | /* private header file for the rpm view component */ |
|---|
| 24 | |
|---|
| 25 | #ifndef NAUTILUS_RPM_VIEW_PRIVATE_H |
|---|
| 26 | #define NAUTILUS_RPM_VIEW_PRIVATE_H |
|---|
| 27 | |
|---|
| 28 | #ifdef HAVE_CONFIG_H |
|---|
| 29 | # include <config.h> |
|---|
| 30 | #endif |
|---|
| 31 | |
|---|
| 32 | #ifdef EAZEL_SERVICES |
|---|
| 33 | #include "libeazelinstall.h" |
|---|
| 34 | #include "libtrilobite/libtrilobite.h" |
|---|
| 35 | #include "eazel-package-system.h" |
|---|
| 36 | #include "nautilus-rpm-view-install.h" |
|---|
| 37 | #endif /* EAZEL_SERVICES */ |
|---|
| 38 | |
|---|
| 39 | struct NautilusRPMViewDetails { |
|---|
| 40 | char *current_uri; |
|---|
| 41 | char *package_name; |
|---|
| 42 | |
|---|
| 43 | NautilusView *nautilus_view; |
|---|
| 44 | |
|---|
| 45 | GtkWidget *package_image; |
|---|
| 46 | GtkWidget *package_title; |
|---|
| 47 | GtkWidget *package_release; |
|---|
| 48 | GtkWidget *package_summary; |
|---|
| 49 | GtkWidget *package_size; |
|---|
| 50 | GtkWidget *package_idate; |
|---|
| 51 | GtkWidget *package_license; |
|---|
| 52 | GtkWidget *package_bdate; |
|---|
| 53 | GtkWidget *package_distribution; |
|---|
| 54 | GtkWidget *package_vendor; |
|---|
| 55 | GtkWidget *package_description; |
|---|
| 56 | |
|---|
| 57 | GtkWidget *package_installed_message; |
|---|
| 58 | GtkWidget *package_install_button; |
|---|
| 59 | GtkWidget *package_update_button; |
|---|
| 60 | GtkWidget *package_uninstall_button; |
|---|
| 61 | GtkWidget *package_verify_button; |
|---|
| 62 | |
|---|
| 63 | GtkWidget *verify_window; |
|---|
| 64 | |
|---|
| 65 | GtkVBox *package_container; |
|---|
| 66 | GtkWidget *go_to_button; |
|---|
| 67 | |
|---|
| 68 | GtkWidget *package_file_list; |
|---|
| 69 | gboolean package_installed; |
|---|
| 70 | |
|---|
| 71 | int background_connection; |
|---|
| 72 | int file_count; |
|---|
| 73 | int last_file_index; |
|---|
| 74 | int selected_file; |
|---|
| 75 | |
|---|
| 76 | gboolean verify_success; |
|---|
| 77 | |
|---|
| 78 | #ifdef EAZEL_SERVICES |
|---|
| 79 | /* for installing an rpm */ |
|---|
| 80 | EazelInstallCallback *installer; |
|---|
| 81 | EazelPackageSystem *package_system; |
|---|
| 82 | TrilobiteRootClient *root_client; |
|---|
| 83 | |
|---|
| 84 | PackageData *package; |
|---|
| 85 | /* for password queries */ |
|---|
| 86 | char *remembered_password; |
|---|
| 87 | int password_attempts; |
|---|
| 88 | #endif |
|---|
| 89 | }; |
|---|
| 90 | |
|---|
| 91 | #endif /* NAUTILUS_RPM_VIEW_PRIVATE_H */ |
|---|