16 MyWacScheduleEventSubscriber::MyWacScheduleEventSubscriber()
20 MyWacScheduleEventSubscriber::~MyWacScheduleEventSubscriber()
26 std::string event_str =
"ActionType: ";
31 event_str +=
"SAT_StartDbDownload";
35 event_str +=
"SAT_ProgressDbDownload";
39 event_str +=
"SAT_StopDbDownload";
43 event_str +=
"SAT_ErrorDbDownload";
47 event_str +=
"SAT_StartDbMerge";
51 event_str +=
"SAT_StopDbMerge";
55 event_str +=
"SAT_ErrorDbMerge";
59 event_str +=
"SAT_UserCancel";
63 event_str +=
"unknown action";
67 event_str +=
" ModuleId: ";
72 event_str +=
"SMI_UrlDb";
76 event_str +=
"SMI_WacDb";
81 std::ostringstream os;
82 os <<
"module id=" << moduleId;
83 event_str += os.str();
89 event_str +=
" Version: " + version;
91 event_str +=
" Text: " + text;
93 std::cout << event_str << std::endl;
@ SMI_UrlDb
ID for a URL database.
@ SAT_StopDbDownload
A complete database download has successfully finished.
@ SMI_WacDb
ID for a WAC database.
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.
@ SAT_StartDbDownload
A complete database download has started.
@ SAT_ErrorDbMerge
An error occured during the database merge process.
@ SAT_UserCancel
The user has cancelled the operation.
@ SAT_ErrorDbDownload
An error occured during a complete db download.
virtual void onEvent(dca::ScheduleActionType actionType, dca::ScheduleModuleId moduleId, const std::string &version, const std::string &text)
Implementation of interface class method onEvent.
@ SAT_StartDbMerge
A database merge process has started.