00001 /***************************************************************************** 00002 * 00003 * cdebconf - An implementation of the Debian Configuration Management 00004 * System 00005 * 00006 * $Id$ 00007 * 00008 * cdebconf is (c) 2000-2007 Randolph Chung and others under the following 00009 * license. 00010 * 00011 * Redistribution and use in source and binary forms, with or without 00012 * modification, are permitted provided that the following conditions 00013 * are met: 00014 * 00015 * 1. Redistributions of source code must retain the above copyright 00016 * notice, this list of conditions and the following disclaimer. 00017 * 00018 * 2. Redistributions in binary form must reproduce the above copyright 00019 * notice, this list of conditions and the following disclaimer in the 00020 * documentation and/or other materials provided with the distribution. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' AND 00023 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00024 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00025 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 00026 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00027 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00028 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00029 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00030 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00031 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00032 * SUCH DAMAGE. 00033 * 00034 *****************************************************************************/ 00035 00040 #ifndef _PROGRESS_H_ 00041 #define _PROGRESS_H_ 00042 00043 #include <gtk/gtk.h> 00044 00045 #include "frontend.h" 00046 00047 struct progress_data; 00048 00049 bool fe_gtk_can_cancel_progress(struct frontend * fe); 00050 00051 void fe_gtk_progress_start(struct frontend * fe, int min, int max, 00052 const char * title); 00053 00054 int fe_gtk_progress_set(struct frontend * fe, int val); 00055 00056 int fe_gtk_progress_info(struct frontend * fe, const char * info); 00057 00058 void fe_gtk_progress_stop(struct frontend * fe); 00059 00060 void fe_gtk_show_progress(struct frontend * fe); 00061 00062 void fe_gtk_hide_progress(struct frontend * fe); 00063 00064 #endif /* !_PROGRESS_H_ */
1.5.1