00001 00002 // This code is part of the MaiaProject free software 00003 // 00004 // Keyboard and Mouse Emulator - Virtual keyboard Engine 00005 // 00006 // Copyright (c) 2002-2003 Luca Clivio <luca.clivio@maiaproject.org> 00007 // Tel. +39-347-2538040 00008 // via B.Croce 2, 20037 Paderno Dugnano (Milano) - Italy 00009 // 00010 // Developers: 00011 // Simone Mangano <simone.mangano@maiaproject.org> 00012 // Andrea Tosato <andrea.tosato@maiaproject.org> 00013 // 00014 // ----------------------------------------------------------------------------- 00015 // This program is free software; This program is free software; 00016 // you can redistribute it and/or modify it under the terms of the 00017 // GNU General Public License as published by the Free Software Foundation; 00018 // either version 2 of the License, or (at your option) any later version. 00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 // GNU General Public License for more details. 00022 // You should have received a copy of the GNU General Public License 00023 // along with this program; if not, write to the Free Software 00024 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00026 #ifndef _omObject_ 00027 #define _omObject_ 00028 00029 #include <iostream> 00030 #include <string> 00031 #include <wx/wx.h> 00032 00033 // include configuration file used in every class 00034 #include <openmaia/config.h> 00035 00036 #include <openmaia/omTCPMessage.h> 00037 00048 class omObject { 00049 public: 00050 // generic events 00051 virtual void Init() ; // initialize class 00052 virtual void Reload(); // reload values 00053 00054 // generic start and stop 00055 virtual void Start() ; // pass the Start event 00056 virtual void Stop() ; // pass the Stop event 00057 00058 // navigation events 00059 virtual void Tick() ; 00060 virtual void Action() ; 00061 virtual void GoDown() ; 00062 virtual void GoUp(); 00063 virtual void GoLeft() ; 00064 virtual void GoRight() ; 00065 00066 // notify data eventes 00067 virtual void NotifyMessage(wxString, wxArrayString); 00068 virtual void NotifyXYData(int, int) ; 00069 virtual void NotifyIntData(int) ; 00070 virtual void NotifyFloatData(float) ; 00071 virtual void NotifyTCPMessage(omTCPMessage); 00072 00073 // used by GrantFocus2User 00074 virtual bool IsYourWindow(void *); // pass the IsYourWindow check 00075 00076 // used by some device drivers 00077 virtual void StopExecutor(); // stop the command executor 00078 virtual void StartExecutor() ; // start the command executor 00079 } ; 00080 00081 #endif
Copyright © by Luca Clivio |