]> granicus.if.org Git - icinga2/blob - lib/db_ido/timeperioddbobject.hpp
Merge branch 'support/2.10'
[icinga2] / lib / db_ido / timeperioddbobject.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef TIMEPERIODDBOBJECT_H
4 #define TIMEPERIODDBOBJECT_H
5
6 #include "db_ido/dbobject.hpp"
7 #include "base/configobject.hpp"
8
9 namespace icinga
10 {
11
12 /**
13  * A TimePeriod database object.
14  *
15  * @ingroup ido
16  */
17 class TimePeriodDbObject final : public DbObject
18 {
19 public:
20         DECLARE_PTR_TYPEDEFS(TimePeriodDbObject);
21
22         TimePeriodDbObject(const DbType::Ptr& type, const String& name1, const String& name2);
23
24 protected:
25         Dictionary::Ptr GetConfigFields() const override;
26         Dictionary::Ptr GetStatusFields() const override;
27
28         void OnConfigUpdateHeavy() override;
29 };
30
31 }
32
33 #endif /* TIMEPERIODDBOBJECT_H */