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
58 lines
1.0 KiB
C++
Executable File
58 lines
1.0 KiB
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2010, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfilecmslucontentmv
|
|
#define headerfilecmslucontentmv
|
|
|
|
#include "functionbase.h"
|
|
|
|
|
|
|
|
namespace Fun
|
|
{
|
|
|
|
|
|
class Mv : public FunctionBase
|
|
{
|
|
public:
|
|
|
|
Mv();
|
|
void MakePost();
|
|
void MakeGet();
|
|
|
|
private:
|
|
|
|
std::wstring mv_dir;
|
|
std::wstring mv_file;
|
|
std::wstring mv_new_path;
|
|
std::wstring old_path;
|
|
long mv_dir_id;
|
|
std::vector<Item> mv_auth;
|
|
DbItemQuery mv_auth_iq;
|
|
|
|
bool MoveCheckAccessFromToDir();
|
|
bool MoveCheckAccessFrom();
|
|
bool MoveCheckAccessTo(long dir_id);
|
|
bool MoveCheckMountPoints(long dir_id);
|
|
bool MoveParseDir(long & dir_id, std::wstring & dir, std::wstring & file);
|
|
void MoveStaticFile(Item & item);
|
|
bool MoveIsTheSameFile(const Item & item);
|
|
void MoveFile(Item & item, bool redirect = true);
|
|
void MoveContentOfDir();
|
|
void MoveAuthPrepareQuery();
|
|
void MoveAuthContentOfDir(const Item & item);
|
|
void MoveDir(Item & item, bool redirect = true);
|
|
|
|
};
|
|
|
|
|
|
} // namespace
|
|
|
|
#endif
|