added missing files, working on extruder module ( not finished, removing
[clinton/Smoothieware.git] / src / libs / Module.h
CommitLineData
4cff3ded
AW
1/*
2 This file is part of Smoothie (http://smoothieware.org/). The motion control part is heavily based on Grbl (https://github.com/simen/grbl).
3 Smoothie is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
4 Smoothie is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
5 You should have received a copy of the GNU General Public License along with Smoothie. If not, see <http://www.gnu.org/licenses/>.
6*/
7
8#ifndef MODULE_H
9#define MODULE_H
10
11// Module base class
12// All modules must extend this class, see http://smoothieware.org/moduleexample
13class Kernel;
14class Module {
15 public:
16 Module();
17 virtual void on_module_loaded();
18 virtual void register_for_event(int event_id);
19 virtual void on_main_loop(void * argument);
20 virtual void on_console_line_received( void * argument);
21 virtual void on_gcode_received( void * argument);
22 virtual void on_gcode_execute( void * argument);
23 virtual void on_stepper_wake_up( void * argument);
24 virtual void on_speed_change( void * argument);
25 virtual void on_block_begin( void * argument);
26 virtual void on_block_end( void * argument);
da24d6ae 27 virtual void on_config_reload( void * argument);
befcf5cc
AW
28 virtual void on_play( void * argument);
29 virtual void on_pause( void * argument);
4cff3ded
AW
30 Kernel * kernel;
31};
32
33#endif