thats why i though.
Not a single thread is involved on the entire process.
The flux is as follows:
main.cpp:
Core *core = new Core(os);
core->iniciar();
return a.exec();
Core *core = new Core(os);
core->iniciar();
return a.exec();
To copy to clipboard, switch view to plain text mode
core.cpp:
bi = new Interface();
gif = new GUIInterfaceFactory();
bi->setGUIInterface(gif);
bi = new Interface();
gif = new GUIInterfaceFactory();
bi->setGUIInterface(gif);
To copy to clipboard, switch view to plain text mode
Interface.cpp:
gi = gif->getGUIInterface(this);
gi->getLoggedIn();
gi = gif->getGUIInterface(this);
gi->getLoggedIn();
To copy to clipboard, switch view to plain text mode
GUIInterface.cpp:
cw = new ChatWindow();
cw->show();
cw = new ChatWindow();
cw->show();
To copy to clipboard, switch view to plain text mode
and finally ChatWindow.cpp contains the code i posted on the first post. As u can see, i did not manually create a single thread on the entire process.
If u are interested u can see most of the code ad http://sourceforge.net/p/rm-navi/code/ci/master/tree/ but is pretty big
Bookmarks