if(widgetStylesPrinted != true) {document.write('');}var widgetStylesPrinted = true;var content = '
#ifndef PARSEKEVENTLOOP_H #define PARSEKEVENTLOOP_H #include <QObject> #include <QTimer> #include <QHash> #include <QSocketNotifier> #include <tpproto/eventloop.h> #define BOOST_NO_EXCEPTIONS { Q_OBJECT public: ParsekEventLoop(); virtual ~ParsekEventLoop(); virtual void listenForSocketRead(TPProto::TPSocket *sock); virtual void listenForSocketWrite(TPProto::TPSocket *sock); virtual TPProto::TimerConnection setTimer(uint32_t interval, const TPProto::TimerSignal::slot_type &callback); public Q_SLOTS: void activated_read(int fd); void activated_write(int fd); void timeout(); private: //TIMERS AND CALLBACK STUFF //SOCKET STUFF struct ParsekSocket //covert to dedicated class later?? { ParsekSocket() : socket(0), notifier(0) {} ParsekSocket(TPProto::TPSocket *socket, QSocketNotifier *notifier) : socket(socket), notifier(notifier) {} TPProto::TPSocket *socket; }; }; #endif