未收到通话记录中的清晰列表通知

发布于 2024-08-24 06:07:25 字数 757 浏览 7 评论 0原文

我一直在使用 CLogViewRecentMLogViewChangeObserver 来监控 S60 第五版手机上的通话记录。

MLogViewChangeObserver 具有三个函数:

virtual void HandleLogViewChangeEventAddedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);
virtual void HandleLogViewChangeEventChangedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);
virtual void HandleLogViewChangeEventDeletedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);

但是,只有前两个函数会定期调用,而 HandleLogViewChangeEventDeletedL 仅偶尔调用。

例如,当我从通话记录应用程序的“已接来电”列表中的菜单中选择“清除列表”时,不会调用 HandleLogViewChangeEventDeletedL

谁能指出发生这种情况的原因以及如何纠正这个问题?

谢谢。

I have been using CLogViewRecent and MLogViewChangeObserver to monitor call log on S60 5th edition phones.

MLogViewChangeObserver has three functions:

virtual void HandleLogViewChangeEventAddedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);
virtual void HandleLogViewChangeEventChangedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);
virtual void HandleLogViewChangeEventDeletedL(TLogId aId, TInt aViewIndex, TInt aChangeIndex, TInt aTotalChangeCount);

However, only the first two get called regularly, while HandleLogViewChangeEventDeletedL gets called only sometimes.

E.g. HandleLogViewChangeEventDeletedL is not called when I choose "Clear List" from the menu in "Received calls" list in Call log application.

Can anyone point to the reason why this is happening, and how to correct this?

Thank you.

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

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

发布评论

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

评论(1

错爱 2024-08-31 06:07:25

阅读 Symbian^3 logcli 源代码,“列表清除”是与“事件删除”不同的事件。它不会反映在 MLogViewChangeObserver 回调 mixin 中,仅反映在 MLogViewChangeObserverInternal 中,如 HandleLogViewChangeEventLogClearedL()。这就是它发生的原因。抱歉,无法为您提供解决方法,无法实现您自己的 Logsrv 客户端,以您想要的方式处理 ELogChangeTypeLogCleared 更改类型。

也许您可以描述您在总体层面上想要实现的目标,以便可以提供其他替代方案。

Reading the Symbian^3 logcli source, "list cleared" is an event different from "event deleted". It's not reflected in the MLogViewChangeObserver callback mixin, only in MLogViewChangeObserverInternal as HandleLogViewChangeEventLogClearedL(). That's why it's happening. Sorry, cannot offer you a workaround, short of implementing your own logsrv client that handles ELogChangeTypeLogCleared change types the way you want.

Maybe you could describe what you are trying to achieve on the big picture level so it could be possible to offer other alternatives.

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