GnuCash
5.6-150-g038405b370+
|
Public Member Functions | |
QofDbiBackendProvider (const char *name, const char *type) | |
QofDbiBackendProvider (QofDbiBackendProvider &)=delete | |
QofDbiBackendProvider | operator= (QofDbiBackendProvider &)=delete |
QofDbiBackendProvider (QofDbiBackendProvider &&)=delete | |
QofDbiBackendProvider | operator= (QofDbiBackendProvider &&)=delete |
QofBackend * | create_backend (void) |
Return a new, fully initialized backend. More... | |
bool | type_check (const char *type) |
Distinguish two providers with same access method. More... | |
template<> | |
bool | type_check (const char *uri) |
Distinguish two providers with same access method. More... | |
Public Member Functions inherited from QofBackendProvider | |
QofBackendProvider (const char *name, const char *type) | |
QofBackendProvider (QofBackendProvider &)=delete | |
QofBackendProvider (QofBackendProvider &&)=delete | |
Additional Inherited Members | |
Data Fields inherited from QofBackendProvider | |
const char * | provider_name |
Some arbitrary name given for this particular backend provider. | |
const char * | access_method |
The access method that this provider provides, for example, file:// http:// postgres:// or sqlite://, but without the :// at the end. | |
Definition at line 97 of file gnc-backend-dbi.cpp.
|
inlinevirtual |
Return a new, fully initialized backend.
If the backend supports configuration, all configuration options should be initialised to usable values here.
Implements QofBackendProvider.
Definition at line 107 of file gnc-backend-dbi.cpp.
|
inlinevirtual |
Distinguish two providers with same access method.
More than 1 backend can be registered under the same access_method, so each one is passed the path to the data (e.g. a file) and should return TRUE only:
if the path contains no data but can be used (e.g. a new session).
Implements QofBackendProvider.
Definition at line 111 of file gnc-backend-dbi.cpp.
|
virtual |
Distinguish two providers with same access method.
More than 1 backend can be registered under the same access_method, so each one is passed the path to the data (e.g. a file) and should return TRUE only:
if the path contains no data but can be used (e.g. a new session).
Implements QofBackendProvider.
Definition at line 1030 of file gnc-backend-dbi.cpp.