changed organization of static files
removed: item.auth item.auth_path added: item.file_path, item.file_fs, item.file_type now the path to a static file is a relative path added: thumbnails (not finished yet) fixed: db didn't correctly return the number of deleted items /DelItem() method/ git-svn-id: svn://ttmath.org/publicrep/winix/trunk@696 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
21
core/item.h
21
core/item.h
@@ -13,6 +13,11 @@
|
||||
#include <string>
|
||||
|
||||
|
||||
#define WINIX_ITEM_FILETYPE_NONE 0
|
||||
#define WINIX_ITEM_FILETYPE_IMAGE 1
|
||||
#define WINIX_ITEM_FILETYPE_DOCUMENT 2
|
||||
#define WINIX_ITEM_FILETYPE_UNKNOWN 3
|
||||
|
||||
|
||||
struct Item
|
||||
{
|
||||
@@ -67,17 +72,25 @@ long default_item;
|
||||
|
||||
|
||||
// external static file authorized by winix
|
||||
/*
|
||||
enum Auth
|
||||
{
|
||||
auth_none = 0, /* there is not an external file */
|
||||
auth_image = 1, /* png, gif, jpg - only types available to render by a web browser*/
|
||||
auth_document = 2, /* pdf doc xls txt */
|
||||
auth_other = 3 /* other file */
|
||||
auth_none = 0, // there is not an external file
|
||||
auth_image = 1, // png, gif, jpg - only types available to render by a web browser
|
||||
auth_document = 2, // pdf doc xls txt
|
||||
auth_other = 3 // other file
|
||||
};
|
||||
|
||||
|
||||
Auth auth;
|
||||
std::wstring auth_path; // path to a file (if auth!=auth_none)
|
||||
*/
|
||||
|
||||
// static file (if exists)
|
||||
std::wstring file_path; // relative file path
|
||||
int file_fs; // file system type where the file was saved
|
||||
int file_type; // file type (none, image, doc, etc)
|
||||
|
||||
|
||||
|
||||
std::wstring html_template;
|
||||
|
Reference in New Issue
Block a user