00001 // 00002 // Copyright (C) 2007, 2008, 2009, 2010 Free Software Foundation, Inc. 00003 // 00004 // This program is free software; you can redistribute it and/or modify 00005 // it under the terms of the GNU General Public License as published by 00006 // the Free Software Foundation; either version 3 of the License, or 00007 // (at your option) any later version. 00008 // 00009 // This program is distributed in the hope that it will be useful, 00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 // GNU General Public License for more details. 00013 // 00014 // You should have received a copy of the GNU General Public License 00015 // along with this program; if not, write to the Free Software 00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00017 00018 #ifndef GNASH_LIRC_H 00019 #define GNASH_LIRC_H 00020 00021 #include "GnashKey.h" 00022 #include "network.h" 00023 00024 namespace gnash { 00025 00026 class DSOEXPORT Lirc : public Network { 00027 public: 00028 Lirc(); 00029 ~Lirc(); 00030 bool init(); 00031 bool init(const char *sockpath); 00032 00033 // Whenever lircd receives a IR signal it will broadcast the 00034 // following string to each client: 00035 // <code> <repeat count> <button name> <remote control name> 00036 gnash::key::code getKey(); 00037 const char *getButton(); 00038 private: 00039 const char *_sockname; 00040 char *_button; 00041 }; 00042 00043 } // end of gnash namespace 00044 00045 // GNASH_LIRC_H 00046 #endif 00047 00048 // Local Variables: 00049 // mode: C++ 00050 // indent-tabs-mode: t 00051 // End: