job scheduler works with run once and run periodic schedules. Stop logic is not fully thought through.

Dependencies:   LinkedList

Dependents:   JobSchedulerDemo Borsch

Revision:
16:f61b62b119dd
Parent:
15:6b8fa5dff770
Child:
17:3b565ccd291b
--- a/scheduler.h	Wed Aug 02 22:03:50 2017 +0000
+++ b/scheduler.h	Thu Aug 03 00:00:13 2017 +0000
@@ -34,6 +34,12 @@
             in the future calculated as (return_value - from).
             */
             virtual time_t NextRunTime(time_t from) = 0;
+            
+            /**
+            Returns unique number to identify each schedule type
+            without enabling C++ RTTI.
+            */
+            virtual int ScheduleType() = 0;
     };
     
     struct IJobData {