#include <kernel.h>
Public Member Functions | |
HandleDuplicates (const int Handle) | |
const int | operator() (void) const |
HandleDuplicates | operator= (const int given) |
bool | operator== (const int rhs) |
bool | SetLinkPath (Dedupe::FilePath Path) |
Dedupe::FilePath | GetLinkPath () |
Static Public Attributes | |
static int const | Empty = 0 |
static int const | Keep = 1 |
File isn't decided yet. | |
static int const | MarkAsKeep = 2 |
Keep file. | |
static int const | Delete = 3 |
Fix file as keep. | |
static int const | LinkTo = 4 |
Delete File. | |
static int const | Error = 5 |
Replace File with a link. | |
Protected Attributes | |
int | value |
Dedupe::FilePath | LinkToFile |
HandleDuplicates is used to say, what to do with founded Duplicates
Definition at line 21 of file kernel.h.
HandleDuplicates Dedupe::Core::HandleDuplicates::operator= | ( | const int | given | ) | [inline] |
bool Dedupe::Core::HandleDuplicates::SetLinkPath | ( | Dedupe::FilePath | Path | ) | [inline] |
Function allows to set a path, where to link, when file should be replaced by link
Definition at line 52 of file kernel.h.
Referenced by Dedupe::CLI::UI::ReadDecidedDuplicatesFromFile().
{ if( value != 4 ) return false; LinkToFile = Path; return true; }