remove ignored pt.2

This commit is contained in:
2024-11-22 23:26:42 +03:00
parent 63e4c1382f
commit 9ba8a513e5
58 changed files with 5609 additions and 0 deletions

24
ofd/module.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include "module.h"
#include <nlohmann/json.hpp>
#include <fstream>
#include "../utils/utils.h"
OFDModule::OFDModule() {}
OFDModule::OFDModule(std::string path) {
this->path = path;
std::ifstream settings_file(path);
nlohmann::json settings = nlohmann::json::parse(settings_file);
this->name = from_utf8(settings["name"]);
this->url = from_utf8(settings["url"]);
}
std::wstring OFDModule::get_name() {
return this->name;
}
std::wstring OFDModule::get_url() {
return this->url;
}

3
ofd/ofd.cpp Normal file
View File

@@ -0,0 +1,3 @@
#include "ofd.h"
OFD::OFD() {}

13
ofd/ofd.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef OFD_H
#define OFD_H
#include <string>
class OFD {
public:
OFD();
void ask_captcha();
std::string request_and_parse_check(long fiscal_number, long fiscal_document, long fiscal_sign, std::string datetime, double total, std::string captcha);
};
#endif // OFD_H