111 #define QOF_MOD_SESSION "qof.session" 122 SESSION_NORMAL_OPEN = 0,
138 QofSession * qof_session_new (QofBook* book);
139 void qof_session_destroy (QofSession *session);
200 void qof_session_load (QofSession *session,
209 const char * qof_session_get_error_message(
const QofSession *session);
243 const char * qof_session_get_url (
const QofSession *session);
305 gboolean qof_session_export (QofSession *tmp_session,
306 QofSession *real_session,
void qof_session_save(QofSession *session, QofPercentageFunc percentage_func)
The qof_session_save() method will commit all changes that have been made to the session.
gboolean qof_session_save_in_progress(const QofSession *session)
The qof_session_not_saved() subroutine will return TRUE if any data in the session hasn't been saved ...
API for data storage Backend.
void(* QofPercentageFunc)(const char *message, double percent)
The qof_session_load() method causes the QofBook to be made ready to to use with this URL/datastore...
QofBackendError
The errors that can be reported to the GUI & other front-end users.
the Core Object Registration/Lookup Interface
void qof_session_safe_save(QofSession *session, QofPercentageFunc percentage_func)
A special version of save used in the sql backend which moves the existing tables aside...
void qof_session_begin(QofSession *session, const char *new_uri, SessionOpenMode mode)
Begins a new session.
gboolean qof_session_events_pending(const QofSession *session)
The qof_session_events_pending() method will return TRUE if the backend has pending events which must...
Create a new store at the URI.
Open the session read-only, ignoring any existing lock and not creating one if the URI isn't locked...
const char * qof_session_get_file_path(const QofSession *session)
The qof_session_get_file_path() routine returns the fully-qualified file path for the session...
Create a new store at the URI even if a store already exists there.
QofBook * qof_session_get_book(const QofSession *session)
Returns the QofBook of this session.
QofBackendError qof_session_pop_error(QofSession *session)
The qof_session_pop_error() routine can be used to obtain the reason for any failure.
QofBackendError qof_session_get_error(QofSession *session)
The qof_session_get_error() routine can be used to obtain the reason for any failure.
void qof_session_swap_data(QofSession *session_1, QofSession *session_2)
The qof_session_swap_data () method swaps the book of the two given sessions.
Encapsulate all the information about a dataset.
API for registering parameters on objects.
SessionOpenMode
Mode for opening sessions.
gboolean qof_session_process_events(QofSession *session)
The qof_session_process_events() method will process any events indicated by the qof_session_events_p...
void qof_session_ensure_all_data_loaded(QofSession *session)
Ensure all of the data is loaded from the session.
GList * qof_backend_get_registered_access_method_list(void)
Return a list of strings for the registered access methods.
void qof_session_end(QofSession *session)
The qof_session_end() method will release the session lock.
QofBackend * qof_session_get_backend(const QofSession *session)
Returns the qof session's backend.
Open will fail if the URI doesn't exist or is locked.