Ah, you go like ..

        fu->uploaded().connect(this, &YourClass::fileUploaded);

Then something like:

void YourClass::fileUploaded() {
  std::fstream data(fu->spoolFileName(), std::ios_base::in);
  data.get(some_place); // do whatever you want with the temp file data
  // If you wanna keep it and like 'rename it to something', you'll need to:
 // fu->stealSpoolFile();
}

Something like that.

So basically once the upload is finished, you'll have a temporary file on
your system called fu->spoolFileName().

After your fileUploaded  event handler is called, fu will delete the temp
file unless you 'steal' it.

Kind Regards,
Matthew Sherborne
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
_______________________________________________
witty-interest mailing list
witty-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to