HISTORY: Created by Linas Vepstas December 1998
Copyright (c) 2000 Dave Peticolas
Copyright (c) 2005-2006 Neil Williams <linux@codehelp.co.uk>
Definition in file qofsession.c.
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <glib.h>
#include "qof.h"
#include "qofbackend-p.h"
#include "qofbook-p.h"
#include "qofsession-p.h"
#include "qofobject-p.h"
Go to the source code of this file.
Typedefs | |
| typedef qof_entity_copy_data | QofEntityCopyData |
Functions | |
| void | qof_backend_register_provider (QofBackendProvider *prov) |
| void | qof_session_add_close_hook (GFunc fn, gpointer data) |
| void | qof_session_call_close_hooks (QofSession *session) |
| void | qof_session_push_error (QofSession *session, QofBackendError err, const gchar *message) |
| QofBackendError | qof_session_get_error (QofSession *session) |
| const gchar * | qof_session_get_error_message (QofSession *session) |
| QofBackendError | qof_session_pop_error (QofSession *session) |
| QofSession * | qof_session_new (void) |
| QofBook * | qof_session_get_book (QofSession *session) |
| void | qof_session_add_book (QofSession *session, QofBook *addbook) |
| QofBackend * | qof_session_get_backend (QofSession *session) |
| const gchar * | qof_session_get_file_path (QofSession *session) |
| const gchar * | qof_session_get_url (QofSession *session) |
| void | qof_session_update_reference_list (QofSession *session, QofEntityReference *reference) |
| Adds a new reference to the partial book data hash. | |
| gboolean | qof_entity_copy_to_session (QofSession *new_session, QofEntity *original) |
| Copy a single QofEntity to another session. | |
| gboolean | qof_entity_copy_list (QofSession *new_session, GList *entity_list) |
| Copy a GList of entities to another session. | |
| gboolean | qof_entity_copy_coll (QofSession *new_session, QofCollection *entity_coll) |
| Copy a QofCollection of entities. | |
| gboolean | qof_entity_copy_coll_r (QofSession *new_session, QofCollection *coll) |
| Recursively copy a collection of entities to a session. | |
| gboolean | qof_entity_copy_one_r (QofSession *new_session, QofEntity *ent) |
| Recursively copy a single entity to a new session. | |
| void | qof_session_begin (QofSession *session, const gchar *book_id, gboolean ignore_lock, gboolean create_if_nonexistent) |
| void | qof_session_load (QofSession *session, QofPercentageFunc percentage_func) |
| gboolean | qof_session_save_may_clobber_data (QofSession *session) |
| void | qof_session_save (QofSession *session, QofPercentageFunc percentage_func) |
| void | qof_session_end (QofSession *session) |
| void | qof_session_destroy (QofSession *session) |
| void | qof_session_swap_data (QofSession *session_1, QofSession *session_2) |
| gboolean | qof_session_events_pending (QofSession *session) |
| gboolean | qof_session_process_events (QofSession *session) |
Variables | |
| backend_providers | backend_list [] |
| struct backend_providers backend_list[] |
Initial value:
{
{ "/usr/lib" , "libqof-backend-qsf" , "qsf_provider_init" },
{ "/usr/lib" , "libqof-backend-sqlite", "qof_sqlite_provider_init"},
{NULL, NULL, NULL}
}
Definition at line 1096 of file qofsession.c.
1.4.7