added: 'export' winix function (export plugin)

exporting an item or the whole directory



git-svn-id: svn://ttmath.org/publicrep/winix/trunk@867 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2012-08-03 09:25:17 +00:00
parent 1c2589a2f2
commit d8d523d983
7 changed files with 227 additions and 5 deletions

54
plugins/export/funexport.h Executable file
View File

@@ -0,0 +1,54 @@
/*
* This file is a part of Winix
* and is not publicly distributed
*
* Copyright (c) 2012, 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 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);
private:
ExportInfo * export_info;
DbItemQuery iq_dir;
std::vector<Item> dir_items;
void Export();
};
} // namespace
#endif