2011-01-05 22:24:11 +01:00
|
|
|
/*
|
|
|
|
* This file is a part of Winix
|
|
|
|
* and is not publicly distributed
|
|
|
|
*
|
|
|
|
* Copyright (c) 2010, Tomasz Sowa
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2011-01-23 15:15:30 +01:00
|
|
|
#ifndef headerfile_winix_functions_ln
|
|
|
|
#define headerfile_winix_functions_ln
|
2011-01-05 22:24:11 +01:00
|
|
|
|
|
|
|
#include "functionbase.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Fun
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
class Ln : public FunctionBase
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
Ln();
|
|
|
|
bool HasAccess();
|
|
|
|
void CreateSymbolicLink(const std::wstring & link_to);
|
|
|
|
void CreateHardLink(const std::wstring & link_to);
|
|
|
|
void MakePost();
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Item item;
|
|
|
|
std::wstring link_to;
|
|
|
|
std::vector<Item*> dir_tab;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
#endif
|