IMonitoringSession.h
Go to the documentation of this file.
1 #ifndef ihotf_IMonitoringSession_included
2 #define ihotf_IMonitoringSession_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QMap>
8 #include <QtCore/QFileInfo>
9 #include <QtCore/QDateTime>
10 
11 // ACF includes
12 #include <istd/IChangeable.h>
13 #include <iser/ISerializable.h>
14 
15 
16 namespace ihotf
17 {
18 
19 
26 {
27 public:
31  typedef QMap<QString, QDateTime> FileItems;
32 
36  virtual const FileItems& GetFileInfoList() const = 0;
37 
41  virtual void SetFileInfoList(const FileItems& fileList) = 0;
42 
46  virtual void RemoveFile(const QString& filePath) = 0;
47 };
48 
49 
50 } // namespace ihotf
51 
52 
53 #endif // !ihotf_IMonitoringSession_included
54 
55 
virtual const FileItems & GetFileInfoList() const =0
Get the list of file items.
QMap< QString, QDateTime > FileItems
Map absolute file path to modification time.
Common interface for a monitoring session for a directory.
virtual void RemoveFile(const QString &filePath)=0
Remove file item from the session.
virtual void SetFileInfoList(const FileItems &fileList)=0
Set the file list.

© 2007-2017 Witold Gantzke and Kirill Lepskiy