and a UI component, which runs thread to download a file:
class SomeComponent: public Component, public MessageListener
{
void runLoading();
virtual void handleMessage (const Message& message);
}
What I want is to receive a message from FileManager inside handleMessage
How should I bind FileManager and SomeComponent to be able to handle messages? Something related to MessageManager ?
class StatusMessage: public Message
{
int m_status;
public:
StatusMessage(int stat);
~StatusMessage(void);
int status(){return m_status;}
};
And I want to notify Main UI thread that donwloading is completed and to do something like