creator/engine/src/creator_calendar.cpp
changeset 52 36d60d12b4af
parent 51 b048e15729d6
equal deleted inserted replaced
51:b048e15729d6 52:36d60d12b4af
   191                     this->iTodoPriority = 1;
   191                     this->iTodoPriority = 1;
   192 
   192 
   193             CleanupStack::PopAndDestroy (tempBuf );
   193             CleanupStack::PopAndDestroy (tempBuf );
   194 
   194 
   195             }
   195             }
       
   196             break;
   196 
   197 
   197         case MCreatorModuleBaseParameters::ECalendarMemo:
   198         case MCreatorModuleBaseParameters::ECalendarMemo:
   198             {
   199             {
   199 
   200 
   200             parser->StrParserL (tempBuf, '|' );
   201             parser->StrParserL (tempBuf, '|' );
   206 
   207 
   207             parser->StrParserL (this->iDescription, ';' );
   208             parser->StrParserL (this->iDescription, ';' );
   208 
   209 
   209             CleanupStack::PopAndDestroy (tempBuf );
   210             CleanupStack::PopAndDestroy (tempBuf );
   210             }
   211             }
       
   212             break;
   211 
   213 
   212         case MCreatorModuleBaseParameters::ECalendarMeeting:
   214         case MCreatorModuleBaseParameters::ECalendarMeeting:
   213             {
   215             {
   214 
   216 
   215             parser->StrParserL (tempBuf, '|' );
   217             parser->StrParserL (tempBuf, '|' );
   224             parser->StrParserL (this->iLocation, '|' );
   226             parser->StrParserL (this->iLocation, '|' );
   225             parser->StrParserL (this->iDescription, ';' );
   227             parser->StrParserL (this->iDescription, ';' );
   226 
   228 
   227             CleanupStack::PopAndDestroy (tempBuf );
   229             CleanupStack::PopAndDestroy (tempBuf );
   228             }
   230             }
       
   231             break;
   229 
   232 
   230         case MCreatorModuleBaseParameters::ECalendarAnniv:
   233         case MCreatorModuleBaseParameters::ECalendarAnniv:
   231             {
   234             {
   232 
   235 
   233             parser->StrParserL (tempBuf, '|' );
   236             parser->StrParserL (tempBuf, '|' );
   239             parser->StrParserL (this->iDescription, ';' );
   242             parser->StrParserL (this->iDescription, ';' );
   240 
   243 
   241             CleanupStack::PopAndDestroy (tempBuf );
   244             CleanupStack::PopAndDestroy (tempBuf );
   242 
   245 
   243             }
   246             }
       
   247             break;
   244         default:
   248         default:
   245             {
   249             {
   246             //implement 
   250             //implement 
   247             }
   251             }
       
   252             break;
   248         }
   253         }
   249     }
   254     }
   250 //----------------------------------------------------------------------------
   255 //----------------------------------------------------------------------------
   251 
   256 
   252 CCreatorInterimCalendar* CCreatorInterimCalendar::NewL (CCreatorEngine* aEngine )
   257 CCreatorInterimCalendar* CCreatorInterimCalendar::NewL (CCreatorEngine* aEngine )
   535     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
   540     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
   536     iCalEntryView->StoreL (array, success );
   541     iCalEntryView->StoreL (array, success );
   537 
   542 
   538     // id has been generated, store it for being able to delete
   543     // id has been generated, store it for being able to delete
   539     // entries created only with Creator
   544     // entries created only with Creator
   540     iEntryIds.Append( entry->LocalUidL() );
   545     iEntryIds.AppendL( entry->LocalUidL() );
   541     
   546     
   542     //One item should be added at time
   547     //One item should be added at time
   543     if (success != 1 )
   548     if (success != 1 )
   544         {
   549         {
   545         err = 1;
   550         err = 1;
   942     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
   947     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
   943     iCalEntryView->StoreL (array, success );
   948     iCalEntryView->StoreL (array, success );
   944 
   949 
   945     // id has been generated, store it for being able to delete
   950     // id has been generated, store it for being able to delete
   946     // entries created only with Creator
   951     // entries created only with Creator
   947     iEntryIds.Append( entry->LocalUidL() );
   952     iEntryIds.AppendL( entry->LocalUidL() );
   948     
   953     
   949     //One item should be added at time
   954     //One item should be added at time
   950     if (success != 1 )
   955     if (success != 1 )
   951         {
   956         {
   952         err = 1;
   957         err = 1;
  1043     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
  1048     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
  1044     iCalEntryView->StoreL (array, success );
  1049     iCalEntryView->StoreL (array, success );
  1045 
  1050 
  1046     // id has been generated, store it for being able to delete
  1051     // id has been generated, store it for being able to delete
  1047     // entries created only with Creator
  1052     // entries created only with Creator
  1048     iEntryIds.Append( entry->LocalUidL() );
  1053     iEntryIds.AppendL( entry->LocalUidL() );
  1049     
  1054     
  1050     //One item should be added at time
  1055     //One item should be added at time
  1051     if (success != 1 )
  1056     if (success != 1 )
  1052         {
  1057         {
  1053         err = 1;
  1058         err = 1;
  1143     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
  1148     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
  1144     iCalEntryView->StoreL (array, success );
  1149     iCalEntryView->StoreL (array, success );
  1145 
  1150 
  1146     // id has been generated, store it for being able to delete
  1151     // id has been generated, store it for being able to delete
  1147     // entries created only with Creator
  1152     // entries created only with Creator
  1148     iEntryIds.Append( entry->LocalUidL() );
  1153     iEntryIds.AppendL( entry->LocalUidL() );
  1149     
  1154     
  1150     //One item should be added at time
  1155     //One item should be added at time
  1151     if (success != 1 )
  1156     if (success != 1 )
  1152         {
  1157         {
  1153         err = 1;
  1158         err = 1;
  1248     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
  1253     //If StoreL() leaves, 'success' contains the number of entries that were stored before it failed
  1249     iCalEntryView->StoreL (array, success );
  1254     iCalEntryView->StoreL (array, success );
  1250 
  1255 
  1251     // id has been generated, store it for being able to delete
  1256     // id has been generated, store it for being able to delete
  1252     // entries created only with Creator
  1257     // entries created only with Creator
  1253     iEntryIds.Append( entry->LocalUidL() );
  1258     iEntryIds.AppendL( entry->LocalUidL() );
  1254     
  1259     
  1255     //One item should be added at time
  1260     //One item should be added at time
  1256     if (success != 1 )
  1261     if (success != 1 )
  1257         {
  1262         {
  1258         err = 1;
  1263         err = 1;