29 #ifndef QOF_SESSION_P_H    30 #define QOF_SESSION_P_H    48     void ensure_all_data_loaded () noexcept;
    52     bool save_in_progress () 
const noexcept;
    55     bool events_pending () 
const noexcept;
    56     bool process_events () 
const noexcept;
    58     void clear_error () noexcept;
    65     std::string 
const & 
get_uri () 
const noexcept;
    71     const std::string& get_error_message () 
const noexcept;
    72     QofBook * get_book () 
const noexcept;
    74     const std::string& get_file_path () 
const noexcept;
    75     bool is_saving () 
const noexcept;
    81     void destroy_backend () noexcept;
    84     void push_error (
QofBackendError const err, std::string message) noexcept;
    86     void load_backend (std::string access_method) noexcept;
   111     std::string m_error_message;
   115     friend void qof_session_load_backend (QofSession *, 
const char *);
   116     friend char const * qof_session_get_uri (QofSession *);
   117     friend void qof_session_set_uri (QofSession *, 
char const *);
   120 typedef struct qof_instance_copy_data
   125     GList  *referenceList;
   127     QofSession *new_session;
 Encapsulates a connection to a backend (persistent store) 
 
void swap_books(QofSessionImpl &) noexcept
Swap books with another session. 
 
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. 
 
void end() noexcept
Terminates the current backend. 
 
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 ...
 
QofBackendError get_error() noexcept
Returns and clears the local cached error. 
 
Encapsulate all the information about a dataset. 
 
SessionOpenMode
Mode for opening sessions. 
 
void begin(const char *new_uri, SessionOpenMode mode) noexcept
Begin this session. 
 
QofBackend * qof_session_get_backend(const QofSession *session)
Returns the qof session's backend.