CDirectoryMonitorParamsComp.h
Go to the documentation of this file.
1 #ifndef ihotf_CDirectoryMonitorParamsComp_included
2 #define ihotf_CDirectoryMonitorParamsComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
7 
8 
9 // AcfSln includes
11 
12 
13 namespace ihotf
14 {
15 
16 
22 {
23 public:
26 
27  I_BEGIN_COMPONENT(ihotf::CDirectoryMonitorParamsComp);
28  I_REGISTER_INTERFACE(iser::ISerializable);
29  I_REGISTER_INTERFACE(ihotf::IDirectoryMonitorParams);
30  I_ASSIGN(m_poolingIntervallAttrPtr, "PoolingIntervall", "Intervall for checking of directory changes in seconds", false, 5);
31  I_ASSIGN(m_observedItemTypesAttrPtr, "ObservedItems", "Items to be observed.\n1 - Directories\n2 - Files\n4 - Drives", false, OI_FILES);
32  I_ASSIGN(m_observedChangesAttrPtr, "ObservedChanges", "Item changes to be observed.\n1 - Add\n2 - Remove\n4 - Modified\n8 - Attributes changed", false, OC_ADD);
33  I_ASSIGN(m_minLastModificationTimeDifferenceAttrPtr, "MinLastModificationTimeDifference", "Second since last modification time of the file before operating on it", false, 30);
34  I_ASSIGN_MULTI_0(m_acceptPatternsAttrPtr, "AcceptPatterns", "File name patterns for accepting of the file items", false);
35  I_ASSIGN_MULTI_0(m_ignorePatternsAttrPtr, "IgnorePatterns", "File name patterns for ignoring of the file items", false);
36  I_ASSIGN(m_folderDepthAttrPtr, "FolderDepth", "Depth of the folder tree to be monitored.", false, -1);
37  I_END_COMPONENT;
38 
39 protected:
40  // reimplemented (icomp::CComponentBase)
41  virtual void OnComponentCreated();
42 
43 private:
44  I_ATTR(double, m_poolingIntervallAttrPtr);
45  I_ATTR(int, m_observedItemTypesAttrPtr);
46  I_ATTR(int, m_observedChangesAttrPtr);
47  I_ATTR(int, m_minLastModificationTimeDifferenceAttrPtr);
48  I_MULTIATTR(QString, m_acceptPatternsAttrPtr);
49  I_MULTIATTR(QString, m_ignorePatternsAttrPtr);
50  I_ATTR(int, m_folderDepthAttrPtr);
51 };
52 
53 
54 } // namespace ihotf
55 
56 
57 #endif // !ihotf_CDirectoryMonitorParamsComp_included
58 
59 
Implementation of directory parameters component.
Interface for a folder monitor parameters.
ihotf::CDirectoryMonitorParams BaseClass2
Implementation of the IDirectoryMonitorParams interface.

© 2007-2017 Witold Gantzke and Kirill Lepskiy