1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
|
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
/*
* Copyright (C) 2000 Eazel, Inc
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library 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 Library 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.
*
* Authors: Eskil Heyn Olsen <eskil@eazel.com>
*
*/
#ifndef EAZEL_INSTALLER_PUBLIC_H
#define EAZEL_INSTALLER_PUBLIC_H
#include <eazel-install-public.h>
#include <eazel-install-problem.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
#define TYPE_EAZEL_INSTALLER (eazel_installer_get_type ())
#define EAZEL_INSTALLER(obj) (GTK_CHECK_CAST ((obj), TYPE_EAZEL_INSTALLER, EazelInstaller))
#define EAZEL_INSTALLER_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), \
TYPE_EAZEL_INSTALLER, EazelInstallerClass))
#define IS_EAZEL_INSTALLER(obj) (GTK_CHECK_TYPE ((obj), TYPE_EAZEL_INSTALLER))
#define IS_EAZEL_INSTALLER_CLASS(klass)(GTK_CHECK_CLASS_TYPE ((klass), TYPE_EAZEL_INSTALLER))
typedef struct _EazelInstaller EazelInstaller;
typedef struct _EazelInstallerClass EazelInstallerClass;
struct _EazelInstallerClass
{
GtkObjectClass parent_class;
};
struct _EazelInstaller
{
GtkObject parent;
GnomeDruid *druid;
GnomeDruidPage *back_page;
GnomeDruidPage *finish_good;
GnomeDruidPage *finish_evil;
GtkWidget *window;
EazelInstall *service;
EazelInstallProblem *problem;
GList *problems;
GList *categories;
GList *install_categories;
GList *force_remove_categories;
GList *must_have_categories;
GList *implicit_must_have;
GList *dont_show;
GList *failure_info; /* GList<char *> */
char *tmpdir;
gboolean debug, output;
gboolean test;
gboolean uninstalling;
unsigned long total_bytes_downloaded;
unsigned long last_KB;
gboolean successful;
GList *attempted_updates; /* This is a list of packages we tried to update,
Before we add, check this list. */
/* once we've got this, we know mystery errors were caused by rpm (this is kind of a hack) */
gboolean got_dep_check;
};
GtkType eazel_installer_get_type(void);
EazelInstaller *eazel_installer_new (void);
void eazel_installer_unref (GtkObject *object);
void eazel_installer_do_install (EazelInstaller *installer,
GList *categories,
gboolean remove);
void eazel_installer_post_install (EazelInstaller *installer);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* EAZEL_INSTALLER_PUBLIC_H */
|