00001 /* 00002 * utilite is a cross-platform library with 00003 * useful utilities for fast and small developing. 00004 * Copyright (C) 2010 Mathieu Labbe 00005 * 00006 * utilite is free library: you can redistribute it and/or modify 00007 * it under the terms of the GNU Lesser General Public License as published by 00008 * the Free Software Foundation, either version 3 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * utilite is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public License 00017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00018 */ 00019 00020 #ifndef UEVENTSHANDLER_H 00021 #define UEVENTSHANDLER_H 00022 00023 #include "rtabmap/utilite/UtiLiteExp.h" // DLL export/import defines 00024 00025 #include "rtabmap/utilite/UEventsSender.h" 00026 class UEvent; 00027 00128 class UTILITE_EXP UEventsHandler : public UEventsSender { 00129 public: 00130 00131 void registerToEventsManager(); 00132 void unregisterFromEventsManager(); 00133 00134 00135 protected: 00140 friend class UEventsManager; 00141 00158 virtual bool handleEvent(UEvent * event) = 0; 00159 00160 protected: 00172 UEventsHandler() {} 00173 00182 virtual ~UEventsHandler(); 00183 00184 private: 00185 00186 }; 00187 00188 #endif // UEVENTSHANDLER_H