IHotfolderProcessingItem.h
Go to the documentation of this file.
1 #ifndef ihotf_IHotfolderProcessingItem_included
2 #define ihotf_IHotfolderProcessingItem_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QDateTime>
8 
9 // ACF includes
10 #include "iser/ISerializable.h"
11 
12 
13 namespace ihotf
14 {
15 
16 
21 {
22 public:
23 
25  {
26  CF_STATE_CHANGED = 0x1000000
27  };
28 
32  virtual QByteArray GetItemUuid() const = 0;
33 
39  virtual int GetProcessingState() const = 0;
40 
46  virtual void SetProcessingState(int processingState) = 0;
47 
51  virtual QString GetInputFile() const = 0;
52 
56  virtual void SetInputFile(const QString& inputFile) = 0;
57 
61  virtual QString GetOutputFile() const = 0;
62 
66  virtual void SetOutputFile(const QString& outputFile) = 0;
67 
71  virtual double GetProcessingTime() const = 0;
72 
76  virtual void SetProcessingTime(double processingTime) = 0;
77 
81  virtual const QDateTime& GetStartTime() const = 0;
82 
86  virtual void SetStartTime(const QDateTime& startTime) = 0;
87 };
88 
89 
90 } // namespace ihotf
91 
92 
93 #endif // !ihotf_IHotfolderProcessingItem_included
94 
95 
Interface for a single processing item in the hotfolder.
virtual void SetStartTime(const QDateTime &startTime)=0
Set start time of the job.
virtual QString GetOutputFile() const =0
Get file path of the processing output.
virtual QByteArray GetItemUuid() const =0
Return the unique identifier for a processing item.
virtual int GetProcessingState() const =0
Get the processing state for the item.
virtual double GetProcessingTime() const =0
Get processing time.
virtual const QDateTime & GetStartTime() const =0
Get start time of the job.
virtual void SetOutputFile(const QString &outputFile)=0
Set file path of the processing output.
virtual QString GetInputFile() const =0
Get file path, of the file which must be processed.
virtual void SetProcessingState(int processingState)=0
Set the processing state for the item.
virtual void SetInputFile(const QString &inputFile)=0
Set input file path.
virtual void SetProcessingTime(double processingTime)=0
Set processing time.

© 2007-2011 Witold Gantzke and Kirill Lepskiy