IHotfolderProcessingInfo.h
Go to the documentation of this file.
1 #ifndef ihotf_IHotfolder_included
2 #define ihotf_IHotfolder_included
3 
4 
5 // ACF includes
6 #include "iser/ISerializable.h"
7 
8 #include "iprm/IParamsSet.h"
9 
10 
11 // AcfSln includes
13 
14 
15 namespace ihotf
16 {
17 
18 
23 {
24 public:
26  {
27  CF_FILE_ADDED = 0x100000,
28  CF_FILE_REMOVED = 0x200000,
30  CF_CREATE = 0x800000
31  };
32 
38  const QString& inputFilePath,
39  const QString& outputFilePath = QString()) = 0;
40 
44  virtual void RemoveProcessingItem(ihotf::IHotfolderProcessingItem* fileItemPtr) = 0;
45 
49  virtual int GetProcessingItemsCount() const = 0;
50 
54  virtual ihotf::IHotfolderProcessingItem* GetProcessingItem(int processingItemIndex) const = 0;
55 
59  virtual bool IsWorking() const = 0;
60 
64  virtual void SetWorking(bool working = true) = 0;
65 };
66 
67 
68 } // namespace ihotf
69 
70 
71 #endif // !ihotf_IHotfolder_included
72 
73 
Interface for a single processing item in the hotfolder.
virtual ihotf::IHotfolderProcessingItem * GetProcessingItem(int processingItemIndex) const =0
Get the processing item with the index processingItemIndex.
virtual void RemoveProcessingItem(ihotf::IHotfolderProcessingItem *fileItemPtr)=0
Remove existing processing item from the hotfolder's state model.
virtual bool IsWorking() const =0
Get the working state of the hotfolder.
Interface for a hotfolder's processing data model.
virtual int GetProcessingItemsCount() const =0
Get the count of processing items in the hotfolder.
virtual const ihotf::IHotfolderProcessingItem * AddProcessingItem(const QString &inputFilePath, const QString &outputFilePath=QString())=0
Add new processing item to hotfolder's state model.
virtual void SetWorking(bool working=true)=0
If working is true, the hotfolder processing will be started or stopped otherwise.

© 2007-2011 Witold Gantzke and Kirill Lepskiy