GnuCashew ~ GnuCash Enabled Web
GCW
|
GnuCash Native Session. More...
#include <SessionGnuCashew.h>
Public Member Functions | |
Session () | |
bool | open (const std::string &_path) |
Open a database. More... | |
bool | hasGnuCashewExtensions () |
Check GnuCashew Extensions. More... | |
bool | addGnuCashewExtensions () |
Add GnuCashew Extensions. More... | |
bool | gnucashIsOpen () const |
void | openGnucash () |
void | closeGnucash () |
auto | users () -> Wt::Auth::AbstractUserDatabase & |
auto | login () -> Wt::Auth::Login & |
![]() | |
AbstractSession () | |
auto | open (const std::string &_path) -> bool |
Open a database. More... | |
auto | path () const -> const std::string & |
auto | isOpen () const -> bool |
Private Attributes | |
std::unique_ptr< GCW::Dbo::Users::UserDatabase > | m_users |
Wt::Auth::Login | m_login |
Additional Inherited Members | |
![]() | |
std::string | m_path |
bool | m_isOpen = false |
GnuCash Native Session.
This session controller is designed to interface to a back-end gnucash data structure, without modification.
Definition at line 20 of file SessionGnuCashew.h.
|
inline |
Definition at line 25 of file SessionGnuCashew.h.
bool GCW::Dbo::GnuCashew::Session::addGnuCashewExtensions | ( | ) |
Add GnuCashew Extensions.
This makes the necessary modifications to the database to include the extensions necessary to support the GnuCashew attributes.
This function can be called repeatedly, as it will check for the presense of each attribute before it is added.
Definition at line 136 of file SessionGnuCashew.cpp.
References GCW::Core::currentDateTime(), GCW::Dbo::Vars::get(), ISO_DATE_FORMAT, GCW::Gui::BillPay::toString(), and TR.
void GCW::Dbo::GnuCashew::Session::closeGnucash | ( | ) |
bool GCW::Dbo::GnuCashew::Session::gnucashIsOpen | ( | ) | const |
bool GCW::Dbo::GnuCashew::Session::hasGnuCashewExtensions | ( | ) |
Check GnuCashew Extensions.
This examines the database tables to determine if the necessary modifications have been made to the database to support the GnuCashew Extensions.
Definition at line 74 of file SessionGnuCashew.cpp.
References GCW::Dbo::Vars::s_tableName.
|
inline |
Definition at line 60 of file SessionGnuCashew.h.
References m_login.
Referenced by GCW::App::App().
bool GCW::Dbo::GnuCashew::Session::open | ( | const std::string & | _path | ) |
Open a database.
Definition at line 19 of file SessionGnuCashew.cpp.
References GCW::Dbo::Users::configure(), GCW::Dbo::AbstractSession::isOpen(), GCW::Dbo::AbstractSession::m_isOpen, m_users, GCW::Dbo::Users::mapClasses(), and GCW::Dbo::AbstractSession::open().
Referenced by GCW::App::App().
void GCW::Dbo::GnuCashew::Session::openGnucash | ( | ) |
|
inline |
Definition at line 59 of file SessionGnuCashew.h.
References m_users.
|
private |
Definition at line 65 of file SessionGnuCashew.h.
Referenced by login().
|
private |
Definition at line 64 of file SessionGnuCashew.h.