Fix 'occurred' typo
[bpdyndnsd] / src / service_gnudip_fullhostname.hpp
1 /** @file
2  * @brief GNUDIP Service class header. This class represents the GNUDIP service.
3  *
4  *
5  *
6  * @copyright Intra2net AG
7  * @license GPLv2
8 */
9
10 #ifndef ServiceGnudipFullhostname_H
11 #define ServiceGnudipFullhostname_H
12
13 #include "service_gnudip.hpp"
14
15 class ServiceGnudipFullhostname : public ServiceGnudip
16 {
17
18 private:
19
20     friend class boost::serialization::access;
21     template<class Archive>
22     void serialize(Archive & ar, const unsigned int version)
23     {
24         ar & boost::serialization::base_object<ServiceGnudip>(*this);
25     }
26
27     std::string assemble_update_url(const std::string& salt, const std::string& curr_time, const std::string& sign, const std::string& secret, const std::string& ip) const;
28
29 public:
30
31     typedef boost::shared_ptr<ServiceGnudipFullhostname> Ptr;
32
33     ServiceGnudipFullhostname();
34
35     ServiceGnudipFullhostname(const std::string& _protocol, const std::string& _gnudip_server ,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 _max_equal_updates_in_succession, const int dns_cache_ttl, const std::string& proxy, const int proxy_port);
36
37     ~ServiceGnudipFullhostname();
38
39 };
40
41 #endif