Files
dm-cli/dm-cli/AccountUpdate.hpp
Vladimir N. Korotenko 57b6611085 Initial
2025-11-10 12:30:48 +03:00

27 lines
891 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef _ACCOUNT_UPDATE_
#define _ACCOUNT_UPDATE_
#include <string>
#include "InputParser.hpp"
class AccountUpdate {
public:
/// @brief Конструктор
/// @param parser - парсер аргументов
/// @param isRussian - вывод справки на русском
AccountUpdate(const InputParser& parser, const bool isRussian);
int Process();
private:
int ProcessUrl(std::string date, std::string signature, std::string urls);
int ProcessBitmessage(std::string date, std::string signature, std::string btmsg);
int ProcessPgp(std::string date, std::string signature, std::string pgp);
InputParser parser;
bool isRussian;
/// @brief Получение справки о параметрах команды
int Help();
/// @brief Обновление данных, url через запятую
int Update();
std::string address;
bool isDebug;
};
#endif