35 #ifndef ASYNC_QT_APPLICATION_INCLUDED
36 #define ASYNC_QT_APPLICATION_INCLUDED
46 #include <QApplication>
77 class QSocketNotifier;
193 typedef std::pair<Async::FdWatch*, QSocketNotifier*> FdWatchMapItem;
194 typedef std::map<int, FdWatchMapItem> FdWatchMap;
195 typedef std::map<Timer *, AsyncQtTimer *> TimerMap;
197 FdWatchMap rd_watch_map;
198 FdWatchMap wr_watch_map;
201 void addFdWatch(
FdWatch *fd_watch);
202 void delFdWatch(
FdWatch *fd_watch);
203 void addTimer(
Timer *timer);
204 void delTimer(
Timer *timer);
205 DnsLookupWorker *newDnsLookupWorker(
const std::string& label);
208 void rdFdActivity(
int socket);
209 void wrFdActivity(
int socket);