60 lines
801 B
C++
Executable File
60 lines
801 B
C++
Executable File
/*
|
|
* This file is a part of Winix
|
|
* and is not publicly distributed
|
|
*
|
|
* Copyright (c) 2012-2014, Tomasz Sowa
|
|
* All rights reserved.
|
|
*
|
|
*/
|
|
|
|
#ifndef headerfile_winix_plugins_export_funexport
|
|
#define headerfile_winix_plugins_export_funexport
|
|
|
|
#include "functions/functionbase.h"
|
|
#include "db/db.h"
|
|
#include "exportinfo.h"
|
|
|
|
namespace Winix
|
|
{
|
|
|
|
|
|
namespace Export
|
|
{
|
|
|
|
|
|
class FunExport : public FunctionBase
|
|
{
|
|
public:
|
|
|
|
FunExport();
|
|
void SetExportInfo(ExportInfo * pexport_info);
|
|
|
|
bool HasAccess();
|
|
|
|
void MakePost();
|
|
void MakeGet();
|
|
|
|
|
|
void ExportFile(const Item & item);
|
|
void ExportDir(const Item & dir, bool static_files_too = false);
|
|
|
|
private:
|
|
|
|
ExportInfo * export_info;
|
|
DbItemQuery iq_dir;
|
|
std::vector<Item> dir_items;
|
|
|
|
void Export();
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
} // namespace Winix
|
|
|
|
#endif
|
|
|