added: mount points have parameters now
added: to the database: table 'thread' git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@499 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
10
core/db.h
10
core/db.h
@@ -28,6 +28,8 @@
|
||||
#include "user.h"
|
||||
#include "group.h"
|
||||
#include "ugcontainer.h"
|
||||
#include "thread.h"
|
||||
|
||||
|
||||
|
||||
class Db
|
||||
@@ -48,7 +50,7 @@ public:
|
||||
Error EditItemById(Item & item, bool with_subject = true);
|
||||
Error EditItemByUrl(Item & item, bool with_subject = true);
|
||||
void CheckAllUrlSubject();
|
||||
void GetItems(std::vector<Item> & item_table, Item & item_ref);
|
||||
void GetItems(std::vector<Item> & item_table, Item & item_ref, bool asc = true);
|
||||
void GetItem(std::vector<Item> & item_table, long id);
|
||||
bool GetPriv(Item & item, long id);
|
||||
Error EditPrivById(Item & item, long id);
|
||||
@@ -75,6 +77,10 @@ public:
|
||||
|
||||
virtual void Connect();
|
||||
|
||||
|
||||
Error AddThread(Thread & thread);
|
||||
Error GetThreadByDirId(long dir_id, Thread & thread);
|
||||
|
||||
protected:
|
||||
|
||||
PGconn * pg_conn;
|
||||
@@ -106,7 +112,7 @@ protected:
|
||||
|
||||
void CheckAllUrlSubjectModifyItem(Item & item);
|
||||
|
||||
PGresult * GetItemsQuery(Item & item_ref);
|
||||
PGresult * GetItemsQuery(Item & item_ref, bool asc = true);
|
||||
|
||||
bool DelItemDelItem(const Item & item);
|
||||
void DelItemDelContent(const Item & item);
|
||||
|
Reference in New Issue
Block a user