Default [Q] Code to Synchronize calendar and notes

I wil to write my one Synchronize programma.
But what is the code to Synchronize my calendar with thunnderbird lighting and Synchronize the notes