![]() |
![]() |
![]() |
NNTPGrab Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
typedef NNTPGrabAutoImport; typedef NNTPGrabAutoImportClass; NGConfigOpts (*ConfigGetOptsFunc) (void *user_data
); void (*ImportNZBFileFunc) (void *user_data
,NNTPGrabNZB *nzbfile
,const char *filename
,char **errmsg
); void nntpgrab_automation_auto_import_destroy (NNTPGrabAutoImport *auto_import
); NNTPGrabAutoImport * nntpgrab_automation_auto_import_new (ConfigGetOptsFunc config_get_opts_func
,ImportNZBFileFunc import_nzb_file_func
,void *user_data
); void nntpgrab_automation_disable_auto_import (NNTPGrabAutoImport *auto_import
); ngboolean nntpgrab_automation_enable_auto_import (NNTPGrabAutoImport *auto_import
,const char *directory
,char **errmsg
);
void (*ImportNZBFileFunc) (void *user_data
,NNTPGrabNZB *nzbfile
,const char *filename
,char **errmsg
);
void nntpgrab_automation_auto_import_destroy
(NNTPGrabAutoImport *auto_import
);
Destroy an NNTPGrabAutoImport object
|
The NNTPGrabAutoImport object which needs to be destroyed |
NNTPGrabAutoImport * nntpgrab_automation_auto_import_new (ConfigGetOptsFunc config_get_opts_func
,ImportNZBFileFunc import_nzb_file_func
,void *user_data
);
Create a new NNTPGrabAutoImport object
|
The function which can be called to retrieve configuration settings |
|
The function which can be called in order to import an NZB file |
|
User provided callback data |
void nntpgrab_automation_disable_auto_import
(NNTPGrabAutoImport *auto_import
);
Stop monitoring of a folder for new NZB files
|
An instance of the NNTPGrabAutoImport |
ngboolean nntpgrab_automation_enable_auto_import (NNTPGrabAutoImport *auto_import
,const char *directory
,char **errmsg
);
Enable monitoring of a specific folder Only one folder can be monitored by one NNTPGrabAutoImport instance at a time
|
An instance of the NNTPGrabAutoImport |
|
The folder which needs to be monitored for NZB files |
|
Location to catch error messages. Can be NULL to ignore errors. [allow-none][out] |
Returns : |
TRUE on success, FALSE on failure (errmsg will be set) |
"nzb-imported"
signalvoid user_function (NNTPGrabAutoImport *obj, gchar *filename, gchar *collection_name, gpointer user_data) : Run Last / Has Details
A NZB file has successfully been detected and imported to the download queue
|
An instance of the NNTPGrabAutoImport |
|
The filename of the NZB file which has just been imported |
|
The name of the collection in which this NZB file has been imported |
|
user data set when the signal handler was connected. |