53#define QOF_MOD_BACKEND "qof.backend"
59 ERR_BACKEND_NO_ERR = 0,
138 gboolean qof_backend_can_rollback (
QofBackend*);
void qof_backend_set_error(QofBackend *, QofBackendError)
Set the error on the specified QofBackend.
QofBackendError
The errors that can be reported to the GUI & other front-end users.
QofBackend * qof_book_get_backend(const QofBook *book)
Retrieve the backend used by this book.
QofBackendError qof_backend_get_error(QofBackend *)
Get the last backend error.
void(* QofBePercentageFunc)(const char *message, double percent)
DOCUMENT ME!
gboolean qof_load_backend_library(const gchar *directory, const gchar *module_name)
Load a QOF-compatible backend shared library.
void qof_finalize_backend_libraries(void)
Finalize all loaded backend shareable libraries.
@ ERR_BACKEND_ALLOC
internal memory allocation failure
@ ERR_BACKEND_MOD_DESTROY
commit of object update failed because another user has deleted the object
@ ERR_RPC_CANT_ACCEPT
can't accept connection
@ ERR_FILEIO_FILE_EACCES
No read access permission for the given file.
@ ERR_SQL_DB_BUSY
database is busy, cannot upgrade version
@ ERR_BACKEND_NO_SUCH_DB
the named database doesn't exist
@ ERR_BACKEND_BAD_URL
Can't parse url.
@ ERR_RPC_BAD_VERSION
RPC Version Mismatch.
@ ERR_BACKEND_STORE_EXISTS
File exists, data would be destroyed.
@ ERR_BACKEND_NO_HANDLER
no backend handler found for this access method (ENOSYS)
@ ERR_BACKEND_LOCKED
in use by another user (ETXTBSY)
@ ERR_FILEIO_WRITE_ERROR
couldn't write to the file
@ ERR_NETIO_SHORT_READ
not enough bytes received
@ ERR_SQL_MISSING_DATA
database doesn't contain expected data
@ ERR_NETIO_WRONG_CONTENT_TYPE
wrong kind of server, wrong data served
@ ERR_BACKEND_SERVER_ERR
error in response from server
@ ERR_FILEIO_FILE_EMPTY
file exists, is readable, but is empty
@ ERR_FILEIO_FILE_LOCKERR
mangled locks (unspecified error)
@ ERR_BACKEND_NO_BACKEND
Backend * pointer was unexpectedly null.
@ ERR_FILEIO_NO_ENCODING
file does not specify encoding
@ ERR_BACKEND_DATA_CORRUPT
data in db is corrupt
@ ERR_SQL_DB_TOO_OLD
database is old and needs upgrading
@ ERR_RPC_HOST_UNK
Host unknown.
@ ERR_SQL_DB_TOO_NEW
database is newer, we can't write to it
@ ERR_BACKEND_CANT_CONNECT
bad dbname/login/passwd or network failure
@ ERR_FILEIO_FILE_BAD_READ
read failed or file prematurely truncated
@ ERR_BACKEND_MODIFIED
commit of object update failed because another user has modified the object
@ ERR_FILEIO_READ_ERROR
Could not open the file for reading.
@ ERR_FILEIO_FILE_UPGRADE
file will be upgraded and not be able to be read by prior versions - warn users
@ ERR_RPC_NOT_ADDED
object not added
@ ERR_FILEIO_UNKNOWN_FILE_TYPE
didn't recognize the file type
@ ERR_SQL_DBI_UNTESTABLE
could not complete test for LibDBI bug
@ ERR_NETIO_NOT_GNCXML
whatever it is, we can't parse it.
@ ERR_BACKEND_MISC
undetermined error
@ ERR_RPC_FAILED
Operation failed.
@ ERR_FILEIO_BACKUP_ERROR
couldn't make a backup of the file
@ ERR_BACKEND_TOO_NEW
file/db version newer than what we can read
@ ERR_FILEIO_RESERVED_WRITE
User attempt to write to a directory reserved for internal use by GnuCash.
@ ERR_FILEIO_PARSE_ERROR
couldn't parse the data in the file
@ ERR_BACKEND_PERM
user login successful, but no permissions to access the desired object
@ ERR_FILEIO_FILE_NOT_FOUND
not found / no such file
@ ERR_RPC_NO_CONNECTION
no connection to server
@ ERR_BACKEND_READONLY
cannot write to file/directory
@ ERR_FILEIO_FILE_TOO_OLD
file version so old we can't read it
@ ERR_BACKEND_CONN_LOST
Lost connection to server.
@ ERR_QOF_OVERFLOW
EOVERFLOW - generated by strtol or strtoll.
@ ERR_SQL_BAD_DBI
LibDBI has numeric errors.
@ ERR_RPC_CANT_BIND
can't bind to address
Object instance holds common fields that most gnucash objects use.