How to add callback to tell owner something



How to tell the owner that something has done at one function in my class?
Just like as following:
main()
{
  TMyClass me;
  me.DoSomething(); //not done yet if the function return
  ...
}

void TMyClass::OnSomeEvent()
{
  if (something has done) {
    //Add a callback to tell owner that the transfer is done, how to do it?
  }
}

Thanks a lot

Sent from the Gtk+ - General forum at Nabble.com:
How to add callback to tell owner something

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]