Main Page   Class Hierarchy   Compound List   File List   Compound Members  

C_KeyboardControl.hpp

00001 /*
00002  *  This program is free software; you can redistribute it and/or modify
00003  *  it under the terms of the GNU General Public License as published by
00004  *  the Free Software Foundation; either version 2 of the License, or
00005  *  (at your option) any later version.
00006  *
00007  *  This program is distributed in the hope that it will be useful,
00008  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00009  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010  *  GNU General Public License for more details.
00011  *
00012  *  You should have received a copy of the GNU General Public License
00013  *  along with this program; if not, write to the Free Software
00014  *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00015  *
00016  * (c)Copyright 2006 Hewlett-Packard Development Company, LP.
00017  *
00018  */
00019 
00020 #ifndef _C_KEYBOARDCONTROL_H
00021 #define _C_KEYBOARDCONTROL_H
00022 
00023 #include "C_SemaphoreTimed.hpp"
00024 #include "C_GeneratorStats.hpp"
00025 #include "C_TaskControl.hpp"
00026 
00027 #include <termios.h>
00028 
00029 class C_Generator ; // avoid circular reference
00030 
00031 class C_KeyboardControl : public C_TaskControl {
00032 
00033 public:
00034   
00035   C_KeyboardControl() ;
00036   ~C_KeyboardControl() ;
00037   
00038   void init(C_Generator *P_gen) ;
00039   void force_end_procedure () ;
00040 
00041 private :
00042 
00043   struct termios    m_saved_conf      ;
00044   struct termios    m_controller_conf ;
00045   C_Generator      *m_gen ;
00046 
00047   T_GeneratorError TaskProcedure () ;
00048   T_GeneratorError InitProcedure () ;
00049   T_GeneratorError EndProcedure () ;
00050   T_GeneratorError StoppingProcedure () ;
00051   T_GeneratorError ForcedStoppingProcedure () ;
00052 
00053   void execute_cmd (char P_char) ;
00054   void analyze_cmd (char *P_cmd);
00055 
00056   void init_controller_configuration () ;
00057   void controller_configuration () ;
00058   void system_configuration () ;
00059   
00060 } ;
00061 
00062 #endif // _C_KEYBOARDCONTROL_H
00063 
00064 
00065 
00066 
00067 
00068 

Generated on Wed Mar 7 14:44:50 2007 for Seagull by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002