Commit | Line | Data |
---|---|---|
089a7152 BS |
1 | /** @file |
2 | * @brief ODS Service class header. This class represents the ODS service. | |
3 | * | |
4 | * | |
5 | * | |
6 | * @copyright Intra2net AG | |
7 | * @license GPLv2 | |
8 | */ | |
9 | ||
629d8110 BS |
10 | #ifndef ServiceOds_H |
11 | #define ServiceOds_H | |
089a7152 BS |
12 | |
13 | #include <string> | |
14 | ||
15 | #include "service.h" | |
16 | #include "logger.h" | |
17 | ||
18 | #include <boost/serialization/array.hpp> | |
19 | #include <boost/shared_ptr.hpp> | |
20 | ||
21 | ||
629d8110 | 22 | class ServiceOds : public Service |
089a7152 BS |
23 | { |
24 | ||
25 | private: | |
26 | ||
27 | friend class boost::serialization::access; | |
28 | template<class Archive> | |
29 | void serialize(Archive & ar, const unsigned int version); | |
30 | ||
6650af14 BS |
31 | std::string UpdateServer; |
32 | std::string Port; | |
33 | ||
089a7152 BS |
34 | public: |
35 | ||
629d8110 | 36 | typedef boost::shared_ptr<ServiceOds> Ptr; |
089a7152 | 37 | |
629d8110 | 38 | ServiceOds(); |
089a7152 | 39 | |
629d8110 | 40 | ServiceOds(const std::string& _protocol, const std::string& _hostname, const std::string& _login, const std::string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int dns_cache_ttl); |
089a7152 | 41 | |
629d8110 | 42 | ~ServiceOds(); |
089a7152 BS |
43 | |
44 | int perform_update(const std::string& ip); | |
45 | }; | |
46 | ||
47 | #endif |