- void addTimer(eTimer* e) { TimerList.push_back(e); TimerList.sort(); }
- void removeTimer(eTimer* e) { TimerList.remove(e); }
+ void addTimer(eTimer* e);
+ void removeTimer(eTimer* e);
+public:
+#ifndef SWIG
+ static ePtrList<eMainloop> existing_loops;
+#endif
+
+ eMainloop()
+ :app_quit_now(0),loop_level(0),retval(0), m_is_idle(0), m_inActivate(0), m_interrupt_requested(0)
+ {
+ existing_loops.push_back(this);
+ }
+ virtual ~eMainloop();