diff options
Diffstat (limited to 'pica-client/accounts.cpp')
| -rw-r--r-- | pica-client/accounts.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pica-client/accounts.cpp b/pica-client/accounts.cpp index 4b70b47..a1cfdd0 100644 --- a/pica-client/accounts.cpp +++ b/pica-client/accounts.cpp @@ -1,6 +1,18 @@ #include "accounts.h" #include <QFile> +Accounts::AccountRecord Accounts::current_account; + +Accounts::AccountRecord & Accounts::GetCurrentAccount() +{ + return Accounts::current_account; +} + +void Accounts::SetCurrentAccount(Accounts::AccountRecord &rec) +{ + Accounts::current_account = rec; +} + Accounts::Accounts(QString storage) { dbconn=QSqlDatabase::addDatabase("QSQLITE"); |
