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_MULTI_0(m_acceptPatternsAttrPtr, "AcceptPatterns", "File name patterns for accepting of the file items", false);
34  I_ASSIGN_MULTI_0(m_ignorePatternsAttrPtr, "IgnorePatterns", "File name patterns for ignoring of the file items", false);
35  I_END_COMPONENT;
36 
37 protected:
38  // reimplemented (icomp::CComponentBase)
39  virtual void OnComponentCreated();
40 
41 private:
42  I_ATTR(double, m_poolingIntervallAttrPtr);
43  I_ATTR(int, m_observedItemTypesAttrPtr);
44  I_ATTR(int, m_observedChangesAttrPtr);
45  I_MULTIATTR(QString, m_acceptPatternsAttrPtr);
46  I_MULTIATTR(QString, m_ignorePatternsAttrPtr);
47 };
48 
49 
50 } // namespace ihotf
51 
52 
53 #endif // !ihotf_CDirectoryMonitorParamsComp_included
54 
55 
Implementation of directory parameters component.
Interface for a folder monitor parameters.
ihotf::CDirectoryMonitorParams BaseClass2
Implementation of the IDirectoryMonitorParams interface.

© 2007-2011 Witold Gantzke and Kirill Lepskiy