if(protocol == "dhs")
{
- Service::Ptr service_dhs(new SERVICE_DHS(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
+ Service::Ptr service_dhs(new ServiceDhs(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
return service_dhs;
}
else if(protocol == "ods")
{
- Service::Ptr service_ods(new SERVICE_ODS(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl));
+ Service::Ptr service_ods(new ServiceOds(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl));
return service_ods;
}
else if(protocol == "dyndns")
{
- Service::Ptr service_dyndns(new SERVICE_DYNDNS(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
+ Service::Ptr service_dyndns(new ServiceDyndns(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
return service_dyndns;
}
else if(protocol == "dyns")
{
- Service::Ptr service_dyns(new SERVICE_DYNS(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
+ Service::Ptr service_dyns(new ServiceDyns(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
return service_dyns;
}
else if(protocol == "easydns")
{
- Service::Ptr service_easydns(new SERVICE_EASYDNS(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
+ Service::Ptr service_easydns(new ServiceEasydns(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
return service_easydns;
}
else if(protocol == "tzo")
{
- Service::Ptr service_tzo(new SERVICE_TZO(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
+ Service::Ptr service_tzo(new ServiceTzo(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
return service_tzo;
}
else if(protocol == "zoneedit")
{
- Service::Ptr service_zoneedit(new SERVICE_ZONEEDIT(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
+ Service::Ptr service_zoneedit(new ServiceZoneedit(protocol,hostname,login,password,Log,update_interval,max_updates_within_interval,dns_cache_ttl,Proxy,ProxyPort));
return service_zoneedit;
}
else
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_DHS::SERVICE_DHS()
+ServiceDhs::ServiceDhs()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_DHS::SERVICE_DHS(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
+ServiceDhs::ServiceDhs(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(15); // use default protocol value
/**
* Default destructor
*/
-SERVICE_DHS::~SERVICE_DHS()
+ServiceDhs::~ServiceDhs()
{
}
* @param domain_part The domain_part in which the hostname is located.
* @return The assembled update url without IP.
*/
-string SERVICE_DHS::assemble_base_url(const string& hostname, const string& domain_part) const
+string ServiceDhs::assemble_base_url(const string& hostname, const string& domain_part) const
{
string base_url;
* @param fqdn Hostname with domain part.
* @return A list with 2 elements (first element is the hostname, second element the domain part), or a list with 1 element if the domain part couldn't be determined.
*/
-list<string> SERVICE_DHS::separate_domain_and_host_part(const string& fqdn) const
+list<string> ServiceDhs::separate_domain_and_host_part(const string& fqdn) const
{
list<string> splitted;
ba::split(splitted,fqdn,boost::is_any_of("."));
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_DHS::perform_update(const std::string& ip)
+int ServiceDhs::perform_update(const std::string& ip)
{
int ret_val = -1;
* @param version Version
*/
template<class Archive>
-void SERVICE_DHS::serialize(Archive & ar, const unsigned int version)
+void ServiceDhs::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_DHS_H
-#define SERVICE_DHS_H
+#ifndef ServiceDhs_H
+#define ServiceDhs_H
#include <string>
#include <boost/shared_ptr.hpp>
#include <list>
-class SERVICE_DHS : public Service
+class ServiceDhs : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_DHS> Ptr;
+ typedef boost::shared_ptr<ServiceDhs> Ptr;
- SERVICE_DHS();
+ ServiceDhs();
- SERVICE_DHS(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, const std::string& proxy, const int proxy_port);
+ ServiceDhs(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, const std::string& proxy, const int proxy_port);
- ~SERVICE_DHS();
+ ~ServiceDhs();
int perform_update(const std::string& ip);
};
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_DYNDNS::SERVICE_DYNDNS()
+ServiceDyndns::ServiceDyndns()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_DYNDNS::SERVICE_DYNDNS(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
+ServiceDyndns::ServiceDyndns(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(0); // use default protocol value
/**
* Default destructor
*/
-SERVICE_DYNDNS::~SERVICE_DYNDNS()
+ServiceDyndns::~ServiceDyndns()
{
}
* @param hostname The fqhn hostname to update IP for.
* @return The assembled update url without IP.
*/
-string SERVICE_DYNDNS::assemble_base_url(const string& fqhn) const
+string ServiceDyndns::assemble_base_url(const string& fqhn) const
{
string base_url;
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_DYNDNS::perform_update(const std::string& ip)
+int ServiceDyndns::perform_update(const std::string& ip)
{
int ret_val = -1;
* @param version Version
*/
template<class Archive>
-void SERVICE_DYNDNS::serialize(Archive & ar, const unsigned int version)
+void ServiceDyndns::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_DYNDNS_H
-#define SERVICE_DYNDNS_H
+#ifndef ServiceDyndns_H
+#define ServiceDyndns_H
#include <string>
#include <boost/shared_ptr.hpp>
#include <list>
-class SERVICE_DYNDNS : public Service
+class ServiceDyndns : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_DYNDNS> Ptr;
+ typedef boost::shared_ptr<ServiceDyndns> Ptr;
- SERVICE_DYNDNS();
+ ServiceDyndns();
- SERVICE_DYNDNS(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, const std::string& proxy, const int proxy_port);
+ ServiceDyndns(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, const std::string& proxy, const int proxy_port);
- ~SERVICE_DYNDNS();
+ ~ServiceDyndns();
int perform_update(const std::string& ip);
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_DYNS::SERVICE_DYNS()
+ServiceDyns::ServiceDyns()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_DYNS::SERVICE_DYNS(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
+ServiceDyns::ServiceDyns(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(5); // use default protocol value
/**
* Default destructor
*/
-SERVICE_DYNS::~SERVICE_DYNS()
+ServiceDyns::~ServiceDyns()
{
}
* @param hostname The password to use.
* @return The assembled update url without IP.
*/
-string SERVICE_DYNS::assemble_base_url(const string& fqhn, const string& username, const string& password) const
+string ServiceDyns::assemble_base_url(const string& fqhn, const string& username, const string& password) const
{
string base_url;
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_DYNS::perform_update(const std::string& ip)
+int ServiceDyns::perform_update(const std::string& ip)
{
int ret_val = -1;
* @param data The returned http data.
* @return The status code.
*/
-string SERVICE_DYNS::parse_status_code(const string& data) const
+string ServiceDyns::parse_status_code(const string& data) const
{
list<string> tokens;
ba::split(tokens,data,boost::is_any_of(" "));
* @param version Version
*/
template<class Archive>
-void SERVICE_DYNS::serialize(Archive & ar, const unsigned int version)
+void ServiceDyns::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_DYNS_H
-#define SERVICE_DYNS_H
+#ifndef ServiceDyns_H
+#define ServiceDyns_H
#include <string>
#include <boost/shared_ptr.hpp>
#include <list>
-class SERVICE_DYNS : public Service
+class ServiceDyns : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_DYNS> Ptr;
+ typedef boost::shared_ptr<ServiceDyns> Ptr;
- SERVICE_DYNS();
+ ServiceDyns();
- SERVICE_DYNS(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, const std::string& proxy, const int proxy_port);
+ ServiceDyns(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, const std::string& proxy, const int proxy_port);
- ~SERVICE_DYNS();
+ ~ServiceDyns();
int perform_update(const std::string& ip);
};
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_EASYDNS::SERVICE_EASYDNS()
+ServiceEasydns::ServiceEasydns()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_EASYDNS::SERVICE_EASYDNS(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
+ServiceEasydns::ServiceEasydns(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(10); // use default protocol value
/**
* Default destructor
*/
-SERVICE_EASYDNS::~SERVICE_EASYDNS()
+ServiceEasydns::~ServiceEasydns()
{
}
* @param domain_part The complete domain part.
* @return Two_level_domain part if there is one or "" if not so.
*/
-string SERVICE_EASYDNS::get_two_level_tld(const string& domain_part) const
+string ServiceEasydns::get_two_level_tld(const string& domain_part) const
{
// TODO: There is a list with all two level TLD's, use it
* @param domain_part The domain_part in which the hostname is located.
* @return The assembled update url without IP.
*/
-string SERVICE_EASYDNS::assemble_base_url(const string& hostname, const string& two_level_tld) const
+string ServiceEasydns::assemble_base_url(const string& hostname, const string& two_level_tld) const
{
string base_url;
if ( !two_level_tld.empty() )
* @param fqdn Hostname with domain part.
* @return A list with 2 elements (first element is the hostname, second element the domain part), or a list with 1 element if the domain part couldn't be determined.
*/
-list<string> SERVICE_EASYDNS::separate_domain_and_host_part(const string& fqdn) const
+list<string> ServiceEasydns::separate_domain_and_host_part(const string& fqdn) const
{
list<string> splitted;
ba::split(splitted,fqdn,boost::is_any_of("."));
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_EASYDNS::perform_update(const std::string& ip)
+int ServiceEasydns::perform_update(const std::string& ip)
{
int ret_val = -1;
* @param version Version
*/
template<class Archive>
-void SERVICE_EASYDNS::serialize(Archive & ar, const unsigned int version)
+void ServiceEasydns::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_EASYDNS_H
-#define SERVICE_EASYDNS_H
+#ifndef ServiceEasydns_H
+#define ServiceEasydns_H
#include <string>
#include <boost/shared_ptr.hpp>
#include <list>
-class SERVICE_EASYDNS : public Service
+class ServiceEasydns : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_EASYDNS> Ptr;
+ typedef boost::shared_ptr<ServiceEasydns> Ptr;
- SERVICE_EASYDNS();
+ ServiceEasydns();
- SERVICE_EASYDNS(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, const std::string& proxy, const int proxy_port);
+ ServiceEasydns(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, const std::string& proxy, const int proxy_port);
- ~SERVICE_EASYDNS();
+ ~ServiceEasydns();
int perform_update(const std::string& ip);
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_ODS::SERVICE_ODS()
+ServiceOds::ServiceOds()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_ODS::SERVICE_ODS(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl)
+ServiceOds::ServiceOds(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(15); // use default protocol value
/**
* Default destructor.
*/
-SERVICE_ODS::~SERVICE_ODS()
+ServiceOds::~ServiceOds()
{
}
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_ODS::perform_update(const std::string& ip)
+int ServiceOds::perform_update(const std::string& ip)
{
return 0;
}
* @param version Version
*/
template<class Archive>
-void SERVICE_ODS::serialize(Archive & ar, const unsigned int version)
+void ServiceOds::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_ODS_H
-#define SERVICE_ODS_H
+#ifndef ServiceOds_H
+#define ServiceOds_H
#include <string>
#include <boost/shared_ptr.hpp>
-class SERVICE_ODS : public Service
+class ServiceOds : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_ODS> Ptr;
+ typedef boost::shared_ptr<ServiceOds> Ptr;
- SERVICE_ODS();
+ ServiceOds();
- SERVICE_ODS(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);
+ 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);
- ~SERVICE_ODS();
+ ~ServiceOds();
int perform_update(const std::string& ip);
};
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_TZO::SERVICE_TZO()
+ServiceTzo::ServiceTzo()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_TZO::SERVICE_TZO(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
+ServiceTzo::ServiceTzo(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(0); // use default protocol value
/**
* Default destructor
*/
-SERVICE_TZO::~SERVICE_TZO()
+ServiceTzo::~ServiceTzo()
{
}
* @param hostname The password to use.
* @return The assembled update url without IP.
*/
-string SERVICE_TZO::assemble_base_url(const string& fqhn, const string& username, const string& password) const
+string ServiceTzo::assemble_base_url(const string& fqhn, const string& username, const string& password) const
{
string base_url;
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_TZO::perform_update(const std::string& ip)
+int ServiceTzo::perform_update(const std::string& ip)
{
int ret_val = -1;
* @param data The returned http data.
* @return The status code.
*/
-string SERVICE_TZO::parse_status_code(const string& data) const
+string ServiceTzo::parse_status_code(const string& data) const
{
list<string> tokens;
ba::split(tokens,data,boost::is_any_of(" "));
* @param version Version
*/
template<class Archive>
-void SERVICE_TZO::serialize(Archive & ar, const unsigned int version)
+void ServiceTzo::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_TZO_H
-#define SERVICE_TZO_H
+#ifndef ServiceTzo_H
+#define ServiceTzo_H
#include <string>
#include <boost/shared_ptr.hpp>
#include <list>
-class SERVICE_TZO : public Service
+class ServiceTzo : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_TZO> Ptr;
+ typedef boost::shared_ptr<ServiceTzo> Ptr;
- SERVICE_TZO();
+ ServiceTzo();
- SERVICE_TZO(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, const std::string& proxy, const int proxy_port);
+ ServiceTzo(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, const std::string& proxy, const int proxy_port);
- ~SERVICE_TZO();
+ ~ServiceTzo();
int perform_update(const std::string& ip);
};
/**
* Default Constructor, needed for object serialization.
*/
-SERVICE_ZONEEDIT::SERVICE_ZONEEDIT()
+ServiceZoneedit::ServiceZoneedit()
{
}
* @param _login The login name.
* @param _password The corresponding password.
*/
-SERVICE_ZONEEDIT::SERVICE_ZONEEDIT(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
+ServiceZoneedit::ServiceZoneedit(const string& _protocol, const string& _hostname, const string& _login, const string& _password, const Logger::Ptr& _logger, const int _update_interval, const int _max_updates_within_interval, const int _dns_cache_ttl, const string& _proxy, const int _proxy_port)
{
if ( _update_interval == -1 ) // If _update_interval is default po::option_desc (not specified via config)
set_update_interval(0); // use default protocol value
/**
* Default destructor
*/
-SERVICE_ZONEEDIT::~SERVICE_ZONEEDIT()
+ServiceZoneedit::~ServiceZoneedit()
{
}
* @param hostname The fqhn hostname to update IP for.
* @return The assembled update url without IP.
*/
-string SERVICE_ZONEEDIT::assemble_base_url(const string& fqhn) const
+string ServiceZoneedit::assemble_base_url(const string& fqhn) const
{
string base_url;
* @param ip IP Address to set.
* @return 0 if all is fine, -1 otherwise.
*/
-int SERVICE_ZONEEDIT::perform_update(const std::string& ip)
+int ServiceZoneedit::perform_update(const std::string& ip)
{
int ret_val = -1;
* @param data The returned http data.
* @return The status code.
*/
-string SERVICE_ZONEEDIT::parse_status_code(const string& data) const
+string ServiceZoneedit::parse_status_code(const string& data) const
{
list<string> tokens;
ba::split(tokens,data,boost::is_any_of(" "));
* @param version Version
*/
template<class Archive>
-void SERVICE_ZONEEDIT::serialize(Archive & ar, const unsigned int version)
+void ServiceZoneedit::serialize(Archive & ar, const unsigned int version)
{
ar & boost::serialization::base_object<Service>(*this);
}
* @license GPLv2
*/
-#ifndef SERVICE_ZONEEDIT_H
-#define SERVICE_ZONEEDIT_H
+#ifndef ServiceZoneedit_H
+#define ServiceZoneedit_H
#include <string>
#include <boost/shared_ptr.hpp>
#include <list>
-class SERVICE_ZONEEDIT : public Service
+class ServiceZoneedit : public Service
{
private:
public:
- typedef boost::shared_ptr<SERVICE_ZONEEDIT> Ptr;
+ typedef boost::shared_ptr<ServiceZoneedit> Ptr;
- SERVICE_ZONEEDIT();
+ ServiceZoneedit();
- SERVICE_ZONEEDIT(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, const std::string& proxy, const int proxy_port);
+ ServiceZoneedit(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, const std::string& proxy, const int proxy_port);
- ~SERVICE_ZONEEDIT();
+ ~ServiceZoneedit();
int perform_update(const std::string& ip);
};
// Following boost macros are needed for serialization of derived classes through a base class pointer (Service *).
-BOOST_CLASS_EXPORT_GUID(SERVICE_ODS, "SERVICE_ODS")
-BOOST_CLASS_EXPORT_GUID(SERVICE_DHS, "SERVICE_DHS")
-BOOST_CLASS_EXPORT_GUID(SERVICE_DYNS, "SERVICE_DYNS")
-BOOST_CLASS_EXPORT_GUID(SERVICE_DYNDNS, "SERVICE_DYNDNS")
-BOOST_CLASS_EXPORT_GUID(SERVICE_EASYDNS, "SERVICE_EASYDNS")
-BOOST_CLASS_EXPORT_GUID(SERVICE_TZO, "SERVICE_TZO")
-BOOST_CLASS_EXPORT_GUID(SERVICE_ZONEEDIT, "SERVICE_ZONEEDIT")
+BOOST_CLASS_EXPORT_GUID(ServiceOds, "ServiceOds")
+BOOST_CLASS_EXPORT_GUID(ServiceDhs, "ServiceDhs")
+BOOST_CLASS_EXPORT_GUID(ServiceDyns, "ServiceDyns")
+BOOST_CLASS_EXPORT_GUID(ServiceDyndns, "ServiceDyndns")
+BOOST_CLASS_EXPORT_GUID(ServiceEasydns, "ServiceEasydns")
+BOOST_CLASS_EXPORT_GUID(ServiceTzo, "ServiceTzo")
+BOOST_CLASS_EXPORT_GUID(ServiceZoneedit, "ServiceZoneedit")
namespace fs = boost::filesystem;