CHotfolderProcessingItem.h
Go to the documentation of this file.
1 #ifndef ihotf_CHotfolderProcessingItem_included
2 #define ihotf_CHotfolderProcessingItem_included
3 
4 
5 // Qt includes
6 #include <QtCore/QDateTime>
7 
8 // ACF includes
9 #include "imod/TModelWrap.h"
10 
11 // AcfSln includes
13 
14 
15 namespace ihotf
16 {
17 
18 
23 {
24 public:
26 
27  // reimplemented (ihotf::IHotfolderProcessingItem)
28  virtual QByteArray GetItemUuid() const;
29  virtual int GetProcessingState() const;
30  virtual void SetProcessingState(int processingState);
31  virtual QString GetInputFile() const;
32  virtual void SetInputFile(const QString& inputFile);
33  virtual QString GetOutputFile() const;
34  virtual void SetOutputFile(const QString& outputFile);
35  virtual double GetProcessingTime() const;
36  virtual void SetProcessingTime(double processingTime);
37  virtual const QDateTime& GetStartTime() const;
38  virtual void SetStartTime(const QDateTime& startTime);
39 
40  // reimplemented (iser::ISerializable)
41  virtual bool Serialize(iser::IArchive& archive);
42 
43 private:
44  QString m_inputFile;
45  QString m_outputFile;
46  int m_processingState;
47  double m_processingTime;
48  QDateTime m_startTime;
49 
50  mutable QByteArray m_itemId;
51 };
52 
53 
54 } // namespace ihotf
55 
56 
57 #endif // !ihotf_CHotfolderProcessingItem_included
58 
59 
virtual void SetOutputFile(const QString &outputFile)
Set file path of the processing output.
Interface for a single processing item in the hotfolder.
Interface for a single processing item in the hotfolder.
virtual QString GetOutputFile() const
Get file path of the processing output.
virtual const QDateTime & GetStartTime() const
Get start time of the job.
virtual double GetProcessingTime() const
Get processing time.
virtual QByteArray GetItemUuid() const
Return the unique identifier for a processing item.
virtual bool Serialize(iser::IArchive &archive)
virtual QString GetInputFile() const
Get file path, of the file which must be processed.
virtual void SetStartTime(const QDateTime &startTime)
Set start time of the job.
virtual void SetProcessingTime(double processingTime)
Set processing time.
virtual void SetInputFile(const QString &inputFile)
Set input file path.
virtual int GetProcessingState() const
Get the processing state for the item.
virtual void SetProcessingState(int processingState)
Set the processing state for the item.

© 2007-2011 Witold Gantzke and Kirill Lepskiy