SpikeStream Application Library  0.2
SpikeStreamApplication.h
Go to the documentation of this file.
00001 #ifndef SPIKESTREAMAPPLICATION_H
00002 #define SPIKESTREAMAPPLICATION_H
00003 
00004 //Qt includes
00005 #include <QApplication>
00006 
00007 //Other includes
00008 #include <sys/time.h>
00009 
00010 namespace spikestream {
00011 
00014     class SpikeStreamApplication : public QApplication {
00015                 Q_OBJECT
00016 
00017                 public:
00018                         SpikeStreamApplication(int & argc, char ** argv);
00019                         ~SpikeStreamApplication();
00020                         bool notify(QObject* receiver, QEvent* event);
00021 
00022                 protected:
00023                         #ifdef LINUX32_SPIKESTREAM
00024                                 //Inherited from QApplication - Linux specific
00025                                 bool x11EventFilter( XEvent * );
00026                         #endif//LINUX32_SPIKESTREAM
00027 
00028                 private slots:
00029                         void startRender();
00030                         void stopRender();
00031 
00032                 private:
00033                         //============================ VARIABLES ==============================
00035                         unsigned int renderDuration_ms;
00036 
00038                         unsigned int startRenderKeyEventTime;
00039 
00041                         unsigned int keyEventTime;
00042 
00044                         timeval startRenderTime;
00045 
00047                         timeval stopRenderTime;
00048 
00050                         bool rendering;
00051 
00052 
00053                         //============================ METHODS ================================
00055                         SpikeStreamApplication(const SpikeStreamApplication&);
00056 
00058                         SpikeStreamApplication operator=(const SpikeStreamApplication&);
00059 
00060     };
00061 }
00062 
00063 
00064 #endif//SPIKESTREAMAPPLICATION_H
00065 
00066 
 All Classes Files Functions Variables Typedefs Friends Defines