#include <sumfile.hpp>
Public Types | |
enum | State { NotVerified = 0, Verified, Invalid, NotFound } |
States available for a checksum. More... | |
Public Member Functions | |
ChecksumData (const wxString &fn, const wxString &strSum, const State st=NotVerified) | |
Constructs a new instance from a file name and a checksum value. | |
ChecksumData (const wxFileName &fn, const wxString &strSum, const State st=NotVerified) | |
Constructs a new instance from a file name and a checksum value. | |
ChecksumData (const ChecksumData &source) | |
Copy constructor. | |
ChecksumData () | |
Default constructor. | |
wxString | getChecksum () const |
Gets the checksum. | |
wxFileName | getFileName () const |
Gets the file name. | |
State | getState () const |
Gets the state of the checksum. | |
ChecksumData & | operator= (const ChecksumData &source) |
Assignment operator. | |
void | setChecksum (const wxString &strSum) |
Sets the checksum. | |
void | setFileName (const wxString &fn) |
Sets the file name. | |
void | setFileName (const wxFileName &fn) |
Sets the file name. | |
void | setState (const State newState) |
Sets the state of the checksum. | |
Protected Member Functions | |
void | clone (const ChecksumData &source) |
Clones the source instance in this instance. | |
Protected Attributes | |
wxFileName | fileName |
Name of the file. | |
State | state |
State of the checksum. | |
wxString | sum |
String that contains the sum value. |
Definition at line 55 of file sumfile.hpp.
|
States available for a checksum.
Definition at line 59 of file sumfile.hpp. Referenced by getState(). |
|
Default constructor.
Definition at line 64 of file sumfile.cpp. References setState(). |
|
Copy constructor.
Definition at line 93 of file sumfile.cpp. References clone(). |
|
Constructs a new instance from a file name and a checksum value.
Definition at line 121 of file sumfile.cpp. References setChecksum(), setFileName(), and setState(). |
|
Constructs a new instance from a file name and a checksum value.
Definition at line 138 of file sumfile.cpp. References setChecksum(), setFileName(), and setState(). |
|
Clones the source instance in this instance.
Definition at line 76 of file sumfile.cpp. References clone(), fileName, state, and sum. Referenced by ChecksumData(), clone(), and operator=(). |
|
Gets the checksum.
Definition at line 189 of file sumfile.cpp. References sum. Referenced by ChecksumsListView::check(), ChecksumsListView::recompute(), ChecksumsListView::setChecksum(), SumListCompareFnct(), SFVFile::write(), and MD5File::write(). |
|
Gets the file name.
Definition at line 153 of file sumfile.cpp. References fileName. Referenced by ChecksumsListView::check(), ChecksumsListView::recompute(), ChecksumsListView::setChecksum(), SumListCompareFnct(), SFVFile::write(), and MD5File::write(). |
|
Gets the state of the checksum.
Definition at line 213 of file sumfile.cpp. Referenced by ChecksumsListView::addChecksum(), ChecksumsListView::getStates(), and SumListCompareFnct(). |
|
Assignment operator.
Definition at line 106 of file sumfile.cpp. References clone(), and operator=(). Referenced by operator=(). |
|
Sets the checksum.
Definition at line 201 of file sumfile.cpp. References setChecksum(), and sum. Referenced by ChecksumData(), ChecksumsListView::recompute(), and setChecksum(). |
|
Sets the file name.
Definition at line 177 of file sumfile.cpp. References fileName, and setFileName(). |
|
Sets the file name.
Definition at line 165 of file sumfile.cpp. References fileName, and setFileName(). Referenced by ChecksumData(), setFileName(), SFVFile::write(), and MD5File::write(). |
|
Sets the state of the checksum.
Definition at line 225 of file sumfile.cpp. References setState(), and state. Referenced by ChecksumData(), and setState(). |
|
Name of the file.
Definition at line 71 of file sumfile.hpp. Referenced by clone(), getFileName(), and setFileName(). |
|
State of the checksum.
Definition at line 73 of file sumfile.hpp. Referenced by clone(), getState(), and setState(). |
|
String that contains the sum value.
Definition at line 72 of file sumfile.hpp. Referenced by clone(), getChecksum(), and setChecksum(). |