Public Member Functions | Static Public Attributes | Protected Attributes

Dedupe::Core::HandleDuplicates Class Reference

#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

Detailed Description

HandleDuplicates is used to say, what to do with founded Duplicates

Definition at line 21 of file kernel.h.


Member Function Documentation

HandleDuplicates Dedupe::Core::HandleDuplicates::operator= ( const int  given  )  [inline]

Operator give you the posibility to give one of the static ints from the class can be given

Definition at line 37 of file kernel.h.

      {
        value = given;
        return *this;
      }

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;
      }


The documentation for this class was generated from the following file: