WIP: remove the old database abstraction layer

remove such classes:
- DbBase
- DbConn
- DbTextStream
- Db

while here:
- remove: TextStream, SLog, TexTextStream
This commit is contained in:
2024-06-22 18:03:54 +02:00
parent 5d457f3d4b
commit 6aa100f12c
138 changed files with 6658 additions and 12402 deletions

View File

@@ -5,7 +5,7 @@
*/
/*
* Copyright (c) 2008-2021, Tomasz Sowa
* Copyright (c) 2008-2024, Tomasz Sowa
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -40,7 +40,6 @@
#include "ugcontainer.h"
#include "lastcontainer.h"
#include "cur.h"
#include "db/db.h"
#include "models/winixmodel.h"
@@ -73,7 +72,7 @@ public:
// void SetSessionManager(SessionManager * sm);
void Clear();
void ReadUsers(Db * db);
void ReadUsers();
bool AddUser(const User & user);
bool IsUser(const std::wstring & name);
User * GetUser(long user_id);
@@ -84,7 +83,7 @@ public:
SizeType Size();
bool Remove(long user_id);
bool LoginUser(long user_id, bool remember_me, bool use_ses_log = false);
bool LoginUser(long user_id, bool remember_me);
size_t LogoutUser(long user_id);
void LogoutCurrentUser();
@@ -104,8 +103,8 @@ private:
//SessionManager * session_manager;
long how_many_logged;
bool LoginUserCheckSession(bool use_ses_log);
User * LoginUserCheckStatus(long user_id, bool use_ses_log);
bool LoginUserCheckSession();
User * LoginUserCheckStatus(long user_id);
};