but with a Clear() method the dynamic allocated buffer can be easily reused added: DbTextStream a special version of a stream used to create a database string query everything is escaped by default added: DbBase a base class with some basic methods for communicating with the database added: DbConn a class for managing connection to the database changed: some refactoring in Db class git-svn-id: svn://ttmath.org/publicrep/winix/trunk@655 e52654a7-88a9-db11-a3e9-0013d4bc506e
57 lines
1014 B
C++
Executable File
57 lines
1014 B
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::string mv_dir;
|
|
std::string mv_file;
|
|
std::string mv_new_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::string & dir, std::string & file);
|
|
void MoveAuth(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
|