Calendars can be local file stores, remote ICAP servers, or other formats that are supported by the mcal library.
Libmcal is a C library for accessing calendars. It's written to be very modular, with plugable drivers. MCAL is the calendar equivalent of the IMAP module for mailboxes.