2009-04-21 01:49:28 +02:00
|
|
|
/*
|
2010-02-28 01:08:10 +01:00
|
|
|
* This file is a part of Winix
|
2009-04-21 01:49:28 +02:00
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
|
|
|
* Copyright (c) 2009, Tomasz Sowa
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
#ifndef headerfilecmslucorecorethread
|
|
|
|
#define headerfilecmslucorecorethread
|
2009-04-21 01:49:28 +02:00
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
|
2009-04-21 01:49:28 +02:00
|
|
|
class Thread
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
long id;
|
2009-06-05 22:29:06 +02:00
|
|
|
long parent_id;
|
|
|
|
|
2009-04-21 01:49:28 +02:00
|
|
|
long dir_id;
|
|
|
|
bool closed;
|
|
|
|
|
2009-06-05 22:29:06 +02:00
|
|
|
// how many items there are inside
|
|
|
|
long items;
|
2009-04-21 01:49:28 +02:00
|
|
|
|
2009-06-05 22:29:06 +02:00
|
|
|
// last item in the directory (this variable is mainly for reading)
|
|
|
|
// at the moment only used: id, date_modification, user_id
|
|
|
|
Item last_item;
|
2009-04-21 01:49:28 +02:00
|
|
|
|
2010-08-10 18:12:50 +02:00
|
|
|
// used when sorting
|
2010-10-24 01:12:47 +02:00
|
|
|
unsigned long sort;
|
2010-08-10 18:12:50 +02:00
|
|
|
|
2009-04-21 01:49:28 +02:00
|
|
|
void Clear()
|
|
|
|
{
|
2009-06-05 22:29:06 +02:00
|
|
|
id = parent_id = dir_id = -1;
|
|
|
|
last_item.Clear();
|
2009-04-21 01:49:28 +02:00
|
|
|
closed = false;
|
2009-06-05 22:29:06 +02:00
|
|
|
items = 0;
|
2010-08-10 18:12:50 +02:00
|
|
|
sort = 0;
|
2009-04-21 01:49:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
Thread()
|
|
|
|
{
|
|
|
|
Clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|