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:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2010-2021, Tomasz Sowa
|
||||
* Copyright (c) 2010-2024, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -39,7 +39,6 @@
|
||||
#include "ticket.h"
|
||||
#include "core/system.h"
|
||||
#include "functions/functions.h"
|
||||
#include "db/db.h"
|
||||
#include "tdb.h"
|
||||
#include "space/spaceparser.h"
|
||||
#include "core/winixmodeldeprecated.h"
|
||||
@@ -74,7 +73,6 @@ public:
|
||||
TicketInfo();
|
||||
|
||||
void SetTDb(TDb * ptdb);
|
||||
void SetDb(Db * pdb);
|
||||
//void SetConfig(Config * pconfig);
|
||||
void SetSystem(System * psystem);
|
||||
void SetCur(Cur * pcur);
|
||||
@@ -139,7 +137,6 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
Db * db;
|
||||
TDb * tdb;
|
||||
//Config * config;
|
||||
System * system;
|
||||
@@ -147,7 +144,7 @@ private:
|
||||
Functions * functions;
|
||||
|
||||
// for reading parameters
|
||||
Ticket::TicketParam ticket_param;
|
||||
TicketParam ticket_param;
|
||||
|
||||
// for adding a new image/file to a ticket
|
||||
Item file;
|
||||
@@ -165,9 +162,6 @@ private:
|
||||
Ticket ticket_empty;
|
||||
Item item_empty;
|
||||
|
||||
// for removing a ticket
|
||||
Ticket rm_ticket;
|
||||
|
||||
bool GetConfContent(const std::wstring & path);
|
||||
bool ParseTicketConf(long mount_dir_id, const std::wstring & path);
|
||||
void ReadTicketConf(Mounts & mounts, bool skip_existing_configs);
|
||||
@@ -177,8 +171,8 @@ private:
|
||||
pt::Space & FindAddMetaByParam(pt::Space & meta, long param);
|
||||
|
||||
|
||||
void CheckMinMaxValue(pt::Space & space, Ticket::TicketParam & par);
|
||||
bool ReadTicketValue(pt::Space & space, long param_id, Ticket::TicketParam & par, const std::wstring & value, pt::Space & meta);
|
||||
void CheckMinMaxValue(pt::Space & space, TicketParam & par);
|
||||
bool ReadTicketValue(pt::Space & space, long param_id, TicketParam & par, const std::wstring & value, pt::Space & meta);
|
||||
void ReadTicketValue(pt::Space & space, long param_id, const PostFile & value, pt::Space & meta, Item & upload_dir);
|
||||
void ReadTicketValue(pt::Space & space, long param_id, const PostFile & value, pt::Space & meta);
|
||||
void ReadTicketParam(pt::Space & space, Ticket & ticket, long param_id, const std::wstring & value, pt::Space & meta);
|
||||
|
Reference in New Issue
Block a user