本文整理汇总了C++中TCalTime::SetTimeLocalFloatingL方法的典型用法代码示例。如果您正苦于以下问题:C++ TCalTime::SetTimeLocalFloatingL方法的具体用法?C++ TCalTime::SetTimeLocalFloatingL怎么用?C++ TCalTime::SetTimeLocalFloatingL使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TCalTime
的用法示例。
在下文中一共展示了TCalTime::SetTimeLocalFloatingL方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetCalTimeL
/**
* Converts the TTime to TCalTime based on the time mode given
@param aTimeData TTime variable to be set in the specified time mode
@param aCalTimeData time that is set in the specified time mode
@param aTimeMode time mode of the entry
*/
void CTestCalInterimApiSuiteStepBase::SetCalTimeL(const TTime& aTimeData, TCalTime& aCalTimeData, TCalTime::TTimeMode aTimeMode)
{
if(aTimeMode == TCalTime::EFloating)
{
aCalTimeData.SetTimeLocalFloatingL(aTimeData);
}
else if(aTimeMode == TCalTime::EFixedTimeZone)
{
aCalTimeData.SetTimeLocalL(aTimeData);
}
else
{
aCalTimeData.SetTimeUtcL(aTimeData);
}
}
示例2: NonRptEntryInstanceTimeL
TCalTime CCalInstanceIteratorUid::NonRptEntryInstanceTimeL(const CAgnSimpleEntry& aEntry)
{
// The entry does not have a repeat rule so it is just a single instance
TCalTime entryInstanceTime;
if (aEntry.Type() == CCalEntry::ETodo)
{
TTime completionDate = aEntry.CompletedDateUtc();
if (completionDate == Time::NullTTime())
{
if (!aEntry.EntryTime().IsSet())
{
entryInstanceTime = iUndatedTodoTime;
}
else
{
entryInstanceTime = CalUtils::TAgnCalendarTimeToTCalTimeL(aEntry.EntryTime());
}
}
else
{
if (aEntry.TimeMode() == MAgnCalendarTimeMode::EFloating)
{
entryInstanceTime.SetTimeLocalFloatingL(AgnDateTime::ConvertToLocalTimeL(completionDate));
}
else
{
entryInstanceTime.SetTimeUtcL(completionDate);
}
}
}
else
{
entryInstanceTime = CalUtils::TAgnCalendarTimeToTCalTimeL(aEntry.EntryTime());
}
return entryInstanceTime;
}
示例3: DeleteEntriesByTimeRangeL
/**
* Delete entries in the calendar file over a wider time Range
*/
void CTestCalInterimApiModifier::DeleteEntriesByTimeRangeL()
{
TPtrC timeMode;
GetStringFromConfig(ConfigSection(), KFilterTimeMode, timeMode);
TPtrC deleteFilterStartTime;
GetStringFromConfig(ConfigSection(), KDeleteFilterStartTime, deleteFilterStartTime);
TCalTime calStartDateTime;
if(deleteFilterStartTime != KNullDesC())
{
// Convert TPtrC to TTime
TTime startTTime;
startTTime.Set(deleteFilterStartTime);
if(!timeMode.Compare(KFilterTimeModeLocal))
{
calStartDateTime.SetTimeLocalL(startTTime);
}
else if (!timeMode.Compare(KFilterTimeModeLocalFloating))
{
calStartDateTime.SetTimeLocalFloatingL(startTTime);
}
else
{
calStartDateTime.SetTimeUtcL(startTTime);
}
}
else
{
calStartDateTime.SetTimeLocalL(TCalTime::MinTime());
}
TCalTime calEndDateTime;
TPtrC deleteFilterEndTime;
GetStringFromConfig(ConfigSection(), KDeleteFilterEndTime, deleteFilterEndTime);
if(deleteFilterEndTime != KNullDesC())
{
// Convert TPtrC to TTime
TTime endTTime;
endTTime.Set(deleteFilterEndTime);
if(!timeMode.Compare(KFilterTimeModeLocal))
{
calEndDateTime.SetTimeLocalL(endTTime);
}
else if (!timeMode.Compare(KFilterTimeModeLocalFloating))
{
calEndDateTime.SetTimeLocalFloatingL(endTTime);
}
else
{
calEndDateTime.SetTimeUtcL(endTTime);
}
}
else
{
calEndDateTime.SetTimeLocalL(TCalTime::MaxTime());
}
CalCommon::TCalTimeRange calTimeRange(calStartDateTime, calEndDateTime);
TRAPD(err, iEntryView->DeleteL(calTimeRange, CalCommon::EIncludeAll, *this));
CActiveScheduler::Start();
if(err != KErrNone)
{
iTestStep->ERR_PRINTF2(KErrDeleteOperation,err);
iTestStep->SetTestStepResult(EFail);
}
}