added: mount params can have arguments (in parentheses) added: mount params: withheader, withinfo, restrictcreatethread, only_root_can_remove, can_use_emacs_on(level), can_use_mkdir_on(level), added: table Item has 'subject' column now removed: column 'subject' from table Content git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@505 e52654a7-88a9-db11-a3e9-0013d4bc506e
52 lines
748 B
C++
Executable File
52 lines
748 B
C++
Executable File
/*
|
|
* This file is a part of CMSLU -- Content Management System like Unix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2009, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfilecmslucorecorethread
|
|
#define headerfilecmslucorecorethread
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
class Thread
|
|
{
|
|
public:
|
|
|
|
long id;
|
|
|
|
// !! parent_id potrzebne w ogole jest?
|
|
long parent_id;
|
|
|
|
long dir_id;
|
|
bool closed;
|
|
|
|
// how many items there are inside
|
|
long items;
|
|
|
|
// last item in the directory (this variable is mainly for reading)
|
|
// at the moment only used: id, date_modification, user_id
|
|
Item last_item;
|
|
|
|
void Clear()
|
|
{
|
|
id = parent_id = dir_id = -1;
|
|
last_item.Clear();
|
|
closed = false;
|
|
items = 0;
|
|
}
|
|
|
|
Thread()
|
|
{
|
|
Clear();
|
|
}
|
|
|
|
};
|
|
|
|
#endif
|