This commit is contained in:
leca 2024-11-26 01:09:21 +03:00
parent 8f511789d9
commit 1843479e6b
6 changed files with 3 additions and 43 deletions

View File

@ -46,7 +46,6 @@ else()
outputdialog.h outputdialog.cpp outputdialog.ui
output/output_options.h output/output_options.cpp
ofd/ofd.h ofd/ofd.cpp
utils/utils.h utils/utils.cpp
image/checkimage.h image/checkimage.cpp

View File

@ -38,6 +38,9 @@
<height>16</height>
</rect>
</property>
<property name="value">
<number>50</number>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>

View File

@ -1,6 +1,5 @@
#include "mainwindow.h"
#include "net/net.h"
#include "ofd/ofd.h"
#include "settings/settings.h"
#include "utils/utils.h"
#include <QApplication>
@ -18,7 +17,6 @@ int main(int argc, char *argv[]) {
get_path_relative_to_home(".local/share/checks_parser/settings.json");
Settings s(settings_file_path);
OFD ofd;
Net n;
// std::vector<std::string> ofd_updates = ofd.check_updates();

View File

@ -1,24 +0,0 @@
#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;
}

View File

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

View File

@ -1,13 +0,0 @@
#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