added: issues ticket system
added functions: ticket, createticket, editticket (there is no 'rm' function working for tickets yet) changed: mount parser and mount points now we have more parameters (arguments in parameters) some refactoring in functions 'emacs' and 'mkdir' git-svn-id: svn://ttmath.org/publicrep/cmslu/trunk@554 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
58
core/ticket.h
Executable file
58
core/ticket.h
Executable file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* This file is a part of CMSLU -- Content Management System like Unix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2009, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef headerfilecmslucoreticket
|
||||
#define headerfilecmslucoreticket
|
||||
|
||||
#include <string>
|
||||
|
||||
|
||||
|
||||
|
||||
struct Ticket
|
||||
{
|
||||
long id;
|
||||
long dir_id;
|
||||
long parent_id;
|
||||
unsigned int type;
|
||||
unsigned int status;
|
||||
unsigned int priority;
|
||||
unsigned int category;
|
||||
unsigned int expected;
|
||||
unsigned int progress; // 0 - 100 (percentage)
|
||||
|
||||
// the first item (with the content for the ticket)
|
||||
long item_id;
|
||||
|
||||
|
||||
|
||||
void Clear()
|
||||
{
|
||||
id = -1;
|
||||
dir_id = -1;
|
||||
parent_id = -1;
|
||||
type = 0;
|
||||
status = 0;
|
||||
priority = 0;
|
||||
category = 0;
|
||||
expected = 0;
|
||||
progress = 0;
|
||||
item_id = -1;
|
||||
}
|
||||
|
||||
|
||||
Ticket()
|
||||
{
|
||||
Clear();
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user