I've written an application that synchronizes calendar from Lotus Notes to the iphone (using MS Outlook as conduit) and I want to tell iTunes to push the changes onto the iphone.
I can do this just fine using the COM interface (IITIpodSource.UpdateIpod) but the problem is that this method return immediately when it starts the synchronization. Then iTunes will handle the rest. I want my application to be informed when iTunes has completed the sync so that I can update my GUI accordingly.
So, while iTunes is synchronizing the iphone correctly, my application is never told when it is done. A status flag that I can poll is just as OK as an event by the way...
I can't find anything of help in the documentation. Has anyone ever tried anything like this?
Edit: I tried polling the FreeSpace property but it seems that is updated before the syncing is done (may even be updated several times as far as I can tell)