SyncML Delphi Component Overview
SyncML Delphi Component is a non-visual component that allows you to work with calendar, contacts, tasks, and notes services using SyncML interface. The component supports Delphi 7 and higher.
Features
- Create and edit calendar events, contacts, notes (vNote), tasks (vToDo)
- Access to iCalendar, vCard, vNote, vToDo text for each event with possibility to read and modify any fields for an object
- Unicode support for all text fields
- Ability to load only changes from last sync
Examples
- Connecting to the calendar service and showing list of events in listbox
SMLCalendar := TSMLCalendar.Create;
SMLCalendar.BaseURL := 'http://my.funambol.com/sync';
SMLCalendar.Datasource := 'cal';
SMLCalendar.UserName := 'UserName';
SMLCalendar.Password := 'password';
SMLCalendar.Load;
for I := 0 to SMLCalendar.EventsCount - 1 do
ListBox1.Items.Add(SMLCalendar.Events[I].Title);
SMLCalendar.Free; |
- Adding a new note with title "Some note" and body "Some note body"
With SMLNotes.NewNote do
begin
Title := 'Some note';
Note := 'Some note body';
end;
SMLNotes.Store; |
- Adding a new task "Meet John", with due time October, 12, 2010 at 10:00am and description "Description"
With SMLTasks.NewTask do
begin
Title := 'Meet John';
DueTime := EncodeDateTime(2010, 10, 12, 10, 0, 0, 0);
Description := 'Description';
end;
SMLTasks.Store; |
- Deleting contact with index number 5
SMLContacts.DeleteContact(5); |
|