12 MyScheduleEventSubscriber::MyScheduleEventSubscriber()
16 MyScheduleEventSubscriber::~MyScheduleEventSubscriber()
22 std::string event_str =
"ActionType: ";
27 event_str +=
"SAT_StartDbDownload";
31 event_str +=
"SAT_ProgressDbDownload";
35 event_str +=
"SAT_StopDbDownload";
39 event_str +=
"SAT_ErrorDbDownload";
43 event_str +=
"SAT_StartDbMerge";
47 event_str +=
"SAT_StopDbMerge";
51 event_str +=
"SAT_ErrorDbMerge";
55 event_str +=
"SAT_UserCancel";
59 event_str +=
"unknown action";
63 event_str +=
" ModuleId: ";
68 event_str +=
"SMI_UrlDb";
72 event_str +=
"SMI_MailDb";
76 event_str +=
"unknown module";
81 event_str +=
" Version: " + version;
83 event_str +=
" Text: " + text;
85 event_log.push_back (event_str);
90 std::cout <<
"Schedule event log" << std::endl;
91 std::cout <<
"------------------" << std::endl;
92 for (
size_t i = 0; i < event_log.size(); ++i)
94 std::cout << event_log[i] << std::endl;
@ SMI_MailDb
ID for a mail database.
@ SMI_UrlDb
ID for a URL database.
@ SAT_StopDbDownload
A complete database download has successfully finished.
Header file for the schedule event subscriber.
ScheduleModuleId
This defines the module id of a schedule event.
ScheduleActionType
This defines the action type of a schedule event.
@ SAT_ProgressDbDownload
Complete database download progress information.
@ SAT_StopDbMerge
A database merge process has successfully finished.
virtual void onEvent(dca::ScheduleActionType actionType, dca::ScheduleModuleId moduleId, const std::string &version, const std::string &text)
Implementation of interface class method onEvent.
@ SAT_StartDbDownload
A complete database download has started.
@ SAT_ErrorDbMerge
An error occured during the database merge process.
void DumpEventMessages() const
Dumps all collected messages to screen.
@ SAT_UserCancel
The user has cancelled the operation.
@ SAT_ErrorDbDownload
An error occured during a complete db download.
@ SAT_StartDbMerge
A database merge process has started.