CMonitoringSessionsManager.h
Go to the documentation of this file.
1  #ifndef ihotf_CMonitoringSessionsManager_included
2 #define ihotf_CMonitoringSessionsManager_included
3 
4 
5 // Qt includes
6 #include <QtCore/QMap>
7 
8 // ACF includes
9 #include <istd/TDelPtr.h>
10 
11 // AcfSln includes
14 
15 
16 namespace ihotf
17 {
18 
19 
21  virtual public iser::ISerializable,
23 {
24 public:
25  // reimplemented (ihotf::IMonitoringSessionManager)
26  virtual void ResetSessions();
27  virtual ihotf::IMonitoringSession* GetSession(const QString& directoryPath) const;
28  virtual void RemoveSession(const QString& directoryPath);
29 
30  // reimplemented (iser::ISerializable)
31  virtual bool Serialize(iser::IArchive& archive);
32 
33 private:
34  typedef QMap<QString, istd::TDelPtr<ihotf::CMonitoringSession> > MonitoringSessionsMap;
35  mutable MonitoringSessionsMap m_monitorSessionsMap;
36 };
37 
38 
39 } // namespace ihotf
40 
41 
42 #endif // !ihotf_CMonitoringSessionsManager_included
43 
44 
Common interface for a monitoring session's manager.
virtual ihotf::IMonitoringSession * GetSession(const QString &directoryPath) const
Get monitoring session for the given monitor and directory path.
virtual void RemoveSession(const QString &directoryPath)
Remove the monitoring session for a given directory path.
Common interface for a monitoring session for a directory.
virtual bool Serialize(iser::IArchive &archive)
virtual void ResetSessions()
Clear all session data.

© 2007-2017 Witold Gantzke and Kirill Lepskiy