]> granicus.if.org Git - icinga2/blob - lib/db_ido/userdbobject.hpp
Merge pull request #7185 from Icinga/bugfix/gelfwriter-wrong-log-facility
[icinga2] / lib / db_ido / userdbobject.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef USERDBOBJECT_H
4 #define USERDBOBJECT_H
5
6 #include "db_ido/dbobject.hpp"
7 #include "base/configobject.hpp"
8
9 namespace icinga
10 {
11
12 /**
13  * A User database object.
14  *
15  * @ingroup ido
16  */
17 class UserDbObject final : public DbObject
18 {
19 public:
20         DECLARE_PTR_TYPEDEFS(UserDbObject);
21
22         UserDbObject(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         String CalculateConfigHash(const Dictionary::Ptr& configFields) const override;
31 };
32
33 }
34
35 #endif /* USERDBOBJECT_H */