Menu

#59 Multiple simultaneus Contact Sync

open
eranl
None
2022-08-03
2012-05-22
Anonymous
No

Thank you guys for all the latest improvements. Version 3.5.15 is awesome and I like specially the multi-profile sync. Would be fantastic if you can find the way to simultaneously sync different gmail contacts accounts. Thank you so much. JBengoa.

Discussion

  • Anonymous

    Anonymous - 2012-06-01

    I can't get a simultaneous sync of my 2 different accounts. I can only sync one, and manually switch to the other one and sync this. There's any way to make it automatically? Thank you so much-

     
  • Javier

    Javier - 2012-06-01

    Yes i have the same issue

     
  • vighnaxmach

    vighnaxmach - 2014-04-14

    I miss this feature, too. I organized multiple sub-folders for my contacts, and I would like to sync them with various accounts. One Google account is a back-up, another Google account is in sync with my Android/Google phone. So far, I do that manually.

     
  • Florian Saller

    Florian Saller - 2014-10-25
    • assigned_to: Shaun Wallace
    • Group: --> Next Release (example)
     
  • obelix30

    obelix30 - 2016-12-31
    • assigned_to: Shaun Wallace --> nobody
     
  • obelix30

    obelix30 - 2018-10-20
    • Private: No --> Yes
     
  • eranl

    eranl - 2022-07-29
    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1 +1 @@
    -Thank you guys for all the latest improvements. Version 3.5.15 is awesome and I like specially the multi-profile sync. Would be fantastic if you can find the way to simultaneusly sync different gmail contacts accounts. Thank you so much. JBengoa.
    +Thank you guys for all the latest improvements. Version 3.5.15 is awesome and I like specially the multi-profile sync. Would be fantastic if you can find the way to simultaneously sync different gmail contacts accounts. Thank you so much. JBengoa.
    
    • assigned_to: eranl
    • private: Yes --> No
     
  • eranl

    eranl - 2022-07-29

    Any guidance on implementing this? My thinking is to have two separate UI sections:
    1. profile definition section (similar to existing)
    2. checkbox list of profiles to sync, maybe in a popup

     

    Last edit: eranl 2022-07-29
  • eranl

    eranl - 2022-07-30

    From looking at the code, it seems that the biggest challenge here is decoupling the sync logic from the UI. The Synchronizer class provides some decoupling, but some of the logic that performs the sync operation lives outside of it. I'd like to complete the decoupling, so that any profile could be synced regardless of what's shown in the UI. Any guidance?

     
  • eranl

    eranl - 2022-07-31

    I've implemented a POC in which I added an offline sync, which syncs all profiles that are marked auto-sync, regardless of what's selected in the UI. This offline mode is used when sync is invoked while the settings form is minimized (either on schedule or from tray icon).
    This is not production ready, but it seems to be working nicely. I would love to get feedback.

     
  • Shaun Wallace

    Shaun Wallace - 2022-08-01

    I had this working for myself long time ago (back in 2014/2015) by customising the code and making my own compile. But then lost the code in a PC crash. Can't recall if I checked the code back in as a branch or not. I had just done a loop for each defined profile in the UI that had a tick to synch and made sure a synch ran for each one. I think I had it working regardless of being minimised or not. I last worked on it 7 years ago so can't remember the finer details. I no longer need both profiles working so I didn't go back to it.

     
  • Shaun Wallace

    Shaun Wallace - 2022-08-01

    I found the snippet of code if you interested where I made the change as I had mailed it out. I had sent a copy of the code to Florian but it didn't work for him on VS2013 and the Outlook he had. I had made the change on VS2010 and was using the synch on Outlook 2007 on Windows 7.

    I made the change to Sync_ThreadStarter. I saved the current sync profile selected and then for each profile in the ComboBox, I loaded it up, enabled the form to allow info to load to screen and then ran a sync. I just switched off the TimerSwitch while running this to avoid certain events firing. I also had an overall count of the synched items across all profiles that I then showed as a summary tooltip after synching all profiles. Then in the finally I set the current profile on GUI back to the one I saved on starting the synch. Then turned off the timer while setting the last sync time and after that turned the timer back on.

     
  • eranl

    eranl - 2022-08-01

    Hi Shaun,

    Thanks for the info. I found out that you have committed this change - https://sourceforge.net/p/googlesyncmod/code/456/, but it was later reverted.

    My change is more involved, but it has the advantage of not affecting the UI (other than locking it while syncing). I'll commit it on a branch soon, so that people can hopefully provide feedback.

     
  • eranl

    eranl - 2022-08-03

    Just committed https://sourceforge.net/p/googlesyncmod/code/1574/ on a branch. Please check it out and provide feedback.

     

Log in to post a comment.