cdoc and some minor renames

This commit is contained in:
2020-04-30 19:37:11 +02:00
parent 53e59e9931
commit 78d07ac95b
15 changed files with 71 additions and 52 deletions

View File

@ -6,7 +6,7 @@
#include <string>
class Credentials {
class Config {
public:
static std::string dynuapikey;

View File

@ -11,6 +11,9 @@ public:
*/
void checkIPAdress(bool force);
/**
* default constructor
*/
IPRefresher();
/**

View File

@ -15,8 +15,8 @@ public:
static void log(const std::string &message, int level);
static const int Debug;
static const int Message;
static const int Warning;
static const int Error;
static const int Debug = 4;
static const int Message = 3;
static const int Warning = 2;
static const int Error = 1;
};

View File

@ -21,9 +21,9 @@ public:
* @param domainId ID of domain received by Dynu
* @param domainName domainname to refresh
*/
void init(std::string dynuApiKey, std::string domainId, std::string domainName);
void init(const std::string& dynuApiKey, const std::string& domainId, const std::string& domainName);
private:
std::string dynuapikey;
std::string dynuapikey; // Dynu API key
std::string domainid; //id of the dynu domain
std::string domainname;

View File

@ -4,7 +4,6 @@
#pragma once
#include <iostream>
#include <vector>

View File

@ -14,7 +14,7 @@ public:
* send telegram Message to predefined destination
* @param text message
*/
void sendMessage(std::string text);
int sendMessage(const std::string& text);
/**
* init Telegram api with apikey and chatid