cdoc and some minor renames
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
|
||||
#include <string>
|
||||
|
||||
class Credentials {
|
||||
class Config {
|
||||
public:
|
||||
static std::string dynuapikey;
|
||||
|
@ -11,6 +11,9 @@ public:
|
||||
*/
|
||||
void checkIPAdress(bool force);
|
||||
|
||||
/**
|
||||
* default constructor
|
||||
*/
|
||||
IPRefresher();
|
||||
|
||||
/**
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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;
|
||||
|
@ -4,7 +4,6 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user