/**
* Copyright (c) 2010-2016 by the respective copyright holders.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.openhab.io.caldav;
import java.util.List;
/**
* Cal DAV loader interface
*
* @author Robert Delbrück
* @since 1.8.0
*/
public interface CalDavLoader {
/**
* add listener to notify for event changes
*
* @param notifier the event listener
*/
public void addListener(EventNotifier notifier);
/**
* remove listener to notify for event changes
*
* @param notifier the event listener
*/
public void removeListener(EventNotifier notifier);
/**
* get events for a specific calendar
*
* @param calendarId
* @return
*/
public List<CalDavEvent> getEvents(CalDavQuery query);
/**
* add a new event to the calendar
*
* @param calDavEvent
*/
public void addEvent(CalDavEvent event);
}