OSDN Git Service

LinGui: add update checking. shows a dialog similar to the macui when
[handbrake-jp/handbrake-jp-git.git] / gtk / src / callbacks.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  * callbacks.h
4  * Copyright (C) John Stebbins 2008 <stebbins@stebbins>
5  * 
6  * callbacks.h is free software.
7  * 
8  * You may redistribute it and/or modify it under the terms of the
9  * GNU General Public License, as published by the Free Software
10  * Foundation; either version 2 of the License, or (at your option)
11  * any later version.
12  * 
13  * callbacks.h 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.
16  * See the GNU General Public License for more details.
17  * 
18  * You should have received a copy of the GNU General Public License
19  * along with callbacks.h.  If not, write to:
20  *      The Free Software Foundation, Inc.,
21  *      51 Franklin Street, Fifth Floor
22  *      Boston, MA  02110-1301, USA.
23  */
24
25 #if !defined(_CALLBACKS_H_)
26 #define _CALLBACKS_H_
27
28 #include <gtk/gtk.h>
29 #include "settings.h"
30
31 void ghb_check_all_depencencies(signal_user_data_t *ud);
32 gboolean ghb_timer_cb(gpointer data);
33 gboolean ghb_log_cb(GIOChannel *source, GIOCondition cond, gpointer data);
34 void debug_log_handler(
35         const gchar *domain, GLogLevelFlags flags, const gchar *msg, gpointer ud);
36 void ghb_hbfd(signal_user_data_t *ud, gboolean hbfd);
37 void ghb_file_menu_add_dvd(signal_user_data_t *ud);
38 void ghb_hal_init();
39 gboolean ghb_message_dialog(
40         GtkMessageType type, const gchar *message, 
41         const gchar *no, const gchar *yes);
42 void ghb_init_dep_map();
43 gboolean ghb_reload_queue(signal_user_data_t *ud);
44 gboolean ghb_cancel_encode(const gchar *extra_msg);
45 GValue* ghb_start_next_job(signal_user_data_t *ud, gboolean find_first);
46 void ghb_check_dependency(signal_user_data_t *ud, GtkWidget *widget);
47 void ghb_do_scan(signal_user_data_t *ud, const gchar *filename, gboolean force);
48 void ghb_log(gchar *log, ...);
49 gboolean ghb_check_update(signal_user_data_t *ud);
50
51 #endif // _CALLBACKS_H_
52