当我使用 COM 以编程方式同步 iPhone 时让 iTunes 通知我

发布于 2024-08-08 01:35:05 字数 699 浏览 1 评论 0原文

编写了一个应用程序,可以将 Lotus Notes 中的日历同步到 iPhone(使用 MS Outlook)作为管道),我想告诉 iTunes 将更改推送到 iPhone 上。

我可以使用 COM 接口(IITIpodSource.UpdateIpod)很好地做到这一点,但是问题是这个方法在开始同步时立即返回。然后 iTunes 将处理剩下的事情。我希望当 iTunes 完成同步时通知我的应用程序,以便我可以相应地更新我的 GUI。

因此,虽然 iTunes 正确同步 iPhone,但我的应用程序永远不会被告知何时完成。顺便说一句,我可以轮询的状态标志与事件一样好......

我在文档中找不到任何帮助。有人尝试过这样的事情吗?

编辑:我尝试轮询 FreeSpace 属性,但似乎在同步完成之前更新(据我所知甚至可能更新多次)

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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

も星光 2024-08-15 01:35:05

尝试直接在 iPod 上执行其他操作(例如,创建一个新的播放列表 - 弹出可能有点“太难”,除非您可以通过编程方式重新插入 iPod)。至少通过 GUI,您只能在同步完成后执行此操作。

Try to do something else directly on the iPod (e.g. create a new playlist - ejection may be a little "too hard" unless you can reinsert the iPod programmatically). At least through the GUI you can only do that when the synch has completed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文