diff options
| author | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-09-01 12:34:15 +0000 |
|---|---|---|
| committer | me_desk <me_desk@fb96df88-216d-11de-830c-f3023f12d8ac> | 2013-09-01 12:34:15 +0000 |
| commit | fe7749bee62380dac4d5dea00b2f5b20db344cbb (patch) | |
| tree | e46ee11712b0444eee5874328567c050f6498d0b /pica-client/accounts.h | |
| parent | d970ad6a4ac7e077390d8fdac0a4fc576b24dc5c (diff) | |
| download | pica-pica-fe7749bee62380dac4d5dea00b2f5b20db344cbb.tar.gz pica-pica-fe7749bee62380dac4d5dea00b2f5b20db344cbb.zip | |
global variable account_id is replaced with static members Accounts::AccountRecord & Accounts::GetCurrentAccount() and SetCurrentAccount()
git-svn-id: svn://localhost/project_picapica/trunk@268 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'pica-client/accounts.h')
| -rw-r--r-- | pica-client/accounts.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pica-client/accounts.h b/pica-client/accounts.h index 9389906..8cb6592 100644 --- a/pica-client/accounts.h +++ b/pica-client/accounts.h @@ -28,9 +28,15 @@ public: static bool CheckFiles(AccountRecord& acc, QString &error_string); + static AccountRecord &GetCurrentAccount(); + static void SetCurrentAccount(AccountRecord &rec); + private: + static AccountRecord current_account; QSqlDatabase dbconn; QSqlError lasterr; + + }; #endif // ACCOUNTS_H |
