#include "nntpgrab_plugin_base.h"#include "collections.h"Go to the source code of this file.
        Data Structures | 
    |
| struct | _plugin_schedular_imported_funcs | 
        Typedefs | 
    |
| typedef struct _plugin_schedular_imported_funcs  | 
      PluginSchedularImportedFuncs | 
        Functions | 
    |
| gboolean | nntpgrab_plugin_schedular_initialize (PluginSchedularImportedFuncs funcs, char **errmsg) | 
| Initialize the plugin.  | 
    |
| void | nntpgrab_plugin_schedular_destroy (void) | 
| Destroy the plugin.  | 
    |
| int | nntpgrab_plugin_schedular_get_version (void) | 
| Return the API version of the plugin.  | 
    |
| gboolean | nntpgrab_plugin_schedular_start (void) | 
| Start the schedular thread.  | 
    |
| gboolean | nntpgrab_plugin_schedular_stop (const char *reason) | 
| Stop/pause the schedular thread.  | 
    |
| SchedularState | nntpgrab_plugin_schedular_get_state (void) | 
| Retrieves the status of the schedular.  | 
    |
| gboolean | nntpgrab_plugin_schedular_add_task_to_queue (const char *collection_name, NNTPFile *file, char **errmsg) | 
| Add a new task to the download queue.  | 
    |
| gboolean | nntpgrab_plugin_schedular_del_task_from_queue (const char *collection_name, const char *subject, char **errmsg) | 
| Remove a task from the download queue.  | 
    |
| gboolean | nntpgrab_plugin_schedular_restart_task (const char *collection_name, const char *subject, char **errmsg) | 
| Restarts a task.  | 
    |
| gboolean | nntpgrab_plugin_schedular_save_queue (char **errmsg) | 
| Saves the download queue to disk.  | 
    |
| void | nntpgrab_plugin_schedular_foreach_task (GFunc foreach_func, gpointer data) | 
| Get a list of all the tasks which are already in the download queue.  | 
    |
| gboolean | nntpgrab_plugin_schedular_move_task (const char *collection_name_src, const char *subject_src, const char *collection_name_dest, int position_dest) | 
| Moves one item in the download queue to a new position and collection.  | 
    |
| gboolean | nntpgrab_plugin_schedular_move_collection (const char *collection_name, int new_position) | 
| Moves the position of one collection in the download queue.  | 
    |
| typedef struct _plugin_schedular_imported_funcs PluginSchedularImportedFuncs | 
| gboolean nntpgrab_plugin_schedular_add_task_to_queue | ( | const char * | collection_name, | |
| NNTPFile * | file, | |||
| char ** | errmsg | |||
| ) | 
Add a new task to the download queue.
| gboolean nntpgrab_plugin_schedular_del_task_from_queue | ( | const char * | collection_name, | |
| const char * | subject, | |||
| char ** | errmsg | |||
| ) | 
Remove a task from the download queue.
| void nntpgrab_plugin_schedular_destroy | ( | void | ) | 
Destroy the plugin.
| void nntpgrab_plugin_schedular_foreach_task | ( | GFunc | foreach_func, | |
| gpointer | data | |||
| ) | 
Get a list of all the tasks which are already in the download queue.
| SchedularState nntpgrab_plugin_schedular_get_state | ( | void | ) | 
Retrieves the status of the schedular.
| int nntpgrab_plugin_schedular_get_version | ( | void | ) | 
Return the API version of the plugin.
This is used to verify that the plugin is compatible with the interface the NNTPGrab Core expects
| gboolean nntpgrab_plugin_schedular_initialize | ( | PluginSchedularImportedFuncs | funcs, | |
| char ** | errmsg | |||
| ) | 
Initialize the plugin.
| gboolean nntpgrab_plugin_schedular_move_collection | ( | const char * | collection_name, | |
| int | new_position | |||
| ) | 
Moves the position of one collection in the download queue.
| gboolean nntpgrab_plugin_schedular_move_task | ( | const char * | collection_name_src, | |
| const char * | subject_src, | |||
| const char * | collection_name_dest, | |||
| int | position_dest | |||
| ) | 
Moves one item in the download queue to a new position and collection.
| gboolean nntpgrab_plugin_schedular_restart_task | ( | const char * | collection_name, | |
| const char * | subject, | |||
| char ** | errmsg | |||
| ) | 
Restarts a task.
All parts will be downloaded and decoded again
| gboolean nntpgrab_plugin_schedular_save_queue | ( | char ** | errmsg | ) | 
Saves the download queue to disk.
| gboolean nntpgrab_plugin_schedular_start | ( | void | ) | 
Start the schedular thread.
Any items in the download queue will be downloaded
| gboolean nntpgrab_plugin_schedular_stop | ( | const char * | reason | ) | 
Stop/pause the schedular thread.
Active download jobs will be finished, but no new ones will be started.