core_signals.c File Reference

#include
#include
#include "nntpgrab.h"
#include "collections.h"

Data Structures

struct   _do_emit_connecting_data
struct   _do_emit_connected_data
struct   _do_emit_disconnect_data
struct   _traffic_data
struct   _part_data
struct   _part_progress_data
struct   _collection_modified_data
struct   _file_added_data
struct   _file_removed_data
struct   _file_download_state_update_data
struct   _file_state_data
struct   _schedular_data
struct   _debug_data
struct   _move_data
struct   _unpack_data
struct   _par2_data

Defines

#define  IDLE_PRIORITY   G_PRIORITY_HIGH_IDLE + 50

Functions

NNTPGrabCore get_core (void)
void  nntpgrab_core_emit_fatal_error (gboolean direct, const char *errmsg)
void  nntpgrab_core_emit_warning (gboolean direct, const char *errmsg)
void  nntpgrab_core_emit_config_changed (gboolean direct)
void  nntpgrab_core_emit_all_downloads_completed (gboolean direct)
void  nntpgrab_core_emit_connecting (gboolean direct, const char *servername, int conn_id)
void  nntpgrab_core_emit_connected (gboolean direct, const char *servername, int conn_id, const char *welcome_msg)
void  nntpgrab_core_emit_disconnect (gboolean direct, const char *servername, int conn_id, NNTPDisconnectType disconnect_type, const char *errmsg)
void  nntpgrab_core_emit_traffic_monitor_update (gboolean direct, int bytes_received[10], time_t stamp)
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)
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)
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)
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)
void  nntpgrab_core_emit_collection_added (gboolean direct, const char *collection_name, const char *poster)
void  nntpgrab_core_emit_collection_removed (gboolean direct, const char *collection_name)
void  nntpgrab_core_emit_collection_modified (gboolean direct, const char *collection_name, const char *poster)
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)
void  nntpgrab_core_emit_file_removed (gboolean direct, const char *collection_name, const char *subject, guint64 total_file_size, guint64 total_file_size_remaining)
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)
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)
void  nntpgrab_core_emit_schedular_state_changed (gboolean direct, SchedularState state, const char *reason)
void  nntpgrab_core_emit_debug_message (gboolean direct, const char *message)
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)
void  nntpgrab_core_emit_collection_moved (gboolean direct, const char *collection_name, int old_position, int new_position)
void  nntpgrab_core_emit_par2_repair_message (gboolean direct, const char *msg)
void  nntpgrab_core_emit_unpack_progress_update (gboolean direct, const char *collection_name, const char *filename, double progress)
void  nntpgrab_core_emit_unpack_message_received (gboolean direct, const char *collection_name, const char *filename, const char *message)
void  nntpgrab_core_emit_unpack_working_archive_changed (gboolean direct, const char *collection_name, const char *filename, const char *working_archive)
void  nntpgrab_core_emit_par2_begin_verify (gboolean direct, const char *collection_name, const char *active_par2_filename)
void  nntpgrab_core_emit_par2_load_progress_update (gboolean direct, const char *collection_name, const char *active_par2_filename, const char *filename, double progress)
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)
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)
void  nntpgrab_core_emit_par2_repair_progress_update (gboolean direct, const char *collection_name, const char *active_par2_filename, double progress)
void  nntpgrab_core_emit_par2_repair_failure (gboolean direct, const char *collection_name, const char *active_par2_filename, int num_blocks_more_required)
void  nntpgrab_core_emit_par2_repair_success (gboolean direct, const char *collection_name, const char *active_par2_filename)
void  nntpgrab_core_emit_par2_no_repair_required (gboolean direct, const char *collection_name, const char *active_par2_filename)

Define Documentation

#define IDLE_PRIORITY   G_PRIORITY_HIGH_IDLE + 50


Function Documentation

NNTPGrabCore* get_core ( void   ) 

void nntpgrab_core_emit_all_downloads_completed ( gboolean  direct  ) 

void nntpgrab_core_emit_collection_added ( gboolean  direct,
const char *  collection_name,
const char *  poster  
)

void nntpgrab_core_emit_collection_modified ( gboolean  direct,
const char *  collection_name,
const char *  poster  
)

void nntpgrab_core_emit_collection_moved ( gboolean  direct,
const char *  collection_name,
int  old_position,
int  new_position  
)

void nntpgrab_core_emit_collection_removed ( gboolean  direct,
const char *  collection_name  
)

void nntpgrab_core_emit_config_changed ( gboolean  direct  ) 

void nntpgrab_core_emit_connected ( gboolean  direct,
const char *  servername,
int  conn_id,
const char *  welcome_msg  
)

void nntpgrab_core_emit_connecting ( gboolean  direct,
const char *  servername,
int  conn_id  
)

void nntpgrab_core_emit_debug_message ( gboolean  direct,
const char *  message  
)

void nntpgrab_core_emit_disconnect ( gboolean  direct,
const char *  servername,
int  conn_id,
NNTPDisconnectType  disconnect_type,
const char *  errmsg  
)

void nntpgrab_core_emit_fatal_error ( gboolean  direct,
const char *  errmsg  
)

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  
)

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  
)

void nntpgrab_core_emit_file_removed ( gboolean  direct,
const char *  collection_name,
const char *  subject,
guint64  total_file_size,
guint64  total_file_size_remaining  
)

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  
)

void nntpgrab_core_emit_par2_begin_verify ( gboolean  direct,
const char *  collection_name,
const char *  active_par2_filename  
)

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  
)

void nntpgrab_core_emit_par2_load_progress_update ( gboolean  direct,
const char *  collection_name,
const char *  active_par2_filename,
const char *  filename,
double  progress  
)

void nntpgrab_core_emit_par2_no_repair_required ( gboolean  direct,
const char *  collection_name,
const char *  active_par2_filename  
)

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  
)

void nntpgrab_core_emit_par2_repair_failure ( gboolean  direct,
const char *  collection_name,
const char *  active_par2_filename,
int  num_blocks_more_required  
)

void nntpgrab_core_emit_par2_repair_message ( gboolean  direct,
const char *  msg  
)

void nntpgrab_core_emit_par2_repair_progress_update ( gboolean  direct,
const char *  collection_name,
const char *  active_par2_filename,
double  progress  
)

void nntpgrab_core_emit_par2_repair_success ( gboolean  direct,
const char *  collection_name,
const char *  active_par2_filename  
)

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  
)

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  
)

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  
)

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  
)

void nntpgrab_core_emit_schedular_state_changed ( gboolean  direct,
SchedularState  state,
const char *  reason  
)

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  
)

void nntpgrab_core_emit_traffic_monitor_update ( gboolean  direct,
int  bytes_received[10],
time_t  stamp  
)

void nntpgrab_core_emit_unpack_message_received ( gboolean  direct,
const char *  collection_name,
const char *  filename,
const char *  message  
)

void nntpgrab_core_emit_unpack_progress_update ( gboolean  direct,
const char *  collection_name,
const char *  filename,
double  progress  
)

void nntpgrab_core_emit_unpack_working_archive_changed ( gboolean  direct,
const char *  collection_name,
const char *  filename,
const char *  working_archive  
)

void nntpgrab_core_emit_warning ( gboolean  direct,
const char *  errmsg  
)


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