Re: Calendar Events Matching Criteria
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <004f01c50adb$3fc26ff0$3501a8c0@rogersqyvr14d3> |
> same summary(short title), same start, and same end date/time. > > All comments and/or suggestions are welcome. Use the same scheme as the phonebook does. The first step is an entry matcher. For each pair of entries it calculates a score of how closely they match. The second step is an entry merger which merges the various fields from the best match into an entry. Note that you have have to calculate all scores first (N*M combinations). Just because an import matches an existing really well, doesn't mean it doesn't match another one even better. Due to phone constraints (use the code for incoming entries from the phone) and those of other data sources, there will be all sorts of mangling to the data including truncation of various fields and granularity of times. You should be able to copy the general scheme and UI from the phonebook code. You'll also start understanding the insignificance of the dictionary key for each entry as you'll be juggling imported entries, existing entries, result entries and new entries :-) Roger ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl