I would like to synchronize my db (tasks on my db that have decription, date, start time and end time and user) with google calendar.
For synchronization with Google, I plan to use these components (of course, I could somehow write all the material myself, but this is something I can plan for the future now, I do not have enough time, or in the alternative you can offer some kind of working code that connects to the Google calendar to send / receive data?).
Now my main problem is actually not related to Delphi programming, since I have to ask questions related to Delphi, because other questions get unviewd (like the one I asked).
It is so interesting how to make synchronization. Note. I am synchronizing in one way, and the generated calendar will be a read-only calendar.
I can set the maximum number in the past and future for synchronization (for example, 10 days in the past and 100 in the future, for example). Then I have an idea: since I run the synchronization application, I read the Google itmes calendar quite well in the range, I compare one by one with what I have in db, and then I “change” the changes. Then, by timer, I check the differences in my db and I upload the changes.
But I'm not sure if this is the best solution.
The simplification of the real case is as follows: imagine that it is CRM with some kind of task for each user. Since there is a logic for each task, I want to manage this logic only in my application, but the idea to set up a calendar on google is that it is easily accessible from any mobile device. Thus, one-way synchronization occurs. Ic ould also allow the calendar not to be readonly anyway with each synchronization, I will "load" the newly inserted tasks, but I will ignore the deleted and edited ones. In this second case, it’s not enough to track changes in db, but I shuold also track changes in google, at least to “intercept” newly added tasks.
I know this is a gerneic question, but I would like to raise an answer that might be useful, etiher redirects me to a synchronization algorithm or to Delphi example code or something that can help me move forward on this issue. Thanks.