calendarui/controller/src/calenactionuiutils.cpp
changeset 57 bb2d3e476f29
parent 51 0b38fc5b94c6
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
    46 AgendaEntry CalenActionUiUtils::findPossibleInstanceL(const TCalenInstanceId& id,
    46 AgendaEntry CalenActionUiUtils::findPossibleInstanceL(const TCalenInstanceId& id,
    47                                                          AgendaUtil* agendaUtil )
    47                                                          AgendaUtil* agendaUtil )
    48     {
    48     {
    49     OstTraceFunctionEntry0( CALENACTIONUIUTILS_FINDPOSSIBLEINSTANCEL_ENTRY );
    49     OstTraceFunctionEntry0( CALENACTIONUIUTILS_FINDPOSSIBLEINSTANCEL_ENTRY );
    50     
    50     
    51     QList<AgendaEntry> instances = agendaUtil->createEntryIdListForDay(id.mInstanceTime,
    51     AgendaUtil::FilterFlags filter = 
    52                                                                        AgendaUtil::FilterFlags(AgendaUtil::IncludeAll));
    52     		AgendaUtil::FilterFlags(AgendaUtil::IncludeAnniversaries |
       
    53 									 AgendaUtil::IncludeAppointments | 
       
    54 									 AgendaUtil::IncludeEvents |
       
    55 									 AgendaUtil::IncludeReminders |
       
    56 									 AgendaUtil::IncludeIncompletedTodos);
       
    57     QList<AgendaEntry> instances = 
       
    58 				agendaUtil->createEntryIdListForDay(id.mInstanceTime, filter);
    53     AgendaEntry result;
    59     AgendaEntry result;
    54 
    60 
    55     // For instances finishing the next day (now possible with unified DateTime editor),
    61     // For instances finishing the next day (now possible with unified DateTime editor),
    56     // we have to do our best to match the instance time exactly - otherwise we could
    62     // we have to do our best to match the instance time exactly - otherwise we could
    57     // match the LocalUid to the incorrect instance in a series.
    63     // match the LocalUid to the incorrect instance in a series.