AstRawDark
Manage your astrophoto dark frames
 All Classes Functions Variables Enumerations Enumerator Pages
AbstractScanCommand Class Reference

Base of all folder scanning commands. More...

#include <abstractScanCommand.h>

Inheritance diagram for AbstractScanCommand:
Collaboration diagram for AbstractScanCommand:

Public Member Functions

virtual ~AbstractScanCommand ()
 Destructor.
- Public Member Functions inherited from AbstractCommand
virtual ~AbstractCommand ()
 Default destructor.
void execute ()
 execute command payload
const QString & getDescription () const
 get command's description displayed in command log
const StatusgetStatus () const
 get command's running status
qint64 getElapsed () const
 Get command's total execution time.
int getSerial () const
 Get command's serial number.
bool hasErrors () const
 Tells if this command encountered errors during execution.
bool hasWarning () const
 Tells if this command encountered warnings during execution.
const QStringList & getReportMessages () const
 Get command's report messages.
const QString & getProgessMessage () const
 Get command's progress message.
const CommandReportgetCommandReport () const
 Get command's processing report.
const QString getStatusString () const
 Get a string representation of a command's status.

Protected Member Functions

 AbstractScanCommand (const QStringList sources)
 Constructor.
void getRawPathsInDirectory (const QString directory)
 Get a list of Canon RAW file paths located inside a directory.
void retrieveExifMetadata ()
 Retrieve EXIF metadata for a list of file path.
void checkForErrors ()
 check for scan errors
- Protected Member Functions inherited from AbstractCommand
 AbstractCommand ()
 Default constructor.
virtual void setup ()
 Any subclass can redefine this function to make any necessary preparation before acutal payload processing.
virtual void cleanup ()
 Any subclass can redefine this function to make any necessary cleanup before acutal payload processing.
virtual void do_processing ()=0
 The actual processing payload of this command.

Protected Attributes

const QStringList _sources
 Dark source folder paths.
QStringList _badFilesPaths
 Paths of invalid files.
QStringList _shortFilesPaths
 Paths of short exposure files.
QList< QString > _imagePaths
 A list of RAW file paths.
QList< ImageInfo_imageInfos
 A list of ImageInfo, result of EXIF metadata retrieval.
- Protected Attributes inherited from AbstractCommand
QString _description
 Command description.
QString _message
 Command progress message.
QStringList _reportMessages
 Command report messages.
Status _status
 Command running status.
QElapsedTimer _timer
 Timer used to get total running time.
qint64 _elapsed
 Command total running time.
int _serial
 Command serial number.
bool _error
 Flag used to tell if command encountered error during payload processing.
bool _warning
 Flag used to tell if command encountered warnings during payload processing.
CommandReport _commandReport
 The command's processing report.

Additional Inherited Members

- Public Types inherited from AbstractCommand
enum  Status { SCHEDULED, RUNNING, COMPLETE }
 The Status enum describes a command's running status. More...
- Signals inherited from AbstractCommand
void statusChanged (AbstractCommand *)
 Advertise status changes.
void progress (int)
 advertise progress
void progressMax (int)
 advertise max progress steps change

Detailed Description

Base of all folder scanning commands.

Definition at line 31 of file abstractScanCommand.h.

Constructor & Destructor Documentation

AbstractScanCommand::AbstractScanCommand ( const QStringList  sources)
protected

Constructor.

Parameters
sourcesdark source folder paths

Definition at line 25 of file abstractScanCommand.cpp.

Member Function Documentation

void AbstractScanCommand::getRawPathsInDirectory ( const QString  directory)
protected

Get a list of Canon RAW file paths located inside a directory.

Parameters
directorythe directory

Definition at line 31 of file abstractScanCommand.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:


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