nntpgrab_internal.h

Go to the documentation of this file.
00001 /*
00002  Copyright (C) 2005-2009 Erik van Pienbroek
00003 
00004  This program is free software; you can redistribute it and/or modify
00005  it under the terms of the GNU General Public License as published by
00006  the Free Software Foundation; either version 2 of the License, or
00007  (at your option) any later version.
00008 
00009  This program is distributed in the hope that it will be useful,
00010  but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00012  GNU General Public License for more details.
00013 
00014  You should have received a copy of the GNU General Public License
00015  along with this program; if not, write to the Free Software
00016  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
00017 */
00018 
00019 #ifndef _NNTPGRAB_INTERNAL_H_
00020 #define _NNTPGRAB_INTERNAL_H_
00021 
00022 #include 
00023 
00024 #include "nntpgrab_types.h"
00025 #include "collections.h"
00026 
00027 void     nntpgrab_core_emit_fatal_error(gboolean direct, const char *errmsg);
00028 void     nntpgrab_core_emit_warning(gboolean direct, const char *errmsg);
00029 void     nntpgrab_core_emit_config_changed(gboolean direct);
00030 void     nntpgrab_core_emit_all_downloads_completed(gboolean direct);
00031 void     nntpgrab_core_emit_connecting(gboolean direct, const char *servername, int conn_id);
00032 void     nntpgrab_core_emit_connected(gboolean direct, const char *servername, int conn_id, const char *welcome_msg);
00033 void     nntpgrab_core_emit_disconnect(gboolean direct, const char *servername, int conn_id, NNTPDisconnectType disconnect_type, const char *errmsg);
00034 void     nntpgrab_core_emit_traffic_monitor_update(gboolean direct, int bytes_received[10], time_t stamp);
00035 void     nntpgrab_core_emit_part_progress_update(gboolean direct, const char *servername, int conn_id, const char *subject, int part_num, int bytes_downloaded, int bytes_total);
00036 void     nntpgrab_core_emit_part_download_start(gboolean direct, const char *servername, int conn_id, const char *collection_name, const char *subject, int part_num);
00037 void     nntpgrab_core_emit_part_done(gboolean direct, const char *servername, int conn_id, const char *collection_name, const char *subject, int part_num, int size);
00038 void     nntpgrab_core_emit_part_failed(gboolean direct, const char *servername, int conn_id, const char *collection_name, const char *subject, int part_num, int size, gboolean all_servers_tried);
00039 void     nntpgrab_core_emit_collection_added(gboolean direct, const char *collection_name, const char *poster);
00040 void     nntpgrab_core_emit_collection_removed(gboolean direct, const char *collection_name);
00041 void     nntpgrab_core_emit_collection_modified(gboolean direct, const char *collection_name, const char *poster);
00042 void     nntpgrab_core_emit_file_added(gboolean direct, const char *collection_name, const char *subject, const char *poster, guint64 stamp, guint64 file_size, guint64 total_size, guint64 total_size_remaining, TaskState status, int num_parts, GList *groups);
00043 void     nntpgrab_core_emit_file_removed(gboolean direct, const char *collection_name, const char *subject, guint64 total_file_size, guint64 total_file_size_remaining);
00044 void     nntpgrab_core_emit_file_download_state_update(gboolean direct, const char *collection_name, const char *subject, int num_parts_total, int num_parts_done, int num_parts_failed, guint64 file_size, guint64 file_size_remaining, guint64 total_file_size, guint64 total_file_size_remaining);
00045 void     nntpgrab_core_emit_file_state_changed(gboolean direct, const char *collection_name, const char *subject, const char *real_filename, TaskState old_state, TaskState new_state);
00046 void     nntpgrab_core_emit_schedular_state_changed(gboolean direct, SchedularState state, const char *reason);
00047 void     nntpgrab_core_emit_debug_message(gboolean direct, const char *message);
00048 void     nntpgrab_core_emit_task_moved(gboolean direct, const char *orig_collection_name, const char *subject, const char *new_collection_name, int old_position, int new_position);
00049 void     nntpgrab_core_emit_collection_moved(gboolean direct, const char *collection_name, int old_position, int new_position);
00050 void     nntpgrab_core_emit_par2_repair_message(gboolean direct, const char *msg);
00051 void     nntpgrab_core_emit_unpack_progress_update (gboolean direct, const char *collection_name, const char *filename, double progress);
00052 void     nntpgrab_core_emit_unpack_message_received (gboolean direct, const char *collection_name, const char *filename, const char *message);
00053 void     nntpgrab_core_emit_unpack_working_archive_changed (gboolean direct, const char *collection_name, const char *filename, const char *working_archive);
00054 void     nntpgrab_core_emit_par2_begin_verify(gboolean direct, const char *collection_name, const char *active_par2_filename);
00055 void     nntpgrab_core_emit_par2_load_progress_update(gboolean direct, const char *collection_name, const char *active_par2_filename, const char *filename, double progress);
00056 void     nntpgrab_core_emit_par2_recovery_file_loaded(gboolean direct, const char *collection_name, const char *active_par2_filename, const char *filename, int num_new_packets, int num_blocks_found);
00057 void     nntpgrab_core_emit_par2_file_loaded(gboolean direct, const char *collection_name, const char *active_par2_filename, const char *filename, PAR2FileState state, int num_blocks_found, int num_blocks_expected);
00058 void     nntpgrab_core_emit_par2_repair_progress_update(gboolean direct, const char *collection_name, const char *active_par2_filename, double progress);
00059 void     nntpgrab_core_emit_par2_repair_failure(gboolean direct, const char *collection_name, const char *active_par2_filename, int num_blocks_more_required);
00060 void     nntpgrab_core_emit_par2_repair_success(gboolean direct, const char *collection_name, const char *active_par2_filename);
00061 void     nntpgrab_core_emit_par2_no_repair_required(gboolean direct, const char *collection_name, const char *active_par2_filename);
00062 
00063 #endif /* _NNTPGRAB_INTERNAL_H_ */

Generated on Thu May 21 21:25:05 2009 for NNTPGrab by  1.5.4