| 1 |
/***************************************************************************** |
| 2 |
* |
| 3 |
* cdebconf - An implementation of the Debian Configuration Management |
| 4 |
* System |
| 5 |
* |
| 6 |
* cdebconf is (c) 2000-2007 Randolph Chung and others under the following |
| 7 |
* license. |
| 8 |
* |
| 9 |
* Redistribution and use in source and binary forms, with or without |
| 10 |
* modification, are permitted provided that the following conditions |
| 11 |
* are met: |
| 12 |
* |
| 13 |
* 1. Redistributions of source code must retain the above copyright |
| 14 |
* notice, this list of conditions and the following disclaimer. |
| 15 |
* |
| 16 |
* 2. Redistributions in binary form must reproduce the above copyright |
| 17 |
* notice, this list of conditions and the following disclaimer in the |
| 18 |
* documentation and/or other materials provided with the distribution. |
| 19 |
* |
| 20 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND |
| 21 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 22 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| 23 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE |
| 24 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL |
| 25 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS |
| 26 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| 27 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 28 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 29 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 30 |
* SUCH DAMAGE. |
| 31 |
* |
| 32 |
*****************************************************************************/ |
| 33 |
|
| 34 |
/** @file progress.h |
| 35 |
* progress bar support for the GTK+ frontend of cdebconf (header) |
| 36 |
*/ |
| 37 |
|
| 38 |
#ifndef _PROGRESS_H_ |
| 39 |
#define _PROGRESS_H_ |
| 40 |
|
| 41 |
#include <gtk/gtk.h> |
| 42 |
|
| 43 |
#include "frontend.h" |
| 44 |
|
| 45 |
struct progress_data; |
| 46 |
|
| 47 |
bool cdebconf_gtk_can_cancel_progress(struct frontend * fe); |
| 48 |
|
| 49 |
void cdebconf_gtk_progress_start(struct frontend * fe, int min, int max, |
| 50 |
struct question * title); |
| 51 |
|
| 52 |
int cdebconf_gtk_progress_set(struct frontend * fe, int val); |
| 53 |
|
| 54 |
int cdebconf_gtk_progress_info(struct frontend * fe, struct question * info); |
| 55 |
|
| 56 |
void cdebconf_gtk_progress_stop(struct frontend * fe); |
| 57 |
|
| 58 |
void cdebconf_gtk_show_progress(struct frontend * fe); |
| 59 |
|
| 60 |
void cdebconf_gtk_hide_progress(struct frontend * fe); |
| 61 |
|
| 62 |
#endif /* !_PROGRESS_H_ */ |