本文整理汇总了C++中MojRefCountedPtr::GetActivityId方法的典型用法代码示例。如果您正苦于以下问题:C++ MojRefCountedPtr::GetActivityId方法的具体用法?C++ MojRefCountedPtr::GetActivityId怎么用?C++ MojRefCountedPtr::GetActivityId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MojRefCountedPtr
的用法示例。
在下文中一共展示了MojRefCountedPtr::GetActivityId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: AttachAdoptedActivity
void SmtpSyncOutboxCommand::AttachAdoptedActivity(MojRefCountedPtr<Activity> activity, const MojString& activityId, const MojString& activityName)
{
MojLogInfo(m_log, "Attaching adopted activity, incoming activityId=%s, name=%s. WatchActivityName=%s"
, activityId.data(), activityName.data(), m_outboxWatchActivityName.data());
if (activityName == m_outboxWatchActivityName) {
if(m_outboxWatchActivity.get() && activity.get()) {
MojLogWarning(m_log, "%s: outbox activity already attached; replacing activity %s with %s", __PRETTY_FUNCTION__, AsJsonString(m_outboxWatchActivity->GetActivityId()).c_str(), AsJsonString(activity->GetActivityId()).c_str());
}
m_outboxWatchActivity = activity;
} else if (activityName == m_accountWatchActivityName) {
if(m_accountWatchActivity.get() && activity.get()) {
MojLogWarning(m_log, "%s: account watch activity already attached; replacing activity %s with %s", __PRETTY_FUNCTION__, AsJsonString(m_accountWatchActivity->GetActivityId()).c_str(), AsJsonString(activity->GetActivityId()).c_str());
}
m_accountWatchActivity = activity;
} else {
m_manualActivities.push_back( activity );
}
m_networkStatus->ParseActivity(activity);
}