2011-01-23 15:15:30 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of Winix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010, Tomasz Sowa
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2010-10-11 22:42:49 +02:00
|
|
|
#include <limits>
|
|
|
|
#include "ticketconf.h"
|
|
|
|
|
|
|
|
|
|
|
|
TicketConf::TicketItem::TicketItem()
|
|
|
|
{
|
|
|
|
Clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TicketConf::TicketItem::Clear()
|
|
|
|
{
|
|
|
|
id = 0;
|
|
|
|
name.clear();
|
|
|
|
type = TypeInteger;
|
2011-01-05 22:24:11 +01:00
|
|
|
integer_min = std::numeric_limits<long>::min();
|
|
|
|
integer_max = std::numeric_limits<long>::max();
|
|
|
|
max_files = 0;
|
|
|
|
upload_dir.clear();
|
2010-10-11 22:42:49 +02:00
|
|
|
select.clear();
|
|
|
|
select_default = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
void TicketConf::Clear()
|
|
|
|
{
|
|
|
|
tab.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|