35 #ifndef ASYNC_QT_APPLICATION_INCLUDED
36 #define ASYNC_QT_APPLICATION_INCLUDED
45 #include <sigc++/sigc++.h>
48 #include <QApplication>
79 class QSocketNotifier;
155 class QtApplication :
public QApplication,
public Application
195 typedef std::pair<Async::FdWatch*, QSocketNotifier*> FdWatchMapItem;
196 typedef std::map<int, FdWatchMapItem> FdWatchMap;
197 typedef std::map<Timer *, AsyncQtTimer *> TimerMap;
199 FdWatchMap rd_watch_map;
200 FdWatchMap wr_watch_map;
203 void addFdWatch(
FdWatch *fd_watch);
204 void delFdWatch(
FdWatch *fd_watch);
205 void addTimer(
Timer *timer);
206 void delTimer(
Timer *timer);
207 DnsLookupWorker *newDnsLookupWorker(
const std::string& label);
210 void rdFdActivity(
int socket);
211 void wrFdActivity(
int socket);