added winix functions: ln winix function 'default' can be used without redirecting now added new tickets types: TypeProgress, TypeString, TypeMultistring, TypeImages, TypeFiles now tickets are combined with files added winix functions: showtickets fixed mountpoints: when the default root mount was created its parameter table was empty and it caused accessing to a non-existing objects fixed logger: modifiers (log1, log2, log3) were incorrectly treated added modifier: log4 (debug info) now we are moving threads to a new plugin 'thread' created directory: plugins/thread (not finished yet) git-svn-id: svn://ttmath.org/publicrep/winix/trunk@704 e52654a7-88a9-db11-a3e9-0013d4bc506e
52 lines
804 B
C++
Executable File
52 lines
804 B
C++
Executable File
#ifndef headerfile_winix_plugins_ticket_ticketconf
|
|
#define headerfile_winix_plugins_ticket_ticketconf
|
|
|
|
#include <vector>
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
struct TicketConf
|
|
{
|
|
struct TicketItem
|
|
{
|
|
struct Select
|
|
{
|
|
std::wstring name;
|
|
int id;
|
|
};
|
|
|
|
TicketItem();
|
|
void Clear();
|
|
|
|
enum Type { TypeInteger, TypeProgress, TypeSelect, TypeString, TypeMultistring, TypeImages, TypeFiles };
|
|
|
|
int id;
|
|
|
|
std::wstring name;
|
|
Type type;
|
|
|
|
// used when type is TypeInteger or TypeProgress
|
|
int integer_min, integer_max;
|
|
|
|
// used when type is TypeSelect
|
|
std::vector<Select> select;
|
|
size_t select_default;
|
|
|
|
// used when type is TypeImages or TypeFiles
|
|
// 0 - unlimited
|
|
int max_files;
|
|
std::wstring upload_dir;
|
|
};
|
|
|
|
typedef std::vector<TicketItem> Table;
|
|
Table tab;
|
|
|
|
void Clear();
|
|
};
|
|
|
|
|
|
#endif
|
|
|