11#ifndef DT_COMMON_FOLDER_SURVEY_H
12#define DT_COMMON_FOLDER_SURVEY_H
20#define DT_FOLDER_SURVEY_STYLES_CONF_KEY "studio_capture/styles"
21#define DT_FOLDER_SURVEY_STYLES_SEPARATOR "\x1f"
int dt_folder_survey_start()
Validate the persisted configuration and start monitoring.
void dt_folder_survey_cleanup()
Release folder survey state after control workers have stopped.
gboolean dt_folder_survey_session_was_active()
TRUE when the previous application session quit while monitoring.
char * dt_folder_survey_destination_preview()
Build the expanded destination path of a sample file from the current configuration,...
gboolean dt_folder_survey_is_active()
TRUE while the periodic folder scan is running.
gboolean(* dt_folder_survey_confirm_import_handler_t)(int new_files)
void dt_folder_survey_stop()
Stop new scans before control workers begin shutting down.
void dt_folder_survey_forget_session()
Persist the cleared session marker, so resume is not proposed again.
void dt_folder_survey_absorb_new_files()
Record every file currently in the surveyed folder as already handled, so restarting the survey will ...
gboolean dt_folder_survey_can_start(const char **message)
Check, without any side effect, whether the persisted configuration has everything dt_folder_survey_s...
gboolean dt_folder_survey_take_session_marker()
Consume the "a session was monitoring when we last closed" marker.
void dt_folder_survey_init()
Initialize the folder survey state from the persisted configuration.
void dt_folder_survey_halt()
User-requested stop: end monitoring and clear the persisted session marker so the next application st...
void dt_folder_survey_set_confirm_import_handler(dt_folder_survey_confirm_import_handler_t handler)
int dt_folder_survey_count_new_files()
Count files in the surveyed folder that are unknown to the persisted baseline, i.e....