|
GnuCash
5.6-150-g038405b370+
|
Public Member Functions | |
| QofSessionImpl (QofBook *book=nullptr) noexcept | |
| void | begin (const char *new_uri, SessionOpenMode mode) noexcept |
| Begin this session. More... | |
| void | swap_books (QofSessionImpl &) noexcept |
| Swap books with another session. | |
| void | ensure_all_data_loaded () noexcept |
| void | load (QofPercentageFunc) noexcept |
| void | save (QofPercentageFunc) noexcept |
| void | safe_save (QofPercentageFunc) noexcept |
| bool | save_in_progress () const noexcept |
| bool | export_session (QofSessionImpl &real_session, QofPercentageFunc) noexcept |
| bool | events_pending () const noexcept |
| bool | process_events () const noexcept |
| void | clear_error () noexcept |
| QofBackendError | pop_error () noexcept |
| std::string const & | get_uri () const noexcept |
| We return by reference so that a pointer to the data of the string lives long enough to make it back to C code. | |
| QofBackendError | get_error () noexcept |
| Returns and clears the local cached error. More... | |
| const std::string & | get_error_message () const noexcept |
| QofBook * | get_book () const noexcept |
| QofBackend * | get_backend () const noexcept |
| const std::string & | get_file_path () const noexcept |
| bool | is_saving () const noexcept |
| void | end () noexcept |
| Terminates the current backend. | |
| void | destroy_backend () noexcept |
Friends | |
| void | qof_session_load_backend (QofSession *, const char *) |
| char const * | qof_session_get_uri (QofSession *) |
| void | qof_session_set_uri (QofSession *, char const *) |
Definition at line 37 of file qofsession.hpp.
|
noexcept |
Begin this session.
Definition at line 251 of file qofsession.cpp.
|
noexcept |
Returns and clears the local cached error.
If there is no local error, we check for an error in the backend.
Definition at line 372 of file qofsession.cpp.
1.8.14