CHotfolderProcessingInfo.h
Go to the documentation of this file.
1 #ifndef ihotf_CHotfolderProcessingInfo_included
2 #define ihotf_CHotfolderProcessingInfo_included
3 
4 
5 // Qt includes
6 #include <QtCore/QMap>
7 
8 // Qt includes
9 #include <QtCore/QMutex>
10 
11 // ACF includes
12 #include "istd/TOptPointerVector.h"
13 #include "istd/TDelPtr.h"
14 #include "istd/TSmartPtr.h"
15 #include "istd/TChangeDelegator.h"
16 #include "imod/TModelWrap.h"
17 
18 // AcfSln includes
21 
22 
23 namespace ihotf
24 {
25 
26 
31 {
32 public:
34 
39  virtual bool ItemExists(const QString& inputFilePath, ihotf::IHotfolderProcessingItem** foundItemPtr = NULL) const;
40  virtual bool ItemExists(const ihotf::IHotfolderProcessingItem& processingItem) const;
41 
42  // reimplemented (ihotf::IHotfolderProcessingInfo)
44  const QString& inputFilePath,
45  const QString& outputFilePath = QString());
46  virtual void RemoveProcessingItem(ihotf::IHotfolderProcessingItem* fileItemPtr);
47  virtual int GetProcessingItemsCount() const;
48  virtual ihotf::IHotfolderProcessingItem* GetProcessingItem(int processingItemIndex) const;
49  virtual bool IsWorking() const;
50  virtual void SetWorking(bool working = true);
51 
52  // reimplemented (iser::ISerializable)
53  virtual bool Serialize(iser::IArchive& archive);
54 
55 protected:
56  typedef imod::TModelWrap<
60 
62 
64 
65  mutable QMutex m_mutex;
66 };
67 
68 
69 } // namespace ihotf
70 
71 
72 #endif // !ihotf_CHotfolderProcessingInfo_included
73 
virtual void SetWorking(bool working=true)
If working is true, the hotfolder processing will be started or stopped otherwise.
Interface for a single processing item in the hotfolder.
Interface for a single processing item in the hotfolder.
istd::TPointerVector< ihotf::IHotfolderProcessingItem > FileItems
virtual bool Serialize(iser::IArchive &archive)
virtual ihotf::IHotfolderProcessingItem * GetProcessingItem(int processingItemIndex) const
Get the processing item with the index processingItemIndex.
virtual void RemoveProcessingItem(ihotf::IHotfolderProcessingItem *fileItemPtr)
Remove existing processing item from the hotfolder's state model.
virtual const ihotf::IHotfolderProcessingItem * AddProcessingItem(const QString &inputFilePath, const QString &outputFilePath=QString())
Add new processing item to hotfolder's state model.
Interface for a hotfolder's processing data model.
Implementation of the processing data model of the hotfolder.
#define NULL
virtual int GetProcessingItemsCount() const
Get the count of processing items in the hotfolder.
imod::TModelWrap< istd::TChangeDelegator< ihotf::CHotfolderProcessingItem > > ProcessingItem
virtual bool ItemExists(const QString &inputFilePath, ihotf::IHotfolderProcessingItem **foundItemPtr=NULL) const
Return true if the item for the given input and output path already exists.
virtual bool IsWorking() const
Get the working state of the hotfolder.

© 2007-2011 Witold Gantzke and Kirill Lepskiy