IDirectoryMonitorParams.h
Go to the documentation of this file.
1 #ifndef ihotf_IDirectoryMonitorParams_included
2 #define ihotf_IDirectoryMonitorParams_included
3 
4 
5 // ACF includes
6 #include <istd/istd.h>
7 #include <iser/ISerializable.h>
8 
9 
10 namespace ihotf
11 {
12 
13 
18 {
19 public:
21  {
22  OI_DIR = 0x1,
23  OI_FILES = 0x2,
24  OI_DRIVES = 0x4,
26  };
27 
29  {
30  OC_ADD = 0x1,
31  OC_REMOVE = 0x2,
32  OC_MODIFIED = 0x4,
35  };
36 
38  {
42  FTM_MODIFIED = 0x1,
43 
48  };
49 
51 
55  virtual double GetPoolingIntervall() const = 0;
56 
60  virtual void SetPoolingIntervall(double poolingIntervall) = 0;
61 
65  virtual int GetMinLastModificationTimeDifference() const = 0;
66 
70  virtual void SetMinLastModificationTimeDifference(int minLastModificationTimeDifference) = 0;
71 
75  virtual int GetObservedItemTypes() const = 0;
76 
80  virtual void SetObservedItemTypes(int observedItemTypes) = 0;
81 
85  virtual int GetObservedChanges() const = 0;
86 
90  virtual void SetObservedChanges(int observedChanges) = 0;
91 
95  virtual QStringList GetAcceptPatterns() const = 0;
96 
100  virtual void SetAcceptPatterns(const QStringList& acceptPatterns) = 0;
101 
105  virtual QStringList GetIgnorePatterns() const = 0;
106 
110  virtual void SetIgnorePatterns(const QStringList& acceptPatterns) = 0;
111 
116  virtual int GetFolderDepth() const = 0;
117 
122  virtual void SetFolderDepth(int folderDepth) = 0;
123 
128  virtual int GetFileTimeStampMode() const = 0;
129 
134  virtual void SetFileTimeStampMode(int fileTimeStampMode) = 0;
135 };
136 
137 
138 } // namespace ihotf
139 
140 
141 #endif // !ihotf_IDirectoryMonitorParams_included
142 
143 
Interface for a folder monitor parameters.
virtual int GetMinLastModificationTimeDifference() const =0
Get the minimal time to wait since last modification of the file before operating with this (e...
File modification time will be get from 'Last Modified'-attribute.
virtual void SetAcceptPatterns(const QStringList &acceptPatterns)=0
Set the accept file filters.
virtual double GetPoolingIntervall() const =0
Get pooling intervall for directory changes in seconds.
virtual void SetFolderDepth(int folderDepth)=0
Set depth of the folder monitoring.
virtual void SetPoolingIntervall(double poolingIntervall)=0
Set pooling intervall for directory changes in seconds.
virtual int GetFileTimeStampMode() const =0
Get timestamp mode used for file detection and access check.
File modification time will be get from 'Created'-attribute.
virtual void SetObservedChanges(int observedChanges)=0
Set the changes to be observed.
virtual void SetObservedItemTypes(int observedItemTypes)=0
Set the group of items to be observed.
virtual QStringList GetAcceptPatterns() const =0
Get accept file filters, given as the list of regular expressions.
virtual void SetFileTimeStampMode(int fileTimeStampMode)=0
Set timestamp mode used for file detection and access check.
virtual int GetObservedItemTypes() const =0
Get the group of items to be observed.
virtual int GetFolderDepth() const =0
Get depth of the folder monitoring.
virtual void SetIgnorePatterns(const QStringList &acceptPatterns)=0
Set the ignore file filters.
virtual int GetObservedChanges() const =0
Get the group of changes to be observed.
virtual QStringList GetIgnorePatterns() const =0
Get ignore file filters, given as the list of regular expressions.
I_DECLARE_FLAGS(FileTimeStampMode, FTM_MODIFIED, FTM_CREATED)
virtual void SetMinLastModificationTimeDifference(int minLastModificationTimeDifference)=0
Set the minimal time to wait since last modification of the file before operating with this...

© 2007-2017 Witold Gantzke and Kirill Lepskiy