gwenhywfar  4.8.0beta
fox16_gui_updater.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  begin : Fri Jan 22 2010
3  copyright : (C) 2010 by Martin Preuss
4  email : martin@libchipcard.de
5 
6  ***************************************************************************
7  * Please see toplevel file COPYING for license details *
8  ***************************************************************************/
9 
10 
11 #ifdef HAVE_CONFIG_H
12 # include <config.h>
13 #endif
14 
15 
16 #include "fox16_gui_updater_l.hpp"
17 
18 #include <gwenhywfar/debug.h>
19 
20 
21 
22 
23 FXDEFMAP(FOX16_GuiUpdater) FOX16_GuiUpdaterMap[]={
25 };
26 
27 
28 FXIMPLEMENT(FOX16_GuiUpdater, FXObject, FOX16_GuiUpdaterMap, ARRAYNUMBER(FOX16_GuiUpdaterMap))
29 
30 
31 
33 :FXObject()
34 , m_guiIdleFlag(0)
35 {
36 }
37 
38 
39 
41 }
42 
43 
44 
45 
47  FXApp *a=FXApp::instance();
48 
49  a->addChore(this, ID_CHORE);
50  a->flush(true);
51 
52  m_guiIdleFlag=0;
53  a->runUntil(m_guiIdleFlag);
54 }
55 
56 
57 
58 long FOX16_GuiUpdater::onChore(FXObject*, FXSelector, void*){
59  m_guiIdleFlag=1;
60  return 1;
61 }
62