source: filezilla/trunk/fuentes/src/engine/event_handler.cpp @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 556 bytes
Line 
1#include <filezilla.h>
2
3#include "event_handler.h"
4#include "event_loop.h"
5
6CEventHandler::CEventHandler(CEventLoop& loop)
7        : event_loop_(loop)
8{
9}
10
11CEventHandler::~CEventHandler()
12{
13        wxASSERT(removing_); // To avoid races, the base class must have removed us already
14}
15
16void CEventHandler::RemoveHandler()
17{
18        event_loop_.RemoveHandler(this);
19}
20
21timer_id CEventHandler::AddTimer(duration const& interval, bool one_shot)
22{
23        return event_loop_.AddTimer(this, interval, one_shot);
24}
25
26void CEventHandler::StopTimer(timer_id id)
27{
28        event_loop_.StopTimer(id);
29}
Note: See TracBrowser for help on using the repository browser.