Files
winix/plugins/thread/thread.h
Tomasz Sowa ab84a5169e 'tickets' can use 'threads' now
git-svn-id: svn://ttmath.org/publicrep/winix/trunk@706 e52654a7-88a9-db11-a3e9-0013d4bc506e
2011-01-20 18:37:51 +00:00

63 lines
792 B
C++
Executable File

/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2009-2010, Tomasz Sowa
* All rights reserved.
*
*/
#ifndef headerfile_winix_plugins_thread_thread
#define headerfile_winix_plugins_thread_thread
#include <string>
#include <string.h>
namespace Thread
{
class Thread
{
public:
long file_id;
long replies;
bool closed;
// the last file in a thread
long last_item_id;
tm last_item_date_modification;
long last_item_user_id;
std::wstring last_item_guest_name;
void Clear()
{
file_id = -1;
closed = false;
replies = 0;
last_item_id = -1;
last_item_user_id = -1;
memset(&last_item_date_modification, 0, sizeof(tm));
last_item_guest_name.clear();
}
Thread()
{
Clear();
}
};
} // namespace
#endif