CalDAV Delphi Component is a non-visual component that allows you to work with CalDAV Calendars using Delphi. The component supports Delphi 7 and higher.
Features
Create and edit calendar events
Access to iCalendar text for each event with possibility to read and modify any fields for an object
Unicode support for all text fields
HTTPS support
Examples
Connecting to a calendar service and showing list of events in listbox
CDCalendar := TCDCalendar.Create;
CDCalendar.BaseURL :=
'https://www.google.com/calendar/dav/UserName@gmail.com/events';
CDCalendar.UserName := 'UserName@gmail.com';
CDCalendar.Password := 'password';
CDCalendar.Load;
for I := 0 to CDCalendar.EventsCount - 1 do
ListBox1.Items.Add(CDCalendar.Events[I].Title);
CDCalendar.Free;
Adding a new event "Meeting", starting October, 12, 2010 at 10:00 AM, ending at 11:00 AM and with description "Description"
With CDCalendar.NewEvent do
begin
Title := 'Meeting';
StartTime := EncodeDateTime(2010, 10, 12, 10, 0, 0, 0);
EndTime := EncodeDateTime(2010, 10, 12, 11, 0, 0, 0);
Description := 'Description';
Store;
end;