CDirectoryMonitorParams.h
Go to the documentation of this file.
1 #ifndef ihotf_CDirectoryMonitorParams_included
2 #define ihotf_CDirectoryMonitorParams_included
3 
4 
5 // Qt includes
6 #include <QtCore/QStringList>
7 
8 
9 // AcfSln includes
11 
12 
13 namespace ihotf
14 {
15 
16 
21 {
22 public:
24 
25  // reimüplemented (ihotf::IDirectoryMonitorParams)
26  virtual double GetPoolingIntervall() const;
27  virtual void SetPoolingIntervall(double poolingIntervall);
28  virtual int GetMinLastModificationTimeDifference() const;
29  virtual void SetMinLastModificationTimeDifference(int minLastModificationTimeDifference);
30  virtual int GetObservedItemTypes() const;
31  virtual void SetObservedItemTypes(int observedItemTypes);
32  virtual int GetObservedChanges() const;
33  virtual void SetObservedChanges(int observedChanges);
34  virtual QStringList GetAcceptPatterns() const;
35  virtual void SetAcceptPatterns(const QStringList& acceptPatterns);
36  virtual QStringList GetIgnorePatterns() const;
37  virtual void SetIgnorePatterns(const QStringList& acceptPatterns);
38  virtual int GetFolderDepth() const;
39  virtual void SetFolderDepth(int folderDepth);
40  virtual int GetFileTimeStampMode() const;
41  virtual void SetFileTimeStampMode(int fileTimeStampMode);
42 
43  // reimplemented (iser::ISerializable)
44  virtual bool Serialize(iser::IArchive& archive);
45 
46 private:
47  double m_poolingIntervall;
48  int m_observedItemTypes;
49  int m_observedChanges;
50  int m_minLastModificationTimeDifference;
51  int m_folderDepth;
52  int m_fileTimeStampMode;
53 
54  QStringList m_acceptPatterns;
55  QStringList m_ignorePatterns;
56 };
57 
58 
59 } // namespace ihotf
60 
61 
62 #endif // !ihotf_CDirectoryMonitorParams_included
63 
64 
virtual double GetPoolingIntervall() const
Get pooling intervall for directory changes in seconds.
virtual QStringList GetAcceptPatterns() const
Get accept file filters, given as the list of regular expressions.
virtual int GetFolderDepth() const
Get depth of the folder monitoring.
Interface for a folder monitor parameters.
virtual int GetObservedChanges() const
Get the group of changes to be observed.
virtual void SetPoolingIntervall(double poolingIntervall)
Set pooling intervall for directory changes in seconds.
virtual void SetMinLastModificationTimeDifference(int minLastModificationTimeDifference)
Set the minimal time to wait since last modification of the file before operating with this...
virtual bool Serialize(iser::IArchive &archive)
virtual QStringList GetIgnorePatterns() const
Get ignore file filters, given as the list of regular expressions.
virtual void SetObservedChanges(int observedChanges)
Set the changes to be observed.
virtual int GetMinLastModificationTimeDifference() const
Get the minimal time to wait since last modification of the file before operating with this (e...
virtual void SetObservedItemTypes(int observedItemTypes)
Set the group of items to be observed.
virtual int GetObservedItemTypes() const
Get the group of items to be observed.
virtual void SetAcceptPatterns(const QStringList &acceptPatterns)
Set the accept file filters.
Implementation of the IDirectoryMonitorParams interface.
virtual void SetIgnorePatterns(const QStringList &acceptPatterns)
Set the ignore file filters.
virtual int GetFileTimeStampMode() const
Get timestamp mode used for file detection and access check.
virtual void SetFileTimeStampMode(int fileTimeStampMode)
Set timestamp mode used for file detection and access check.
virtual void SetFolderDepth(int folderDepth)
Set depth of the folder monitoring.

© 2007-2017 Witold Gantzke and Kirill Lepskiy