locationdataharvester/geocodeupdate/src/geocodeupdate.cpp
changeset 35 59575560d1e6
parent 31 8db05346071b
child 41 b3dd5ec3089d
equal deleted inserted replaced
31:8db05346071b 35:59575560d1e6
   125         AgendaEntry agendaEntry(mAgendaUtil->fetchById(calEntryId));
   125         AgendaEntry agendaEntry(mAgendaUtil->fetchById(calEntryId));
   126         MYLOCLOGSTRING("agenda entry created from calender id .");
   126         MYLOCLOGSTRING("agenda entry created from calender id .");
   127         AgendaGeoValue geoValue;
   127         AgendaGeoValue geoValue;
   128         geoValue.setLatLong(latitude, longitude);
   128         geoValue.setLatLong(latitude, longitude);
   129         MYLOCLOGSTRING("latitude and longitude set to  AgendaGeoValue object.");
   129         MYLOCLOGSTRING("latitude and longitude set to  AgendaGeoValue object.");
   130         agendaEntry.setGeoValue(geoValue);
   130         if( !agendaEntry.isNull() )
   131         ret = mAgendaUtil->updateEntry(agendaEntry);
   131         {
       
   132             agendaEntry.setGeoValue(geoValue);
       
   133             ret = mAgendaUtil->store(agendaEntry);
       
   134         }
   132     }    
   135     }    
   133     return ret;
   136     return ret;
   134 }
   137 }
   135 
   138 
   136 // ----------------------------------------------------------------------------
   139 // ----------------------------------------------------------------------------