• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

lirc.h

Go to the documentation of this file.
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 __LIRC_H__
00019 #define __LIRC_H__
00020 
00021 #include "dsodefs.h"
00022 #include "gnash.h"
00023 #include "network.h"
00024 #include "GnashKey.h"
00025 
00026 namespace gnash {
00027 
00028 class DSOEXPORT Lirc : public Network {
00029 public:
00030     Lirc();
00031     ~Lirc();
00032     bool init();
00033     bool init(const char *sockpath);
00034     
00035     // Whenever lircd receives a IR signal it will broadcast the
00036     // following string to each client:
00037     // <code> <repeat count> <button name> <remote control name>
00038     gnash::key::code getKey();
00039     const char *getButton();
00040   private:
00041     const char *_sockname;
00042     char *_button;
00043 };
00044 
00045 } // end of gnash namespace
00046 
00047 // __LIRC_H__
00048 #endif
00049 
00050 // Local Variables:
00051 // mode: C++
00052 // indent-tabs-mode: t
00053 // End:

Generated on Thu Sep 2 2010 for Gnash by  doxygen 1.7.1