schedular.c File Reference

#include
#include
#include
#include
#include
#include "configuration.h"
#include "schedular.h"
#include "plugin_schedular.h"
#include "nntpgrab_plugin_schedular.h"
#include "nntpconnection.h"
#include "decoder.h"
#include "nntpgrab_internal.h"
#include "par2.h"
#include "unpack.h"
#include "collection_alloc.h"
#include "nntpgrab_utils.h"

Data Structures

struct   Schedular
struct   SchedularClass
struct   _foreach_data

Defines

#define  EXT   ".so"

Typedefs

typedef struct SchedularClass  SchedularClass

Functions

  G_DEFINE_TYPE (Schedular, schedular, G_TYPE_OBJECT)
Schedular *  schedular_new (Configuration *config, char **errmsg)
void  schedular_destroy (Schedular *obj)
gboolean  schedular_start (Schedular *obj)
gboolean  schedular_stop (Schedular *obj)
SchedularState  schedular_get_state (Schedular *obj)
gboolean  schedular_add_task_to_queue (Schedular *obj, const char *collection_name, const NNTPFile *file, char **errmsg)
gboolean  schedular_del_task_from_queue (Schedular *obj, const char *collection_name, const char *subject, char **errmsg)
gboolean  schedular_restart_task (Schedular *obj, const char *collection_name, const char *subject, char **errmsg)
gboolean  schedular_save_queue (Schedular *obj, char **errmsg)
void  schedular_foreach_task (Schedular *obj, ForeachCollectionFunc collection_func, ForeachFileFunc file_func, ForeachGroupFunc group_func, gpointer data)
gboolean  schedular_move_task (Schedular *obj, const char *collection_name_src, const char *subject_src, const char *collection_name_dest, int position_dest)
gboolean  schedular_move_collection (Schedular *obj, const char *collection_name, int new_position)

Define Documentation

#define EXT   ".so"


Typedef Documentation

typedef struct SchedularClass SchedularClass


Function Documentation

G_DEFINE_TYPE ( Schedular  ,
schedular  ,
G_TYPE_OBJECT   
)

gboolean schedular_add_task_to_queue ( Schedular *  obj,
const char *  collection_name,
const NNTPFile file,
char **  errmsg  
)

gboolean schedular_del_task_from_queue ( Schedular *  obj,
const char *  collection_name,
const char *  subject,
char **  errmsg  
)

void schedular_destroy ( Schedular *  obj  ) 

void schedular_foreach_task ( Schedular *  obj,
ForeachCollectionFunc  collection_func,
ForeachFileFunc  file_func,
ForeachGroupFunc  group_func,
gpointer  data  
)

SchedularState schedular_get_state ( Schedular *  obj  ) 

gboolean schedular_move_collection ( Schedular *  obj,
const char *  collection_name,
int  new_position  
)

gboolean schedular_move_task ( Schedular *  obj,
const char *  collection_name_src,
const char *  subject_src,
const char *  collection_name_dest,
int  position_dest  
)

Schedular* schedular_new ( Configuration config,
char **  errmsg  
)

gboolean schedular_restart_task ( Schedular *  obj,
const char *  collection_name,
const char *  subject,
char **  errmsg  
)

gboolean schedular_save_queue ( Schedular *  obj,
char **  errmsg  
)

gboolean schedular_start ( Schedular *  obj  ) 

gboolean schedular_stop ( Schedular *  obj  ) 


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