本文整理汇总了C++中CEvent::setRecurrence方法的典型用法代码示例。如果您正苦于以下问题:C++ CEvent::setRecurrence方法的具体用法?C++ CEvent::setRecurrence怎么用?C++ CEvent::setRecurrence使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CEvent
的用法示例。
在下文中一共展示了CEvent::setRecurrence方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: cacheKey
//.........这里部分代码省略.........
case 43: // ID44
if (!pQuery.value(iJ_EventCount).toString().isEmpty()) {
vRRule = event->extractSubStrings(pQuery.value(iJ_EventCount).toString().toStdString(), EXCLAMATION);
pRec->setRrule(vRRule);
}
break;
case 44: // ID45
if (!pQuery.value(iJ_EventCount).toString().isEmpty()) {
vRdate = event->extractSubStrings(pQuery.value(iJ_EventCount).toString().toStdString(), SEMI_COLON);
pRec->setRDays(vRdate);
}
break;
case 45: // ID46
if (!pQuery.value(iJ_EventCount).toString().isEmpty()) {
vEdate = event->extractSubStrings(pQuery.value(iJ_EventCount).toString().toStdString(), SEMI_COLON);
pRec->setEDays(vEdate);
}
break;
case 46: // ID47
if (!pQuery.value(iJ_EventCount).toString().isEmpty()) {
vERule = event->extractSubStrings(pQuery.value(iJ_EventCount).toString().toStdString(), EXCLAMATION);
pRec->setErule(vERule);
}
break;
case 47: // ID48
if (!pQuery.value(iJ_EventCount).toString().isEmpty())
pRec->setRecurId(pQuery.value(iJ_EventCount).toInt());
break;
case 48: // ID49
if (!pQuery.value(iJ_EventCount).toString().isEmpty())
pRec->setRtype(pQuery.value(iJ_EventCount).toInt());
break;
}
}
if ((event->getFlags() == HAS_RECURRENCE) ||
(event->getFlags() == HAS_RECURRENCE_ALARM)) {
event->setRecurrence(pRec);
}
delete pRec;
pRec = 0;
if ((event->getFlags() == HAS_ALARM) ||
(event->getFlags() == HAS_RECURRENCE_ALARM)) {
event->setAlarm(pAlarm);
}
delete pAlarm;
pAlarm = 0;
std::vector<CAttendee *> listAttendee;
listAttendee = event->retrieveAttendeeDetails();
COrganizer *pOrg = 0;
pOrg = event->retrieveOrganizerDetails();
if (listAttendee.size())
event->setAttendees(listAttendee);
std::vector<CAttendee *>::iterator listAttendeeIterator;
for (listAttendeeIterator = listAttendee.begin(); listAttendeeIterator != listAttendee.end(); ++listAttendeeIterator)
delete *listAttendeeIterator;
if (pOrg) {
event->setOrganizer(pOrg);
delete pOrg;
pOrg = 0;
}
/*retrieve xprop */
std::vector<CProperties *> vPropList;
vPropList = event->retrieveXPropertyDetails();
event->setXProperties(vPropList);
std::vector<CProperties *>::iterator vPropListIterator;
for (vPropListIterator = vPropList.begin(); vPropListIterator != vPropList.end(); ++vPropListIterator)
delete *vPropListIterator;
/*retrieve params */
std::map<std::string, std::vector<CParameters *> > paramMap;
paramMap = event->retrieveParameterDetails();
event->setHashMap(paramMap);
paramMap.clear();
/* push the event in to the list */
listEvent.push_back(event);
++iI_EventCount;
}
// put to cache
m_dbCache->insertEventVector(cacheKey, listEvent);
return listEvent;
}