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

src/N900/ButtonListener.h

00001 #ifndef FCAM_N900_BUTTON_LISTENER_H
00002 #define FCAM_N900_BUTTON_LISTENER_H
00003 
00004 #include <pthread.h>
00005 
00006 #include "FCam/Event.h"
00007 
00008 namespace FCam { 
00009     namespace N900 {
00010 
00011         class ButtonListener : public EventGenerator {
00012           public:
00013             // ButtonListener is a singleton
00014             static ButtonListener *instance();
00015 
00016           private:
00017             ButtonListener();
00018             ~ButtonListener();            
00019 
00020             void run();
00021  
00022             static ButtonListener *_instance;
00023 
00024             pthread_t thread;
00025 
00026             friend void *button_listener_thread_(void *arg);
00027 
00028             bool stop;
00029         };
00030 
00031     }
00032 }
00033 
00034 #endif

Generated on Thu Jul 15 2010 17:51:28 for FCam by  doxygen 1.7.1