, Password("NOT SERIALIZED")
, ActualIP("0.0.0.0")
, ActualIPIsBurnt(false)
+ , Activated(false)
, UpdateInterval(15)
, MaxUpdatesWithinInterval(3)
, MaxEqualUpdatesInSuccession(2)
UpdateErrorCode update_res = perform_update(ip);
+ // If update result is other than Generic or NotAuth, we assume that the hostname is activated.
+ if ( (update_res != GenericError) && (update_res != NotAuth) )
+ set_activated();
+
if (update_res == UpdateOk)
{
// if update was successful, we need to set the Lastupdated and ActualIP base member.
{
DNSCacheTTL = _dns_cache_ttl;
}
+
+
+/**
+ * Get member Activated
+ * @return Activated
+ */
+bool Service::get_activated() const
+{
+ return Activated;
+}
+
+
+/**
+ * Set member Activated
+ * @param _activated Activated
+ */
+void Service::set_activated()
+{
+ Activated = true;
+}