2011-06-06 15:50:46 +00:00
|
|
|
#include <applicat.h>
|
|
|
|
#include <mask.h>
|
2011-06-07 15:34:40 +00:00
|
|
|
#include <reputils.h>
|
2011-06-06 15:50:46 +00:00
|
|
|
|
|
|
|
class THardy_transaction : public TSkeleton_application
|
|
|
|
{
|
|
|
|
protected:
|
2011-09-30 13:58:40 +00:00
|
|
|
TFilename _output_path, _input_path, _archive_path;
|
|
|
|
//TFilename _conc_path, _trans_path;
|
2011-06-06 15:50:46 +00:00
|
|
|
|
|
|
|
protected:
|
2011-06-07 15:34:40 +00:00
|
|
|
virtual void elabora(const TMask& mask, TLog_report& log) pure;
|
2011-06-06 15:50:46 +00:00
|
|
|
virtual TMask* create_mask() const pure;
|
|
|
|
bool is_server() const;
|
2011-06-07 10:04:39 +00:00
|
|
|
bool is_by_postino() const;
|
2011-06-06 15:50:46 +00:00
|
|
|
virtual const char* fake_trans_file() const pure;
|
2011-06-07 15:34:40 +00:00
|
|
|
bool wait_for_file(const TFilename& filename) const;
|
2011-06-07 10:04:39 +00:00
|
|
|
void chiudi_concentratore();
|
|
|
|
void carica_concentratore();
|
|
|
|
bool scarica_concentratore();
|
|
|
|
void trasmetti_concentratore();
|
2011-06-06 15:50:46 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
virtual void main_loop();
|
|
|
|
virtual bool create();
|
|
|
|
};
|